Home
last modified time | relevance | path

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

12

/external/clang/include/clang/StaticAnalyzer/Core/BugReporter/
DBugType.h29 class BugType {
35 BugType(StringRef name, StringRef cat) in BugType() function
37 virtual ~BugType();
52 class BuiltinBug : public BugType {
57 : BugType(name, "Logic error"), desc(description) {} in BuiltinBug()
60 : BugType(name, "Logic error"), 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 …]
/external/clang/lib/StaticAnalyzer/Checkers/
DCallAndMessageChecker.cpp33 mutable OwningPtr<BugType> BT_call_null;
34 mutable OwningPtr<BugType> BT_call_undef;
35 mutable OwningPtr<BugType> BT_cxx_call_null;
36 mutable OwningPtr<BugType> BT_cxx_call_undef;
37 mutable OwningPtr<BugType> BT_call_arg;
38 mutable OwningPtr<BugType> BT_msg_undef;
39 mutable OwningPtr<BugType> BT_objc_prop_undef;
40 mutable OwningPtr<BugType> BT_objc_subscript_undef;
41 mutable OwningPtr<BugType> BT_msg_arg;
42 mutable OwningPtr<BugType> BT_msg_ret;
[all …]
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()
DExprInspectionChecker.cpp21 mutable OwningPtr<BugType> BT;
96 BT.reset(new BugType("Checking analyzer assumptions", "debug")); in analyzerEval()
116 BT.reset(new BugType("Checking analyzer assumptions", "debug")); in analyzerCheckInlined()
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()
DDeadStoresChecker.cpp180 const char *BugType = 0; in Report() local
184 BugType = "Dead initialization"; in Report()
190 BugType = "Dead increment"; in Report()
192 if (!BugType) BugType = "Dead assignment"; in Report()
203 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()
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()
DUndefinedArraySubscriptChecker.cpp28 mutable OwningPtr<BugType> BT;
DUndefinedAssignmentChecker.cpp27 mutable OwningPtr<BugType> BT;
DUndefResultChecker.cpp31 mutable OwningPtr<BugType> BT;
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()
1270 BT_MismatchedDealloc.reset(new BugType("Bad deallocator", in ReportMismatchedDealloc()
1316 BT_OffsetFree.reset(new BugType("Offset free", "Memory Error")); in ReportOffsetFree()
1365 BT_UseFree.reset(new BugType("Use-after-free", "Memory Error")); in ReportUseAfterFree()
[all …]
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;
/external/clang/examples/analyzer-plugin/
DMainCallChecker.cpp11 mutable OwningPtr<BugType> BT;
38 BT.reset(new BugType("call to main", "example analyzer plugin")); in checkPreStmt()
/external/chromium/chrome/browser/
Dbug_report_util.h33 enum BugType { enum
/external/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.cpp2491 BugType::~BugType() { } in ~BugType()
2493 void BugType::FlushReports(BugReporter &BR) {} in FlushReports()
2741 SmallVector<const BugType*, 16> bugTypes; in FlushReports()
2744 for (SmallVectorImpl<const BugType *>::iterator in FlushReports()
2746 const_cast<BugType*>(*I)->FlushReports(*this); in FlushReports()
2761 for (llvm::StringMap<BugType*>::iterator in FlushReports()
3200 void BugReporter::Register(BugType *BT) { in Register()
3229 BugType& BT = R->getBugType(); in emitReport()
3264 BugType& BT = I->getBugType(); in FindReportInEquivalenceClass()
3375 BugType& BT = exampleReport->getBugType(); in FlushReport()
[all …]

12