diff options
author | Nico Weber <nicolasweber@gmx.de> | 2012-06-03 07:07:00 +0000 |
---|---|---|
committer | Nico Weber <nicolasweber@gmx.de> | 2012-06-03 07:07:00 +0000 |
commit | cdfb1ae7f793ebe733330a74e525345bf30c9cc4 (patch) | |
tree | 19a66b4aa33b11f473de6a64d94198d19c5838b8 /clang/test/Misc/tabstop.c | |
parent | 5097e4f38a747061045575f246e9500ef6b75871 (diff) | |
download | bcm5719-llvm-cdfb1ae7f793ebe733330a74e525345bf30c9cc4.tar.gz bcm5719-llvm-cdfb1ae7f793ebe733330a74e525345bf30c9cc4.zip |
Improve fixit for comparison operator on lhs of bitwise operator.
Before:
test.cc:2:18: note: place parentheses around the == expression to silence this warning
if (0 == flags & 0xdd)
^
( )
Now:
test.cc:2:18: note: place parentheses around the == expression to silence this warning
if (0 == flags & 0xdd)
^
( )
llvm-svn: 157897
Diffstat (limited to 'clang/test/Misc/tabstop.c')
-rw-r--r-- | clang/test/Misc/tabstop.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/clang/test/Misc/tabstop.c b/clang/test/Misc/tabstop.c index 49c4d7bebbb..7f59b6ab32b 100644 --- a/clang/test/Misc/tabstop.c +++ b/clang/test/Misc/tabstop.c @@ -35,13 +35,22 @@ void f(void) { if (0 & 1 == 1) {} + + if (1 == 0 & 1) + {} } // CHECK-3: {{^ }}if (0 & 1 == 1) // CHECK-3: {{^ }} ( ) +// CHECK-3: {{^ }}if (1 == 0 & 1) +// CHECK-3: {{^ }} ( ) // CHECK-4: {{^ }}if (0 & 1 == 1) // CHECK-4: {{^ }} ( ) +// CHECK-4: {{^ }}if (1 == 0 & 1) +// CHECK-4: {{^ }} ( ) // CHECK-5: {{^ }}if (0 & 1 == 1) // CHECK-5: {{^ }} ( ) +// CHECK-5: {{^ }}if (1 == 0 & 1) +// CHECK-5: {{^ }} ( ) |