[PATCH] D52448: [clang-format] Break before next parameter after a formatted multiline raw string parameter
Sam McCall via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Oct 24 02:44:35 PDT 2018
sammccall accepted this revision.
sammccall added inline comments.
This revision is now accepted and ready to land.
================
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;
----------------
nit: why are you doing the multiline side-effect between computing the penalty and returning it?
Repository:
rC Clang
https://reviews.llvm.org/D52448
More information about the cfe-commits
mailing list