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
diff --git a/clang/lib/Format/ContinuationIndenter.h b/clang/lib/Format/ContinuationIndenter.h
index b317565..b675b0a 100644
--- a/clang/lib/Format/ContinuationIndenter.h
+++ b/clang/lib/Format/ContinuationIndenter.h
@@ -91,8 +91,8 @@
///
/// 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.