From eee7b81a168cc3f2a82882375109b9a059dde705 Mon Sep 17 00:00:00 2001 From: Nico Weber Date: Sat, 12 Jan 2013 05:50:48 +0000 Subject: Formatter: * and & are binary operators before ( and [. llvm-svn: 172303 --- clang/lib/Format/Format.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'clang/lib') diff --git a/clang/lib/Format/Format.cpp b/clang/lib/Format/Format.cpp index e4dc2913126..aa534b9ef3f 100644 --- a/clang/lib/Format/Format.cpp +++ b/clang/lib/Format/Format.cpp @@ -974,6 +974,7 @@ private: NextToken.Tok.is(tok::plus) || NextToken.Tok.is(tok::minus) || NextToken.Tok.is(tok::plusplus) || NextToken.Tok.is(tok::minusminus) || NextToken.Tok.is(tok::tilde) || NextToken.Tok.is(tok::exclaim) || + NextToken.Tok.is(tok::l_paren) || NextToken.Tok.is(tok::l_square) || NextToken.Tok.is(tok::kw_alignof) || NextToken.Tok.is(tok::kw_sizeof)) return TT_BinaryOperator; -- cgit v1.2.3