diff options
author | Manuel Klimek <klimek@google.com> | 2013-11-20 11:20:32 +0000 |
---|---|---|
committer | Manuel Klimek <klimek@google.com> | 2013-11-20 11:20:32 +0000 |
commit | 06c84f2e071203e6a2acaa3ff0c1c30d63c9c063 (patch) | |
tree | d540796c0889382711d35b9ad48075c1fe84b7a6 /clang/lib/Format/ContinuationIndenter.h | |
parent | 55758e9691410b9b3bee24f37e0255e93628e46c (diff) | |
download | bcm5719-llvm-06c84f2e071203e6a2acaa3ff0c1c30d63c9c063.tar.gz bcm5719-llvm-06c84f2e071203e6a2acaa3ff0c1c30d63c9c063.zip |
Fix bug where optimization would lead to strange line breaks.
Before:
void f() {
CHECK_EQ(aaaa, (
*bbbbbbbbb)->cccccc)
<< "qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq";
}
After:
void f() {
CHECK_EQ(aaaa, (*bbbbbbbbb)->cccccc)
<< "qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq";
}
llvm-svn: 195240
Diffstat (limited to 'clang/lib/Format/ContinuationIndenter.h')
-rw-r--r-- | clang/lib/Format/ContinuationIndenter.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Format/ContinuationIndenter.h b/clang/lib/Format/ContinuationIndenter.h index b3175658338..b675b0a0c55 100644 --- a/clang/lib/Format/ContinuationIndenter.h +++ b/clang/lib/Format/ContinuationIndenter.h @@ -91,8 +91,8 @@ private: /// /// If \p DryRun is \c false, also creates and stores the required /// \c Replacement. - void addTokenOnCurrentLine(LineState &State, bool DryRun, - unsigned ExtraSpaces); + unsigned addTokenOnCurrentLine(LineState &State, bool DryRun, + unsigned ExtraSpaces); /// \brief Appends the next token to \p State and updates information /// necessary for indentation. |