diff options
author | Daniel Jasper <djasper@google.com> | 2013-09-08 14:07:57 +0000 |
---|---|---|
committer | Daniel Jasper <djasper@google.com> | 2013-09-08 14:07:57 +0000 |
commit | 9b246e09ced67f228724699e18a10034c6f62c2b (patch) | |
tree | e4a6201bad33400b964ceac75bcfcc7127208fb1 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | 77029be19a22b33f18a0c0c3c8d66f642699e161 (diff) | |
download | llvm-9b246e09ced67f228724699e18a10034c6f62c2b.zip llvm-9b246e09ced67f228724699e18a10034c6f62c2b.tar.gz llvm-9b246e09ced67f228724699e18a10034c6f62c2b.tar.bz2 |
clang-format: Keep empty lines and format 1-line nested blocks.
Let clang-format consistently keep up to one empty line (configured via
FormatStyle::MaxEmptyLinesToKeep) in nested blocks, e.g. lambdas. Also,
actually format single statements in nested blocks.
Before:
DEBUG({ int i; });
DEBUG({
int i;
// an empty line here would just be removed.
int j;
});
After:
DEBUG({ int i; });
DEBUG({
int i;
int j;
});
llvm-svn: 190278
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions