summaryrefslogtreecommitdiffstats
path: root/clang/lib/Format/ContinuationIndenter.h
diff options
context:
space:
mode:
authorManuel Klimek <klimek@google.com>2013-11-20 11:20:32 +0000
committerManuel Klimek <klimek@google.com>2013-11-20 11:20:32 +0000
commit06c84f2e071203e6a2acaa3ff0c1c30d63c9c063 (patch)
treed540796c0889382711d35b9ad48075c1fe84b7a6 /clang/lib/Format/ContinuationIndenter.h
parent55758e9691410b9b3bee24f37e0255e93628e46c (diff)
downloadbcm5719-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.h4
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.
OpenPOWER on IntegriCloud