summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/AnalysisBasedWarnings.cpp
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2011-09-03 01:14:15 +0000
committerChandler Carruth <chandlerc@gmail.com>2011-09-03 01:14:15 +0000
commit599deef3794655b276cd2c4047c6bee2abac01bb (patch)
tree4d67ca65a299e28d0a0d95d2d3733575cb4be9c0 /clang/lib/Sema/AnalysisBasedWarnings.cpp
parent2f5420b2259d41f828d2fadeff6fb4fce8e955db (diff)
downloadbcm5719-llvm-599deef3794655b276cd2c4047c6bee2abac01bb.tar.gz
bcm5719-llvm-599deef3794655b276cd2c4047c6bee2abac01bb.zip
Add a simple new warning to catch blatantly dangling pointer and
reference members of classes. We've had several bugs reported because of this, and there's no reason not to flag it right away in the compiler. Comments especially welcome on the strategy for implementing this warning (IE, what should trigger this?) and on the text of the warning itself. I'm going to extend this to cover obvious cases with temporaries and beef up the test cases some in subsequent patches. I'll then run it over a large codebase and make sure its not misbehaving before I add it to -Wall or turn it on by default. I think this one might be a good candidate for on by default. llvm-svn: 139075
Diffstat (limited to 'clang/lib/Sema/AnalysisBasedWarnings.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud