summaryrefslogtreecommitdiffstats
path: root/clang/lib/Analysis/VLASizeChecker.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Change *BugReport constructors to take StringRefs.Benjamin Kramer2009-11-141-2/+2
| | | | | | | | - Eliminates many calls to std::string.c_str() - Fixes an invalid read in ReturnStackAddressChecker due to an unsafe call to StringRef.data() which doesn't guarantee null-termination. llvm-svn: 88779
* Make sure that Type::getAs<ArrayType>() (or Type::getAs<subclass ofDouglas Gregor2009-11-091-1/+2
| | | | | | | ArrayType>()) does not instantiate. Update all callers that used this unsafe feature to use the appropriate ASTContext::getAs*ArrayType method. llvm-svn: 86596
* Remove Checker::CheckType() (and instead using ↵Ted Kremenek2009-11-071-99/+65
| | | | | | CheckerVisitor::PreVisitDeclStmt()), and refactor VLASizeChecker to have only one Checker subclass (not two) and to not use the node builders directly (and instead use the newer CheckerContext). llvm-svn: 86329
* Make the VLASizeChecker implementation private, and its creation only known ↵Ted Kremenek2009-11-061-1/+29
| | | | | | to GRExprEngineInternalChecks.cpp. llvm-svn: 86292
* Minor cleanup: use BuiltinBug (which will soon be renamed) for ↵Ted Kremenek2009-11-061-2/+2
| | | | | | DeferenceChecker and friends so that they always report the same bug type. llvm-svn: 86208
* Tweak wording and classifications of analyzer diagnostics.Ted Kremenek2009-11-051-3/+3
| | | | llvm-svn: 86127
* Merge ZeroSizedVLAChecker and UndefSizedVLAChecker.Zhongxing Xu2009-11-041-0/+102
llvm-svn: 85996
OpenPOWER on IntegriCloud