projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b342bdd
)
clang-format: Add another test like r366926
author
Nico Weber
<nicolasweber@gmx.de>
Wed, 24 Jul 2019 17:15:47 +0000
(17:15 +0000)
committer
Nico Weber
<nicolasweber@gmx.de>
Wed, 24 Jul 2019 17:15:47 +0000
(17:15 +0000)
llvm-svn: 366929
clang/unittests/Format/FormatTest.cpp
patch
|
blob
|
history
diff --git
a/clang/unittests/Format/FormatTest.cpp
b/clang/unittests/Format/FormatTest.cpp
index
dba8dbc
..
078c502
100644
(file)
--- a/
clang/unittests/Format/FormatTest.cpp
+++ b/
clang/unittests/Format/FormatTest.cpp
@@
-6918,6
+6918,7
@@
TEST_F(FormatTest, UnderstandsUsesOfStarAndAmp) {
verifyIndependentOfContext("if (*b[i])");
verifyIndependentOfContext("if (int *a = (&b))");
verifyIndependentOfContext("while (int *a = &b)");
+ verifyIndependentOfContext("while (a * (b * c))");
verifyIndependentOfContext("size = sizeof *a;");
verifyIndependentOfContext("if (a && (b = c))");
verifyFormat("void f() {\n"