aboutsummaryrefslogtreecommitdiff
path: root/lib/Format/TokenAnnotator.cpp
diff options
context:
space:
mode:
authorDaniel Jasper <djasper@google.com>2013-03-14 10:50:25 +0000
committerDaniel Jasper <djasper@google.com>2013-03-14 10:50:25 +0000
commitd3cf17b5f1fed43dbd0cd35c43d15139803c9c84 (patch)
treeed633221af9adebae5ef3d3ed19c65e50f8bacfb /lib/Format/TokenAnnotator.cpp
parent96cead513761d287c88a4f05c712aee3b26b9d6f (diff)
Fix dereference formatting in for-loops.
Before: for (char **a = b; * a; ++a) {} After: for (char **a = b; *a; ++a) {} git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@177037 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Format/TokenAnnotator.cpp')
-rw-r--r--lib/Format/TokenAnnotator.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Format/TokenAnnotator.cpp b/lib/Format/TokenAnnotator.cpp
index 0b8f286ebe..93eeb7f940 100644
--- a/lib/Format/TokenAnnotator.cpp
+++ b/lib/Format/TokenAnnotator.cpp
@@ -661,7 +661,7 @@ private:
return TT_PointerOrReference;
if (PrevToken->isOneOf(tok::l_paren, tok::l_square, tok::l_brace,
- tok::comma, tok::kw_return, tok::colon,
+ tok::comma, tok::semi, tok::kw_return, tok::colon,
tok::equal) ||
PrevToken->Type == TT_BinaryOperator ||
PrevToken->Type == TT_UnaryOperator || PrevToken->Type == TT_CastRParen)