]> granicus.if.org Git - clang/commit
[Diagnostics] Warn if '<<' in bool context with -Wint-in-bool-context (GCC compatibility)
authorDavid Bolvansky <david.bolvansky@gmail.com>
Mon, 23 Sep 2019 14:21:08 +0000 (14:21 +0000)
committerDavid Bolvansky <david.bolvansky@gmail.com>
Mon, 23 Sep 2019 14:21:08 +0000 (14:21 +0000)
commitfb14563764056c509a6ff0e65058b756333f84ba
tree17769d2984e11b5177abf4720a4a943fd2932970
parent16417b373eb02474fff6d37cc60e77d4fdb2180d
[Diagnostics] Warn if '<<' in bool context with -Wint-in-bool-context (GCC compatibility)

Extracted from D63082, addressed review comments related to a warning message.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@372612 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticGroups.td
include/clang/Basic/DiagnosticSemaKinds.td
lib/Sema/SemaChecking.cpp
test/Sema/warn-int-in-bool-context.c [new file with mode: 0644]
test/SemaCXX/cxx2a-explicit-bool.cpp