owenpan added inline comments.
================
Comment at: clang/lib/Format/UnwrappedLineFormatter.cpp:310-313
for (; J != AnnotatedLines.begin(); --J)
- if (!(*J)->InPPDirective && (*J)->Level < TheLine->Level)
+ if ((TheLine->InPPDirective || !(*J)->InPPDirective) &&
+ (*J)->Level < TheLine->Level)
break;
----------------
Or simply return before the `for` loop if `TheLine->InPPDirective` is true?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D124036/new/
https://reviews.llvm.org/D124036
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits