diff options
author | Richard Trieu <rtrieu@google.com> | 2016-02-13 00:58:53 +0000 |
---|---|---|
committer | Richard Trieu <rtrieu@google.com> | 2016-02-13 00:58:53 +0000 |
commit | 0a5e166a0ba60dff9f004f6721c5476f29386169 (patch) | |
tree | 7e44cf21071905cda13e6effbf13363c5ea146f2 /clang/test/Index/index-many-call-ops.cpp | |
parent | 5b79ede65a2636c4676dfa49a23076fd870cd2ac (diff) | |
download | bcm5719-llvm-0a5e166a0ba60dff9f004f6721c5476f29386169.tar.gz bcm5719-llvm-0a5e166a0ba60dff9f004f6721c5476f29386169.zip |
Make -Wnull-conversion more useful.
When a null constant is used in a macro, walk through the macro stack to
determine where the null constant is written and where the context is located.
Only warn if both locations are within the same macro expansion. This helps
function-like macros which involve pointers be treated as if they were
functions.
llvm-svn: 260776
Diffstat (limited to 'clang/test/Index/index-many-call-ops.cpp')
0 files changed, 0 insertions, 0 deletions