summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDavid Bolvansky <david.bolvansky@gmail.com>2019-10-04 12:55:13 +0000
committerDavid Bolvansky <david.bolvansky@gmail.com>2019-10-04 12:55:13 +0000
commit5429a2e9a37c454109be174b57dbc6d0511b91f2 (patch)
tree0d84d2c9df0fb6137cb2d8fc34d020bc0c315c7f /include
parent8ccf219e3bed92f13f16e411a7e42b32fe85a1bc (diff)
downloadclang-5429a2e9a37c454109be174b57dbc6d0511b91f2.tar.gz
[NFCI] Improve the -Wbool-operation's warning message
Based on the request from the post commit review. Also added one new test. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@373743 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/clang/Basic/DiagnosticSemaKinds.td2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/clang/Basic/DiagnosticSemaKinds.td b/include/clang/Basic/DiagnosticSemaKinds.td
index b167f465d9..7aa3cd08cc 100644
--- a/include/clang/Basic/DiagnosticSemaKinds.td
+++ b/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 always evaluates to 'true'">,
+ "bitwise negation of a boolean expression; did you mean a logicial negation?">,
InGroup<DiagGroup<"bool-operation">>;
def err_decrement_bool : Error<"cannot decrement expression of type bool">;
def warn_increment_bool : Warning<