diff options
author | Daniel Jasper <djasper@google.com> | 2014-02-05 13:43:04 +0000 |
---|---|---|
committer | Daniel Jasper <djasper@google.com> | 2014-02-05 13:43:04 +0000 |
commit | 0c214fa2e3a9fcaca35881bb266d1923e5488610 (patch) | |
tree | 8f34c1a5dc3b98da8493e7f86cf039b87584e748 /clang/lib/Format/ContinuationIndenter.cpp | |
parent | 3bb8fbfa3eb0812779163091393b69cb97d78c86 (diff) | |
download | bcm5719-llvm-0c214fa2e3a9fcaca35881bb266d1923e5488610.tar.gz bcm5719-llvm-0c214fa2e3a9fcaca35881bb266d1923e5488610.zip |
clang-format: Don't indent relative to unary operators.
It seems like most people see unary operators more like part of the
subsequent identifier and find relative indentation odd.
Before:
aaaaaaaaaa(!aaaaaaaaaa( // break
aaaaa));
After:
aaaaaaaaaa(!aaaaaaaaaa( // break
aaaaa));
llvm-svn: 200840
Diffstat (limited to 'clang/lib/Format/ContinuationIndenter.cpp')
-rw-r--r-- | clang/lib/Format/ContinuationIndenter.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/clang/lib/Format/ContinuationIndenter.cpp b/clang/lib/Format/ContinuationIndenter.cpp index 6db3ca98240..95cb54df9a6 100644 --- a/clang/lib/Format/ContinuationIndenter.cpp +++ b/clang/lib/Format/ContinuationIndenter.cpp @@ -296,7 +296,6 @@ void ContinuationIndenter::addTokenOnCurrentLine(LineState &State, bool DryRun, State.Stack.back().LastSpace = State.Column; else if ((Previous.Type == TT_BinaryOperator || Previous.Type == TT_ConditionalExpr || - Previous.Type == TT_UnaryOperator || Previous.Type == TT_CtorInitializerColon) && (Previous.getPrecedence() != prec::Assignment || Current.StartsBinaryExpression)) |