diff options
| author | Daniel Jasper <djasper@google.com> | 2014-07-28 12:08:16 +0000 |
|---|---|---|
| committer | Daniel Jasper <djasper@google.com> | 2014-07-28 12:08:16 +0000 |
| commit | 2ac3fdfd4af9c3424afa917f0ef6086fbd1008af (patch) | |
| tree | 66b197af7c9e6653457d6821a0959d8562811a6a /clang/unittests/Format/FormatTest.cpp | |
| parent | 8b76d608b8eaf24ec2ad80dd7b06db0edc9365cf (diff) | |
| download | bcm5719-llvm-2ac3fdfd4af9c3424afa917f0ef6086fbd1008af.tar.gz bcm5719-llvm-2ac3fdfd4af9c3424afa917f0ef6086fbd1008af.zip | |
clang-format: Fix unary operator recognition.
Before:
int x = ~ * p;
After:
int x = ~*p;
llvm-svn: 214070
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 1fdbe4d0922..6711447c8fc 100644 --- a/clang/unittests/Format/FormatTest.cpp +++ b/clang/unittests/Format/FormatTest.cpp @@ -4766,6 +4766,7 @@ TEST_F(FormatTest, UnderstandsUsesOfStarAndAmp) { verifyIndependentOfContext("typedef void (*f)(int *a);"); verifyIndependentOfContext("int i{a * b};"); verifyIndependentOfContext("aaa && aaa->f();"); + verifyIndependentOfContext("int x = ~*p;"); verifyIndependentOfContext("InvalidRegions[*R] = 0;"); |

