]> granicus.if.org Git - clang/commit
Eliminate some false positives due to a thinko in the "'blah' is
authorDouglas Gregor <dgregor@apple.com>
Thu, 5 Nov 2009 17:49:26 +0000 (17:49 +0000)
committerDouglas Gregor <dgregor@apple.com>
Thu, 5 Nov 2009 17:49:26 +0000 (17:49 +0000)
commit9c4b838782132ec670fd7e48d1a7a7fd433fed06
tree1991da010ec2384b0d682b930f55b8d4f4d6b8b6
parent5114ecab149ab91d13d3f7fd165dbe0839c1f2e8
Eliminate some false positives due to a thinko in the "'blah' is
always zero in this context" warning logic. Also, make the diagnostic
itself more precise when referring to pointer values ("NULL" vs. "zero").

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@86143 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticSemaKinds.td
include/clang/Parse/Scope.h
lib/Sema/SemaExpr.cpp
test/SemaCXX/warn-for-var-in-else.cpp