summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/warn-undefined-bool-conversion.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Extend tautological pointer compare and pointer to bool conversion warnings toRichard Trieu2014-08-081-0/+24
| | | | | | | | | | | | | | | macro arguments. Previously, these warnings skipped any code in a macro expansion. Preform an additional check and warn when the expression and context locations are both in the macro argument. The most obvious case not caught is passing a pointer directly to a macro, i.e 'assert(&array)' but 'assert(&array && "valid array")' is caught. This is because macro arguments are not typed and the conversion happens inside the macro. llvm-svn: 215251
* Extend -Wtautological-undefined-compare and -Wundefined-bool-conversion toRichard Trieu2014-06-281-0/+60
| | | | | | | trigger on taking the address of a reference that is returned from a function call. llvm-svn: 211989
* Fix my poor grammar from r210372Richard Trieu2014-06-061-6/+6
| | | | llvm-svn: 210387
* Add -Wtautological-undefined-compare and -Wundefined-bool-conversion warningsRichard Trieu2014-06-061-0/+37
to detect underfined behavior involving pointers. llvm-svn: 210372
OpenPOWER on IntegriCloud