summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSam McCall <sam.mccall@gmail.com>2019-10-04 14:11:05 +0000
committerSam McCall <sam.mccall@gmail.com>2019-10-04 14:11:05 +0000
commitf44ca7f6eba468e146b0096a91dd9931b556aa86 (patch)
tree05ab9522028126adc748f3557bfd286b3340668e
parent5d862c042b52ae2aad37471d0b83b6c678a520e3 (diff)
downloadbcm5719-llvm-f44ca7f6eba468e146b0096a91dd9931b556aa86.tar.gz
bcm5719-llvm-f44ca7f6eba468e146b0096a91dd9931b556aa86.zip
Further improve -Wbool-operation bitwise negation message
llvm-svn: 373749
-rw-r--r--clang/include/clang/Basic/DiagnosticSemaKinds.td2
-rw-r--r--clang/test/Sema/warn-bitwise-negation-bool.c6
2 files changed, 4 insertions, 4 deletions
diff --git a/clang/include/clang/Basic/DiagnosticSemaKinds.td b/clang/include/clang/Basic/DiagnosticSemaKinds.td
index 7aa3cd08cc0..1c4ab50f73f 100644
--- a/clang/include/clang/Basic/DiagnosticSemaKinds.td
+++ b/clang/include/clang/Basic/DiagnosticSemaKinds.td
@@ -6638,7 +6638,7 @@ def note_member_declared_here : Note<
def note_member_first_declared_here : Note<
"member %0 first declared here">;
def warn_bitwise_negation_bool : Warning<
- "bitwise negation of a boolean expression; did you mean a logicial negation?">,
+ "bitwise negation of a boolean expression; did you mean logical negation?">,
InGroup<DiagGroup<"bool-operation">>;
def err_decrement_bool : Error<"cannot decrement expression of type bool">;
def warn_increment_bool : Warning<
diff --git a/clang/test/Sema/warn-bitwise-negation-bool.c b/clang/test/Sema/warn-bitwise-negation-bool.c
index 03d1ea4165f..dfec00055cd 100644
--- a/clang/test/Sema/warn-bitwise-negation-bool.c
+++ b/clang/test/Sema/warn-bitwise-negation-bool.c
@@ -12,11 +12,11 @@ typedef _Bool boolean;
#endif
void test(boolean b, int i) {
- b = ~b; // expected-warning {{bitwise negation of a boolean expression; did you mean a logicial negation?}}
+ b = ~b; // expected-warning {{bitwise negation of a boolean expression; did you mean logical negation?}}
// CHECK: fix-it:"{{.*}}":{[[@LINE-1]]:7-[[@LINE-1]]:8}:"!"
- b = ~(b); // expected-warning {{bitwise negation of a boolean expression; did you mean a logicial negation?}}
+ b = ~(b); // expected-warning {{bitwise negation of a boolean expression; did you mean logical negation?}}
// CHECK: fix-it:"{{.*}}":{[[@LINE-1]]:7-[[@LINE-1]]:8}:"!"
b = ~i;
- i = ~b; // expected-warning {{bitwise negation of a boolean expression; did you mean a logicial negation?}}
+ i = ~b; // expected-warning {{bitwise negation of a boolean expression; did you mean logical negation?}}
// CHECK: fix-it:"{{.*}}":{[[@LINE-1]]:7-[[@LINE-1]]:8}:"!"
}
OpenPOWER on IntegriCloud