Skip to content

[feat] Clang format blank line after declaration block (C89 style) #91064

@ilan-schemoul

Description

@ilan-schemoul

It would be awesome to have an option (the name could be BlankLineAfterDeclarationBlock) where in

int main() {
  int a;
  int b;
  printf("%d", a);
}

a newline is inserted between int b; and printf; (useful when we use C89 style/--Werror=declaration-after-statement and we want a newline between declarations/definitions)

Metadata

Metadata

Assignees

No one assigned

    Labels

    clang-formatenhancementImproving things as opposed to bug fixing, e.g. new or missing feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions