summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/warn_false_to_pointer.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Clean up the bool conversion warning. Group it with other conversionChandler Carruth2011-04-091-24/+0
| | | | | | | warnings, and make its text appropriate for constant bool expressions other than 'false'. This should finish off PR9612. llvm-svn: 129205
* Add support for warning on general null pointer expressions of booleanChandler Carruth2011-04-091-1/+8
| | | | | | | 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. llvm-svn: 129204
* Move the bool-conversions behind the DiagRuntimeBehavior logic. It'sChandler Carruth2011-03-011-0/+7
| | | | | | | | | possible for these to show up due to metaprogramming both in unevaluated contexts and compile-time dead branches. Those aren't the bugs we're looking for. llvm-svn: 126739
* Don't warn with -Wbool-conversions if the user wrote an explicit cast like ↵Argyrios Kyrtzidis2010-09-281-0/+1
| | | | | | | | "(void *)false". Fixes rdar://8459342. llvm-svn: 114955
* Implement a warning when converting the literal 'false' to aDouglas Gregor2010-06-081-0/+9
pointer. Original patch by Troy D. Straszheim; fixes PR7283. llvm-svn: 105621
OpenPOWER on IntegriCloud