Details
-
Bug
-
Resolution: Done
-
Major - P3
-
3.1.5
-
Fully Compatible
-
ALL
-
Platforms 15 (06/03/16)
Description
The current Clang-Format does not allow users to choose how they many blank lines after a new block to leave. It strips all blank lines.
This is controlled by KeepEmptyLinesAtTheStartOfBlocks.
Users would like to be able to write something like this
void foo() {
|
|
|
// do nothing
|
}
|
or
if (true) {
|
|
|
// do nothing
|
}
|
Today, both look like this
if (true) {
|
// do nothing
|
}
|
Attachments
Issue Links
- is duplicated by
-
SERVER-19192 clang-format should put newlines after opening namespace blocks
-
- Closed
-
- is related to
-
SERVER-19159 Clang-format should put a newline after public: or private: statements in class definitions
-
- Closed
-
- related to
-
SERVER-23971 Update .clang-format rules for Clang-Format 3.8.0
-
- Closed
-