llvm-project/clang/lib/StaticAnalyzer/Checkers
Ted Kremenek 85825aebc9 Further tweak -Wurneachable-code and templates by allowing the warning to run on
explicit template specializations (which represent actual functions somebody wrote).

Along the way, refactor some other code which similarly cares about whether or
not they are looking at a template instantiation.

llvm-svn: 145547
2011-12-01 00:59:17 +00:00
..
AdjustedReturnValueChecker.cpp [analyzer] Rename generateNode -> addTransition in CheckerContext 2011-10-26 21:06:34 +00:00
AnalyzerStatsChecker.cpp Rename AnalysisContext to AnalysisDeclContext. Not only is this name more accurate, but it frees up the name AnalysisContext for other uses. 2011-10-24 01:32:45 +00:00
ArrayBoundChecker.cpp [analyzer] Rename generateNode -> addTransition in CheckerContext 2011-10-26 21:06:34 +00:00
ArrayBoundCheckerV2.cpp [analyzer] Catch the first taint propagation implied buffer overflow. 2011-11-16 19:58:17 +00:00
AttrNonNullChecker.cpp [analyzer] Rename generateNode -> addTransition in CheckerContext 2011-10-26 21:06:34 +00:00
BasicObjCFoundationChecks.cpp [analyzer] Rename generateNode -> addTransition in CheckerContext 2011-10-26 21:06:34 +00:00
BuiltinFunctionChecker.cpp [analyzer] Add getLocationContext to CheckerContext 2011-10-26 21:06:44 +00:00
CMakeLists.txt Update CMake build. 2011-11-30 18:56:24 +00:00
CStringChecker.cpp [analyzer] Add getLocationContext to CheckerContext 2011-10-26 21:06:44 +00:00
CallAndMessageChecker.cpp [analyzer] CheckerContext::getPredecessor() cleanup 2011-11-01 22:41:01 +00:00
CastSizeChecker.cpp Remove EnhancedBugReport and RangedBugReport - pull all the extra functionality they provided into their parent BugReport. The only functional changes are: made getRanges() non const - it adds default range to Ranges if none are supplied, made getStmt() private, which was another FIXME. 2011-08-17 23:00:25 +00:00
CastToStructChecker.cpp [analyzer] Rename generateNode -> addTransition in CheckerContext 2011-10-26 21:06:34 +00:00
CheckObjCDealloc.cpp Change operator<< for raw_ostream and NamedDecl to take a reference instead of a pointer. 2011-10-14 18:45:37 +00:00
CheckObjCInstMethSignature.cpp Change operator<< for raw_ostream and NamedDecl to take a reference instead of a pointer. 2011-10-14 18:45:37 +00:00
CheckSecuritySyntaxOnly.cpp Rename AnalysisContext to AnalysisDeclContext. Not only is this name more accurate, but it frees up the name AnalysisContext for other uses. 2011-10-24 01:32:45 +00:00
CheckSizeofPointer.cpp Rename AnalysisContext to AnalysisDeclContext. Not only is this name more accurate, but it frees up the name AnalysisContext for other uses. 2011-10-24 01:32:45 +00:00
CheckerDocumentation.cpp [analyzer] Add checker callback documentation. 2011-11-30 17:12:52 +00:00
Checkers.td [analyzer] Adding generic taint checker. 2011-11-16 19:58:13 +00:00
ChrootChecker.cpp [analyzer] Rename generateNode -> addTransition in CheckerContext 2011-10-26 21:06:34 +00:00
ClangCheckers.cpp [analyzer] Overhaul of checker registration in preparation for basic plugin support. Removes support for checker groups (we can add them back in later if we decide they are still useful), and -analyzer-checker-help output is a little worse for the time being (no packages). 2011-08-16 21:24:21 +00:00
ClangSACheckers.h [analyzer] Overhaul of checker registration in preparation for basic plugin support. Removes support for checker groups (we can add them back in later if we decide they are still useful), and -analyzer-checker-help output is a little worse for the time being (no packages). 2011-08-16 21:24:21 +00:00
DeadStoresChecker.cpp Rename AnalysisContext to AnalysisDeclContext. Not only is this name more accurate, but it frees up the name AnalysisContext for other uses. 2011-10-24 01:32:45 +00:00
DebugCheckers.cpp Add source-level dominators analysis. Patch by Guoping Long! 2011-10-25 00:25:24 +00:00
DereferenceChecker.cpp [analyzer] Rename generateNode -> addTransition in CheckerContext 2011-10-26 21:06:34 +00:00
DivZeroChecker.cpp [analyzer] Remove redundant check from DivZeroChecker 2011-11-08 19:56:35 +00:00
FixedAddressChecker.cpp [analyzer] Rename generateNode -> addTransition in CheckerContext 2011-10-26 21:06:34 +00:00
GenericTaintChecker.cpp [analyzer] Warn when non pointer arguments are passed to scanf (only when running taint checker). 2011-11-18 02:26:36 +00:00
IdempotentOperationChecker.cpp Rename AnalysisContext to AnalysisDeclContext. Not only is this name more accurate, but it frees up the name AnalysisContext for other uses. 2011-10-24 01:32:45 +00:00
IteratorsChecker.cpp [analyzer] Add getLocationContext to CheckerContext 2011-10-26 21:06:44 +00:00
LLVMConventionsChecker.cpp Rename TagDecl::isDefinition -> isCompleteDefinition 2011-10-07 06:10:15 +00:00
MacOSKeychainAPIChecker.cpp [analyzer] Factor getCalleeName to the checker context. 2011-11-16 19:57:55 +00:00
MacOSXAPIChecker.cpp Remove EnhancedBugReport and RangedBugReport - pull all the extra functionality they provided into their parent BugReport. The only functional changes are: made getRanges() non const - it adds default range to Ranges if none are supplied, made getStmt() private, which was another FIXME. 2011-08-17 23:00:25 +00:00
Makefile Clang-side build system infrastructure for multiple tblgens. 2011-10-06 01:52:10 +00:00
MallocChecker.cpp [analyzer] Rename generateNode -> addTransition in CheckerContext 2011-10-26 21:06:34 +00:00
MallocOverflowSecurityChecker.cpp Rename AnalysisContext to AnalysisDeclContext. Not only is this name more accurate, but it frees up the name AnalysisContext for other uses. 2011-10-24 01:32:45 +00:00
NSAutoreleasePoolChecker.cpp [analyzer] Remove EmitBasicReport form CheckerContext. 2011-10-26 21:06:39 +00:00
NSErrorChecker.cpp [analyzer] Add getLocationContext to CheckerContext 2011-10-26 21:06:44 +00:00
NoReturnFunctionChecker.cpp [analyzer] Remove unused methods, add comments to others. 2011-10-04 18:34:40 +00:00
OSAtomicChecker.cpp [analyzer] Node builders cleanup + comments 2011-10-24 21:19:59 +00:00
ObjCAtSyncChecker.cpp [analyzer] Rename generateNode -> addTransition in CheckerContext 2011-10-26 21:06:34 +00:00
ObjCSelfInitChecker.cpp [analyzer] Rename generateNode -> addTransition in CheckerContext 2011-10-26 21:06:34 +00:00
ObjCUnusedIVarsChecker.cpp Change operator<< for raw_ostream and NamedDecl to take a reference instead of a pointer. 2011-10-14 18:45:37 +00:00
PointerArithChecker.cpp [analyzer] Rename generateNode -> addTransition in CheckerContext 2011-10-26 21:06:34 +00:00
PointerSubChecker.cpp [analyzer] Rename generateNode -> addTransition in CheckerContext 2011-10-26 21:06:34 +00:00
PthreadLockChecker.cpp [analyzer] Rename generateNode -> addTransition in CheckerContext 2011-10-26 21:06:34 +00:00
RetainCountChecker.cpp [static analyzer] Tweak RetainCountChecker's diagnostics to correctly indicate if a message was due to a property access. This can 2011-11-14 21:59:21 +00:00
ReturnPointerRangeChecker.cpp Remove EnhancedBugReport and RangedBugReport - pull all the extra functionality they provided into their parent BugReport. The only functional changes are: made getRanges() non const - it adds default range to Ranges if none are supplied, made getStmt() private, which was another FIXME. 2011-08-17 23:00:25 +00:00
ReturnUndefChecker.cpp Static Analyzer Diagnostics: Kill the addVisitorCreator(callbackTy, void*) API in favor of addVisitor(BugReporterVisitor*). 2011-08-19 22:33:38 +00:00
StackAddrEscapeChecker.cpp [analyzer] Add getLocationContext to CheckerContext 2011-10-26 21:06:44 +00:00
StreamChecker.cpp [analyzer] Rename generateNode -> addTransition in CheckerContext 2011-10-26 21:06:34 +00:00
UndefBranchChecker.cpp [analyzer] Make branch for condition callback use CheckerContext 2011-10-25 19:56:54 +00:00
UndefCapturedBlockVarChecker.cpp [analyzer] Add getLocationContext to CheckerContext 2011-10-26 21:06:44 +00:00
UndefResultChecker.cpp Static Analyzer Diagnostics: Kill the addVisitorCreator(callbackTy, void*) API in favor of addVisitor(BugReporterVisitor*). 2011-08-19 22:33:38 +00:00
UndefinedArraySubscriptChecker.cpp Static Analyzer Diagnostics: Kill the addVisitorCreator(callbackTy, void*) API in favor of addVisitor(BugReporterVisitor*). 2011-08-19 22:33:38 +00:00
UndefinedAssignmentChecker.cpp [analyzer] Remove the dependency on CheckerContext::getStmt() as well as the method itself. 2011-10-06 00:43:15 +00:00
UnixAPIChecker.cpp [analyzer] Rename generateNode -> addTransition in CheckerContext 2011-10-26 21:06:34 +00:00
UnreachableCodeChecker.cpp Further tweak -Wurneachable-code and templates by allowing the warning to run on 2011-12-01 00:59:17 +00:00
VLASizeChecker.cpp [analyzer] Add getLocationContext to CheckerContext 2011-10-26 21:06:44 +00:00