[PATCH] D48720: [clang-format] Put ObjC method arguments into one line when they fit

Ben Hamilton via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Jun 29 12:58:11 PDT 2018


benhamilton accepted this revision.
benhamilton added inline comments.
This revision is now accepted and ready to land.


================
Comment at: lib/Format/ContinuationIndenter.cpp:1411
+  // line).
+  if (Current.MatchingParen && Current.MatchingParen->Previous) {
+    const FormatToken &CurrentScopeOpener = *Current.MatchingParen->Previous;
----------------
Should we check if `State.Stack.back().BreakBeforeParameter` is `true` before doing any of this?


Repository:
  rC Clang

https://reviews.llvm.org/D48720





More information about the cfe-commits mailing list