diff options
| author | Daniel Jasper <djasper@google.com> | 2013-04-05 17:21:59 +0000 |
|---|---|---|
| committer | Daniel Jasper <djasper@google.com> | 2013-04-05 17:21:59 +0000 |
| commit | 54ac8208905d4a8afec1bfebb50272887c6e10af (patch) | |
| tree | 72a4519f4e66bfbace6340cec5263ea0d9eab935 /clang/lib/Format | |
| parent | 000563c8c8ac2531c4d407090c167a7da6a63320 (diff) | |
| download | bcm5719-llvm-54ac8208905d4a8afec1bfebb50272887c6e10af.tar.gz bcm5719-llvm-54ac8208905d4a8afec1bfebb50272887c6e10af.zip | |
Fix bad formatting of overloaded operator definitions.
Before:
bool operator<
(const aaaaaaaaaaaaaaaaaaaaa &left, const aaaaaaaaaaaaaaaaaaaaa &right) {
return left.group < right.group;
}
After:
bool operator<(const aaaaaaaaaaaaaaaaaaaaa &left,
const aaaaaaaaaaaaaaaaaaaaa &right) {
return left.group < right.group;
}
llvm-svn: 178887
Diffstat (limited to 'clang/lib/Format')
| -rw-r--r-- | clang/lib/Format/TokenAnnotator.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/Format/TokenAnnotator.cpp b/clang/lib/Format/TokenAnnotator.cpp index 427157e3322..24e2b1f87ec 100644 --- a/clang/lib/Format/TokenAnnotator.cpp +++ b/clang/lib/Format/TokenAnnotator.cpp @@ -1137,7 +1137,8 @@ bool TokenAnnotator::canBreakBefore(const AnnotatedLine &Line, if (Right.Type == TT_ConditionalExpr || Right.is(tok::question)) return true; if (Right.Type == TT_RangeBasedForLoopColon || - Right.Type == TT_InheritanceColon) + Right.Type == TT_InheritanceColon || + Right.Type == TT_OverloadedOperatorLParen) return false; if (Left.Type == TT_RangeBasedForLoopColon || Left.Type == TT_InheritanceColon) |

