]> granicus.if.org Git - clang/commit
Add support for warning on general null pointer expressions of boolean
authorChandler Carruth <chandlerc@gmail.com>
Sat, 9 Apr 2011 07:32:05 +0000 (07:32 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Sat, 9 Apr 2011 07:32:05 +0000 (07:32 +0000)
commit88f0aed95d2a0faf3cad66af2dc54596495a7d41
tree68156cfd12a7e0a0235767a9ac4f8e7dfb35f2bc
parentbaf101d1f96b4e41c9f2797875329840514f54f1
Add support for warning on general null pointer expressions of boolean
type rather than just the literal 'false'. This begins fixing PR9612,
but the message is now wrong. WIP, the cleanup of the messaging is next.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@129204 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaOverload.cpp
test/SemaCXX/warn_false_to_pointer.cpp