[PATCH] D52448: [clang-format] Break before next parameter after a formatted multiline raw string parameter

Krasimir Georgiev via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Oct 25 00:39:28 PDT 2018


krasimir marked an inline comment as done.
krasimir added inline comments.


================
Comment at: lib/Format/ContinuationIndenter.cpp:1594
       StartColumn + NewPrefixSize - Style.ColumnLimit : 0;
-  return Fixes.second + PrefixExcessCharacters * Style.PenaltyExcessCharacter;
+  unsigned Penalty =
+      Fixes.second + PrefixExcessCharacters * Style.PenaltyExcessCharacter;
----------------
sammccall wrote:
> nit: why are you doing the multiline side-effect between computing the penalty and returning it?
Thank you!


Repository:
  rC Clang

https://reviews.llvm.org/D52448





More information about the cfe-commits mailing list