Options regarding which empty lines are kept.
More...
#include "clang/Format/Format.h"
Options regarding which empty lines are kept.
For example, the config below will remove empty lines at start of the file, end of the file, and start of blocks.
Definition at line 3769 of file Format.h.
◆ operator==()
◆ AtEndOfBlock
| bool clang::format::FormatStyle::KeepEmptyLinesStyle::AtEndOfBlock |
Keep empty lines at end of a block.
true: false:
if (foo) { vs. if (foo) {
bar(); bar();
}
}
Definition at line 3778 of file Format.h.
◆ AtEndOfFile
| bool clang::format::FormatStyle::KeepEmptyLinesStyle::AtEndOfFile |
Keep empty lines at end of file.
Definition at line 3780 of file Format.h.
◆ AtStartOfBlock
| bool clang::format::FormatStyle::KeepEmptyLinesStyle::AtStartOfBlock |
Keep empty lines at start of a block.
true: false:
if (foo) { vs. if (foo) {
bar();
bar(); }
}
Definition at line 3789 of file Format.h.
◆ AtStartOfFile
| bool clang::format::FormatStyle::KeepEmptyLinesStyle::AtStartOfFile |
Keep empty lines at start of file.
Definition at line 3791 of file Format.h.
The documentation for this struct was generated from the following file: