This revision was automatically updated to reflect the committed changes.
Closed by commit rL297274: [clang-format] Look at NoLineBreak and
NoLineBreakInOperand beforeā¦ (authored by krasimir).
Changed prior to commit:
https://reviews.llvm.org/D30575?vs=90999=91000#toc
Repository:
rL LLVM
djasper accepted this revision.
djasper added a comment.
This revision is now accepted and ready to land.
Looks good.
https://reviews.llvm.org/D30575
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
krasimir updated this revision to Diff 90999.
krasimir added a comment.
- Remove empty stack check
https://reviews.llvm.org/D30575
Files:
lib/Format/ContinuationIndenter.cpp
unittests/Format/FormatTest.cpp
Index: unittests/Format/FormatTest.cpp
djasper added inline comments.
Comment at: lib/Format/ContinuationIndenter.cpp:852
+ bool CanBreakProtrudingToken =
+ State.Stack.empty() || (!State.Stack.back().NoLineBreak &&
+ !State.Stack.back().NoLineBreakInOperand);
I