llvm / llvm/llvm-project

[clang-format] How to remove empty line after statement?

Open
#159,356 1 comment 0 reactions 0 assignees View on GitHub
clang-format question
Dominant language
LLVM
Stars
40.5k
Forks
18.7k
PR merge metrics
PR metrics pending

Description

```c
enum my_enum

{ // I want to remove the blank line above
ENUM1
}

void foo(void)

{ // I want to remove the blank line above
if (true)

{ // I want to remove the blank line above
}

switch (x)

{ // I want to remove the blank line above
case 1:

{ // I want to remove the blank line above
break;
}
}
}
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.