]> granicus.if.org Git - clang/commit
make our existing "switch on bool" warning work for C. Since
authorChris Lattner <sabre@nondot.org>
Fri, 16 Apr 2010 23:34:13 +0000 (23:34 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 16 Apr 2010 23:34:13 +0000 (23:34 +0000)
commit2b334bb3126a67895813e49e6228dad4aec0b4d6
tree31b73e76f2200e7fcb761d6c026242895d1f8dfa
parentca7eaeeed817001dc7cee4852a7e41f0982da1ef
make our existing "switch on bool" warning work for C.  Since
the result of comparisons are 'int' in C, it doesn't work to
test just the result type of the expression.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@101576 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/AST/Expr.h
include/clang/Basic/DiagnosticSemaKinds.td
lib/AST/Expr.cpp
lib/Sema/SemaStmt.cpp
test/Sema/statements.c