Skip to main content

Module align

Module align 

Source
Expand description

Post-processing pass: align :: in consecutive declaration lines.

Groups consecutive lines that:

  • Have the same indentation level
  • Are declaration lines (start with a type keyword and contain ::)
  • Are not separated by blank lines, comments, or non-declaration lines

Within each group, pads the space before :: so all :: appear at the same column.

Functionsยง

align_declarations
Align :: in consecutive declaration lines. If compact is true, also remove blank lines between declarations in a group. If align_comments is true, also align !< inline comments within groups.