Skip to content

Commit c50275b

Browse files
sawenzelktf
authored andcommitted
clang-format: avoid removal of empty lines (#824)
Adding a new configuration key. This fixes an unwanted behaviour where empty lines, for example between function declarations, were removed by clang-format.
1 parent 5b92f63 commit c50275b

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

.clang-format

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ IndentWidth: 2
2727
# It is broken on windows. Breaks all #include "header.h"
2828
Language: Cpp
2929
MaxEmptyLinesToKeep: 1
30+
KeepEmptyLinesAtTheStartOfBlocks: true
3031
NamespaceIndentation: None
3132
ObjCSpaceAfterProperty: false
3233
ObjCSpaceBeforeProtocolList: false

0 commit comments

Comments
 (0)