diff options
author | Daniel Jasper <djasper@google.com> | 2013-01-23 11:15:14 +0000 |
---|---|---|
committer | Daniel Jasper <djasper@google.com> | 2013-01-23 11:15:14 +0000 |
commit | b9c0908f7c7770c38e51bd8b023b5792a3b60c56 (patch) | |
tree | f96bce00e57ab16edfced146e58edca04c8626ac /clang/unittests/Format/FormatTest.cpp | |
parent | 7d2e4c038989d25fca98458872acf06e01416a7f (diff) | |
download | bcm5719-llvm-b9c0908f7c7770c38e51bd8b023b5792a3b60c56.tar.gz bcm5719-llvm-b9c0908f7c7770c38e51bd8b023b5792a3b60c56.zip |
Fix regression in formatting pointer types.
We will need a more principled solution, but we should not leave this
unfixed until we come up with one.
Before: void f() { int * a; }
After: void f() { int *a; }
llvm-svn: 173252
Diffstat (limited to 'clang/unittests/Format/FormatTest.cpp')
-rw-r--r-- | clang/unittests/Format/FormatTest.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/unittests/Format/FormatTest.cpp b/clang/unittests/Format/FormatTest.cpp index 114359d04d1..44f91c7fb0b 100644 --- a/clang/unittests/Format/FormatTest.cpp +++ b/clang/unittests/Format/FormatTest.cpp @@ -1288,6 +1288,7 @@ TEST_F(FormatTest, UnderstandsUsesOfStarAndAmp) { verifyFormat("int a = *b;"); verifyFormat("int a = *b * c;"); verifyFormat("int a = b * *c;"); + verifyFormat("void f() { int *a = b * c; }"); verifyFormat("int main(int argc, char **argv) {}"); verifyFormat("return 10 * b;"); verifyFormat("return *b * *c;"); |