[PATCH] D46519: [clang-format] Respect BreakBeforeClosingBrace while calculating length

Daniel Jasper via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue May 8 03:43:15 PDT 2018


djasper accepted this revision.
djasper added a comment.
This revision is now accepted and ready to land.

Generally looks good.



================
Comment at: lib/Format/ContinuationIndenter.cpp:93
+      break;
+    if (End->Next->is(tok::r_brace)) {
+      const ParenState *State = FindParenState(End->Next->MatchingParen);
----------------
I r_brace enough? Do we have something similar for TT_ArrayInitializer? I'd look at usages of BreakBeforeClosingBrace to determine.


Repository:
  rC Clang

https://reviews.llvm.org/D46519





More information about the cfe-commits mailing list