summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/warn-tautological-undefined-compare.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Extend tautological pointer compare and pointer to bool conversion warnings toRichard Trieu2014-08-081-0/+28
| | | | | | | | | | | | | | | 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/+78
| | | | | | | trigger on taking the address of a reference that is returned from a function call. llvm-svn: 211989
* Add -Wtautological-undefined-compare and -Wundefined-bool-conversion warningsRichard Trieu2014-06-061-0/+34
to detect underfined behavior involving pointers. llvm-svn: 210372
OpenPOWER on IntegriCloud