- 
    Type:Bug 
- 
    Resolution: Done
- 
    Priority:Major - P3 
- 
    Affects Version/s: 3.1.5
- 
    Component/s: Build
- 
        Fully Compatible
- 
        ALL
- 
        Platforms 15 (06/03/16)
- 
        None
- 
        None
- 
        None
- 
        None
- 
        None
- 
        None
- 
        None
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 }
- 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
 
-