Correctly determine */& usage in more cases.
authorDaniel Jasper <djasper@google.com>
Mon, 18 Feb 2013 12:44:35 +0000 (12:44 +0000)
committerDaniel Jasper <djasper@google.com>
Mon, 18 Feb 2013 12:44:35 +0000 (12:44 +0000)
commit5065bc4b2c3e13be9b1186dcdde7471ffb9e326f
tree2542685c14b204fa4323b03c4eb311e33e915ed2
parent847d2d454944bc56fccb8fbd344e91b6ec678a22
Correctly determine */& usage in more cases.

This fixes llvm.org/PR15248.

Before:
Test::Test(int b) : a(b *b) {}
for (int i = 0; i < a *a; ++i) {}

After:
Test::Test(int b) : a(b * b) {}
for (int i = 0; i < a * a; ++i) {}

llvm-svn: 175439
clang/lib/Format/TokenAnnotator.cpp
clang/unittests/Format/FormatTest.cpp