diff options
| author | Daniel Jasper <djasper@google.com> | 2015-02-08 09:34:49 +0000 |
|---|---|---|
| committer | Daniel Jasper <djasper@google.com> | 2015-02-08 09:34:49 +0000 |
| commit | 29d39d54e7398610126f15f1f3fb97f9575a80f9 (patch) | |
| tree | 0e510d14fb29848b45841ebb110d2cd2e7838f93 /clang/lib/Format/BreakableToken.cpp | |
| parent | 23a485a4ed803e4870e4b85546ae678acfdbd682 (diff) | |
| download | bcm5719-llvm-29d39d54e7398610126f15f1f3fb97f9575a80f9.tar.gz bcm5719-llvm-29d39d54e7398610126f15f1f3fb97f9575a80f9.zip | |
clang-format: Correctly mark preprocessor lines in child blocks.
This prevents contracting:
auto lambda = []() {
int a = 2
#if A
+ 2
#endif
;
};
into:
auto lambda = []() { int a = 2
#if A + 2
#endif ; };
Which is obviously BAD.
This fixes llvm.org/PR22496.
llvm-svn: 228522
Diffstat (limited to 'clang/lib/Format/BreakableToken.cpp')
0 files changed, 0 insertions, 0 deletions

