Skip to content
Permalink
 
 
Cannot retrieve contributors at this time
63 lines (43 sloc) 2.85 KB
Root.Formatting.Spacing.BlankLine.BlankLineAfterDeclaration Parent Index
Sibling aspects BlankLineAfterClass BlankLineAfterProcedure NewlineAtEOF

BlankLineAfterDeclaration

Those found after declarations.

Tastes

Taste Meaning Values
blank_lines_after_declarations Represents the number of blank lines after declarations 0, 1, 2

* bold denotes default value

Subaspects

This aspect does not have any sub aspects.

Example

#include <stdio.h>

int main ()
{
  int a;
  float b;

  scanf("%d%f", &a, &b);
  printf("a = %d and b = %f", a, b);
  return 0;
}

Importance

Having a specific and reasonable number of blank lines after every block of declarations improves on the readability of the code.

How to fix this

BlankLintAfterDeclaration issues can be fixed specifying (and of course using) a reasonable number of blank lines to use after block declaration.

You can’t perform that action at this time.