Home
last modified time | relevance | path

Searched refs:BugType (Results 1 – 25 of 32) sorted by relevance

12

/freebsd-9-stable/contrib/llvm/tools/clang/include/clang/StaticAnalyzer/Core/BugReporter/
DBugType.h30 class BugType {
38 BugType(StringRef name, StringRef cat) in BugType() function
40 virtual ~BugType() {} in ~BugType()
55 class BuiltinBug : public BugType {
60 : BugType(name, categories::LogicError), desc(description) {} in BuiltinBug()
63 : BugType(name, categories::LogicError), desc(name) {} in BuiltinBug()
DBugReporter.h46 class BugType; variable
73 BugType& BT;
145 BugReport(BugType& bt, StringRef desc, const ExplodedNode *errornode) in BugReport()
149 BugReport(BugType& bt, StringRef shortDesc, StringRef desc, in BugReport()
155 BugReport(BugType& bt, StringRef desc, PathDiagnosticLocation l) in BugReport()
167 BugReport(BugType& bt, StringRef desc, const ExplodedNode *errornode, in BugReport()
177 const BugType& getBugType() const { return BT; } in getBugType()
178 BugType& getBugType() { return BT; } in getBugType()
390 typedef llvm::ImmutableSet<BugType*> BugTypesTy;
457 void Register(BugType *BT);
[all …]
/freebsd-9-stable/contrib/llvm/tools/clang/lib/StaticAnalyzer/Checkers/
DCallAndMessageChecker.cpp35 mutable OwningPtr<BugType> BT_call_null;
36 mutable OwningPtr<BugType> BT_call_undef;
37 mutable OwningPtr<BugType> BT_cxx_call_null;
38 mutable OwningPtr<BugType> BT_cxx_call_undef;
39 mutable OwningPtr<BugType> BT_call_arg;
40 mutable OwningPtr<BugType> BT_cxx_delete_undef;
41 mutable OwningPtr<BugType> BT_msg_undef;
42 mutable OwningPtr<BugType> BT_objc_prop_undef;
43 mutable OwningPtr<BugType> BT_objc_subscript_undef;
44 mutable OwningPtr<BugType> BT_msg_arg;
[all …]
DExprInspectionChecker.cpp21 mutable OwningPtr<BugType> BT;
98 BT.reset(new BugType("Checking analyzer assumptions", "debug")); in analyzerEval()
109 BT.reset(new BugType("Checking analyzer assumptions", "debug")); in analyzerWarnIfReached()
129 BT.reset(new BugType("Checking analyzer assumptions", "debug")); in analyzerCheckInlined()
DPthreadLockChecker.cpp28 mutable OwningPtr<BugType> BT_doublelock;
29 mutable OwningPtr<BugType> BT_lor;
105 BT_doublelock.reset(new BugType("Double locking", "Lock checker")); in AcquireLock()
168 BT_lor.reset(new BugType("Lock order reversal", "Lock checker")); in ReleaseLock()
DNSErrorChecker.cpp137 class NSErrorDerefBug : public BugType {
139 NSErrorDerefBug() : BugType("NSError** null dereference", in NSErrorDerefBug()
143 class CFErrorDerefBug : public BugType {
145 CFErrorDerefBug() : BugType("CFErrorRef* null dereference", in CFErrorDerefBug()
265 BugType *bug = 0; in checkEvent()
DDeadStoresChecker.cpp179 const char *BugType = 0; in Report() local
183 BugType = "Dead initialization"; in Report()
189 BugType = "Dead increment"; in Report()
191 if (!BugType) BugType = "Dead assignment"; in Report()
202 BR.EmitBasicReport(AC->getDecl(), BugType, "Dead store", os.str(), L, R); in Report()
DSimpleStreamChecker.cpp57 OwningPtr<BugType> DoubleCloseBugType;
58 OwningPtr<BugType> LeakBugType;
112 DoubleCloseBugType.reset(new BugType("Double fclose", in SimpleStreamChecker()
115 LeakBugType.reset(new BugType("Resource Leak", in SimpleStreamChecker()
DTaintTesterChecker.cpp25 mutable OwningPtr<BugType> BT;
41 BT.reset(new BugType("Tainted data", "General")); in initBugType()
DNSAutoreleasePoolChecker.cpp35 mutable OwningPtr<BugType> BT;
62 BT.reset(new BugType("Use -drain instead of -release", in checkPreObjCMessage()
DNonNullParamChecker.cpp32 mutable OwningPtr<BugType> BTAttrNonNull;
33 mutable OwningPtr<BugType> BTNullRefArg;
158 BTAttrNonNull.reset(new BugType( in genReportNullAttrNonNull()
DMacOSXAPIChecker.cpp34 mutable OwningPtr<BugType> BT_dispatchOnce;
70 BT_dispatchOnce.reset(new BugType("Improper use of 'dispatch_once'", in CheckDispatchOnce()
DObjCContainersChecker.cpp33 mutable OwningPtr<BugType> BT;
36 BT.reset(new BugType("CFArray API", in initBugType()
DUnixAPIChecker.cpp33 mutable OwningPtr<BugType> BT_open, BT_pthreadOnce, BT_mallocZero;
67 static inline void LazyInitialize(OwningPtr<BugType> &BT, in LazyInitialize()
71 BT.reset(new BugType(name, categories::UnixAPI)); in LazyInitialize()
DMallocChecker.cpp159 mutable OwningPtr<BugType> BT_DoubleFree;
160 mutable OwningPtr<BugType> BT_Leak;
161 mutable OwningPtr<BugType> BT_UseFree;
162 mutable OwningPtr<BugType> BT_BadFree;
163 mutable OwningPtr<BugType> BT_MismatchedDealloc;
164 mutable OwningPtr<BugType> BT_OffsetFree;
1225 BT_BadFree.reset(new BugType("Bad free", "Memory Error")); in ReportBadFree()
1271 BT_MismatchedDealloc.reset(new BugType("Bad deallocator", in ReportMismatchedDealloc()
1329 BT_OffsetFree.reset(new BugType("Offset free", "Memory Error")); in ReportOffsetFree()
1378 BT_UseFree.reset(new BugType("Use-after-free", "Memory Error")); in ReportUseAfterFree()
[all …]
DUndefinedArraySubscriptChecker.cpp28 mutable OwningPtr<BugType> BT;
DUndefinedAssignmentChecker.cpp27 mutable OwningPtr<BugType> BT;
DUndefResultChecker.cpp31 mutable OwningPtr<BugType> BT;
DUndefCapturedBlockVarChecker.cpp30 mutable OwningPtr<BugType> BT;
DObjCSelfInitChecker.cpp83 class InitSelfBug : public BugType {
86 InitSelfBug() : BugType("Missing \"self = [(super or self) init...]\"", in InitSelfBug()
DVLASizeChecker.cpp32 mutable OwningPtr<BugType> BT;
DBasicObjCFoundationChecks.cpp40 class APIMisuse : public BugType {
42 APIMisuse(const char* name) : BugType(name, "API Misuse (Apple)") {} in APIMisuse()
589 mutable OwningPtr<BugType> BT;
646 mutable OwningPtr<BugType> BT;
DIdempotentOperationChecker.cpp110 mutable OwningPtr<BugType> BT;
349 BT.reset(new BugType("Idempotent operation", "Dead code")); in checkEndAnalysis()
/freebsd-9-stable/contrib/llvm/tools/clang/lib/StaticAnalyzer/Core/
DHTMLDiagnostics.cpp210 StringRef BugType = D.getBugType(); in ReportDiag() local
211 if (!BugType.empty()) in ReportDiag()
212 os << "\n<!-- BUGTYPE " << BugType << " -->\n"; in ReportDiag()
DBugReporter.cpp2537 void BugType::anchor() { } in anchor()
2539 void BugType::FlushReports(BugReporter &BR) {} in FlushReports()
2785 SmallVector<const BugType*, 16> bugTypes; in FlushReports()
2788 for (SmallVectorImpl<const BugType *>::iterator in FlushReports()
2790 const_cast<BugType*>(*I)->FlushReports(*this); in FlushReports()
2805 for (llvm::StringMap<BugType*>::iterator in FlushReports()
3245 void BugReporter::Register(BugType *BT) { in Register()
3274 BugType& BT = R->getBugType(); in emitReport()
3309 BugType& BT = I->getBugType(); in FindReportInEquivalenceClass()
3420 BugType& BT = exampleReport->getBugType(); in FlushReport()
[all …]

12