summaryrefslogtreecommitdiffstats
path: root/llvm/utils/DSAclean.py
diff options
context:
space:
mode:
authorRichard Trieu <rtrieu@google.com>2016-02-13 00:58:53 +0000
committerRichard Trieu <rtrieu@google.com>2016-02-13 00:58:53 +0000
commit0a5e166a0ba60dff9f004f6721c5476f29386169 (patch)
tree7e44cf21071905cda13e6effbf13363c5ea146f2 /llvm/utils/DSAclean.py
parent5b79ede65a2636c4676dfa49a23076fd870cd2ac (diff)
downloadbcm5719-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 'llvm/utils/DSAclean.py')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud