diff options
author | Daniel Jasper <djasper@google.com> | 2013-11-07 17:52:51 +0000 |
---|---|---|
committer | Daniel Jasper <djasper@google.com> | 2013-11-07 17:52:51 +0000 |
commit | dbfb5f37f4d003ae6935b87a103b7827d5069690 (patch) | |
tree | cdc2ca6c3745390de556e5984bc34c2ec2fc85b6 /lib/Format/TokenAnnotator.h | |
parent | 59875ac81b97de87ac6c4c7cb256ab71b75114f2 (diff) |
clang-format: Improve formatting of constructor initializers.
Before:
Constructor()
: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa(aaaaaaaaaaaaaaaaaaaaaaaaa(aaaa,
aaaa)) {}
After:
Constructor()
: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa(
aaaaaaaaaaaaaaaaaaaaaaaaa(aaaa, aaaa)) {}
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@194210 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Format/TokenAnnotator.h')
-rw-r--r-- | lib/Format/TokenAnnotator.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Format/TokenAnnotator.h b/lib/Format/TokenAnnotator.h index ca8b115415..aa49b2a5c0 100644 --- a/lib/Format/TokenAnnotator.h +++ b/lib/Format/TokenAnnotator.h @@ -110,7 +110,8 @@ public: private: /// \brief Calculate the penalty for splitting before \c Tok. - unsigned splitPenalty(const AnnotatedLine &Line, const FormatToken &Tok); + unsigned splitPenalty(const AnnotatedLine &Line, const FormatToken &Tok, + bool InFunctionDecl); bool spaceRequiredBetween(const AnnotatedLine &Line, const FormatToken &Left, const FormatToken &Right); |