| commit | 29d39d54e7398610126f15f1f3fb97f9575a80f9 | [log] [tgz] |
|---|---|---|
| author | Daniel Jasper <djasper@google.com> | Sun Feb 08 09:34:49 2015 +0000 |
| committer | Daniel Jasper <djasper@google.com> | Sun Feb 08 09:34:49 2015 +0000 |
| tree | 0e510d14fb29848b45841ebb110d2cd2e7838f93 | |
| parent | 23a485a4ed803e4870e4b85546ae678acfdbd682 [diff] |
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