aboutsummaryrefslogtreecommitdiff
path: root/lib/Format/Format.cpp
diff options
context:
space:
mode:
authorDaniel Jasper <djasper@google.com>2013-01-16 16:04:06 +0000
committerDaniel Jasper <djasper@google.com>2013-01-16 16:04:06 +0000
commit48bd7b72b8911147ec9bdeaa8ebb211543fd23a9 (patch)
tree4324b2931e43cc11ccfbe76afc804cb210e2732d /lib/Format/Format.cpp
parentdf3736aa70443ac0f33af094989b4ba88d73f568 (diff)
Improve understanding of unary operators.
Before: int x = ** a; After: int x = **a; git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@172619 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Format/Format.cpp')
-rw-r--r--lib/Format/Format.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Format/Format.cpp b/lib/Format/Format.cpp
index 4be41daf00..ebf493c628 100644
--- a/lib/Format/Format.cpp
+++ b/lib/Format/Format.cpp
@@ -1180,7 +1180,7 @@ private:
PrevToken->is(tok::l_brace) || PrevToken->is(tok::comma) ||
PrevToken->is(tok::kw_return) || PrevToken->is(tok::colon) ||
PrevToken->Type == TT_BinaryOperator ||
- PrevToken->Type == TT_CastRParen)
+ PrevToken->Type == TT_UnaryOperator || PrevToken->Type == TT_CastRParen)
return TT_UnaryOperator;
if (PrevToken->FormatTok.Tok.isLiteral() || PrevToken->is(tok::r_paren) ||