diff options
author | Richard Trieu <rtrieu@google.com> | 2014-08-08 22:41:43 +0000 |
---|---|---|
committer | Richard Trieu <rtrieu@google.com> | 2014-08-08 22:41:43 +0000 |
commit | 4cbff5c76fb3236195a93dc595fbf1faa0e9e53f (patch) | |
tree | 92f5bb1474ae7ead79f955fa5120c4557c5b7d0b /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | 0b1d28866c369422c7be0c817ea9b9b7e0cfa12c (diff) | |
download | llvm-4cbff5c76fb3236195a93dc595fbf1faa0e9e53f.zip llvm-4cbff5c76fb3236195a93dc595fbf1faa0e9e53f.tar.gz llvm-4cbff5c76fb3236195a93dc595fbf1faa0e9e53f.tar.bz2 |
Extend tautological pointer compare and pointer to bool conversion warnings to
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
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions