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 | 218b6dfaee321cec558e15d47b68155dd9f35684 (patch) | |
tree | da34dce327cac94ed8bdb646ab644666d8f04638 /unittests/Format/FormatTest.cpp | |
parent | 836b58f564e07e806d3d0b41a193fde0921013c7 (diff) |
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; }
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@173252 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests/Format/FormatTest.cpp')
-rw-r--r-- | unittests/Format/FormatTest.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/unittests/Format/FormatTest.cpp b/unittests/Format/FormatTest.cpp index 114359d04d..44f91c7fb0 100644 --- a/unittests/Format/FormatTest.cpp +++ b/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;"); |