Searched refs:BugType (Results 1 - 25 of 33) sorted by relevance

12

/external/clang/include/clang/StaticAnalyzer/Core/BugReporter/
H A DBugType.h1 //===--- BugType.h - Bug Information Desciption ----------------*- C++ -*-===//
10 // This file defines BugType, a class representing a bug type.
31 class BugType { class in namespace:clang::ento
40 BugType(class CheckName check, StringRef name, StringRef cat) function in class:clang::ento::BugType
42 BugType(const CheckerBase *checker, StringRef name, StringRef cat) function in class:clang::ento::BugType
45 virtual ~BugType() {}
61 class BuiltinBug : public BugType {
66 : BugType(check, name, categories::LogicError), desc(description) {}
70 : BugType(checker, name, categories::LogicError), desc(description) {}
73 : BugType(checke
[all...]
H A DBugReporter.h47 class BugType;
74 BugType& BT;
146 BugReport(BugType& bt, StringRef desc, const ExplodedNode *errornode)
150 BugReport(BugType& bt, StringRef shortDesc, StringRef desc,
156 BugReport(BugType &bt, StringRef desc, PathDiagnosticLocation l)
167 BugReport(BugType& bt, StringRef desc, const ExplodedNode *errornode,
177 const BugType& getBugType() const { return BT; }
178 BugType& getBugType() { return BT; }
390 typedef llvm::ImmutableSet<BugType*> BugTypesTy;
457 void Register(BugType *B
[all...]
/external/clang/examples/analyzer-plugin/
H A DMainCallChecker.cpp2 #include "clang/StaticAnalyzer/Core/BugReporter/BugType.h"
11 mutable std::unique_ptr<BugType> BT;
38 BT.reset(new BugType(this, "call to main", "example analyzer plugin"));
/external/clang/lib/StaticAnalyzer/Checkers/
H A DNSAutoreleasePoolChecker.cpp22 #include "clang/StaticAnalyzer/Core/BugReporter/BugType.h"
35 mutable std::unique_ptr<BugType> BT;
62 BT.reset(new BugType(this, "Use -drain instead of -release",
H A DTaintTesterChecker.cpp14 #include "clang/StaticAnalyzer/Core/BugReporter/BugType.h"
25 mutable std::unique_ptr<BugType> BT;
41 BT.reset(new BugType(this, "Tainted data", "General"));
H A DExprInspectionChecker.cpp11 #include "clang/StaticAnalyzer/Core/BugReporter/BugType.h"
21 mutable std::unique_ptr<BugType> BT;
98 BT.reset(new BugType(this, "Checking analyzer assumptions", "debug"));
109 BT.reset(new BugType(this, "Checking analyzer assumptions", "debug"));
129 BT.reset(new BugType(this, "Checking analyzer assumptions", "debug"));
H A DCallAndMessageChecker.cpp18 #include "clang/StaticAnalyzer/Core/BugReporter/BugType.h"
44 mutable std::unique_ptr<BugType> BT_call_null;
45 mutable std::unique_ptr<BugType> BT_call_undef;
46 mutable std::unique_ptr<BugType> BT_cxx_call_null;
47 mutable std::unique_ptr<BugType> BT_cxx_call_undef;
48 mutable std::unique_ptr<BugType> BT_call_arg;
49 mutable std::unique_ptr<BugType> BT_cxx_delete_undef;
50 mutable std::unique_ptr<BugType> BT_msg_undef;
51 mutable std::unique_ptr<BugType> BT_objc_prop_undef;
52 mutable std::unique_ptr<BugType> BT_objc_subscript_unde
[all...]
H A DPthreadLockChecker.cpp16 #include "clang/StaticAnalyzer/Core/BugReporter/BugType.h"
53 mutable std::unique_ptr<BugType> BT_doublelock;
54 mutable std::unique_ptr<BugType> BT_doubleunlock;
55 mutable std::unique_ptr<BugType> BT_destroylock;
56 mutable std::unique_ptr<BugType> BT_initlock;
57 mutable std::unique_ptr<BugType> BT_lor;
143 BT_doublelock.reset(new BugType(this, "Double locking",
206 BT_doubleunlock.reset(new BugType(this, "Double unlocking",
231 BT_lor.reset(new BugType(this, "Lock order reversal", "Lock checker"));
277 BT_destroylock.reset(new BugType(thi
[all...]
H A DMacOSXAPIChecker.cpp20 #include "clang/StaticAnalyzer/Core/BugReporter/BugType.h"
34 mutable std::unique_ptr<BugType> BT_dispatchOnce;
70 BT_dispatchOnce.reset(new BugType(this, "Improper use of 'dispatch_once'",
H A DUndefinedArraySubscriptChecker.cpp17 #include "clang/StaticAnalyzer/Core/BugReporter/BugType.h"
28 mutable std::unique_ptr<BugType> BT;
H A DNSErrorChecker.cpp21 #include "clang/StaticAnalyzer/Core/BugReporter/BugType.h"
135 class NSErrorDerefBug : public BugType {
138 : BugType(Checker, "NSError** null dereference",
142 class CFErrorDerefBug : public BugType {
145 : BugType(Checker, "CFErrorRef* null dereference",
267 BugType *bug = nullptr;
H A DNonNullParamChecker.cpp20 #include "clang/StaticAnalyzer/Core/BugReporter/BugType.h"
32 mutable std::unique_ptr<BugType> BTAttrNonNull;
33 mutable std::unique_ptr<BugType> BTNullRefArg;
163 // Lazily allocate the BugType object if it hasn't already been
167 BTAttrNonNull.reset(new BugType(
H A DSimpleStreamChecker.cpp19 #include "clang/StaticAnalyzer/Core/BugReporter/BugType.h"
57 std::unique_ptr<BugType> DoubleCloseBugType;
58 std::unique_ptr<BugType> LeakBugType;
113 new BugType(this, "Double fclose", "Unix Stream API Error"));
116 new BugType(this, "Resource Leak", "Unix Stream API Error"));
H A DUndefinedAssignmentChecker.cpp16 #include "clang/StaticAnalyzer/Core/BugReporter/BugType.h"
27 mutable std::unique_ptr<BugType> BT;
H A DDeadStoresChecker.cpp181 const char *BugType = nullptr; local
185 BugType = "Dead initialization";
191 BugType = "Dead increment";
193 if (!BugType) BugType = "Dead assignment";
204 BR.EmitBasicReport(AC->getDecl(), Checker, BugType, "Dead store", os.str(),
H A DObjCContainersChecker.cpp21 #include "clang/StaticAnalyzer/Core/BugReporter/BugType.h"
33 mutable std::unique_ptr<BugType> BT;
36 BT.reset(new BugType(this, "CFArray API",
H A DUndefCapturedBlockVarChecker.cpp16 #include "clang/StaticAnalyzer/Core/BugReporter/BugType.h"
30 mutable std::unique_ptr<BugType> BT;
H A DUndefResultChecker.cpp16 #include "clang/StaticAnalyzer/Core/BugReporter/BugType.h"
31 mutable std::unique_ptr<BugType> BT;
H A DUnixAPIChecker.cpp17 #include "clang/StaticAnalyzer/Core/BugReporter/BugType.h"
33 mutable std::unique_ptr<BugType> BT_open, BT_pthreadOnce, BT_mallocZero;
60 void LazyInitialize(std::unique_ptr<BugType> &BT, const char *name) const {
63 BT.reset(new BugType(this, name, categories::UnixAPI));
H A DVLASizeChecker.cpp19 #include "clang/StaticAnalyzer/Core/BugReporter/BugType.h"
32 mutable std::unique_ptr<BugType> BT;
H A DObjCSelfInitChecker.cpp41 #include "clang/StaticAnalyzer/Core/BugReporter/BugType.h"
65 mutable std::unique_ptr<BugType> BT;
161 BT.reset(new BugType(this, "Missing \"self = [(super or self) init...]\"",
H A DMallocChecker.cpp20 #include "clang/StaticAnalyzer/Core/BugReporter/BugType.h"
205 mutable std::unique_ptr<BugType> BT_DoubleFree[CK_NumCheckKinds];
206 mutable std::unique_ptr<BugType> BT_DoubleDelete;
207 mutable std::unique_ptr<BugType> BT_Leak[CK_NumCheckKinds];
208 mutable std::unique_ptr<BugType> BT_UseFree[CK_NumCheckKinds];
209 mutable std::unique_ptr<BugType> BT_BadFree[CK_NumCheckKinds];
210 mutable std::unique_ptr<BugType> BT_MismatchedDealloc;
211 mutable std::unique_ptr<BugType> BT_OffsetFree[CK_NumCheckKinds];
1344 new BugType(CheckNames[*CheckKind], "Bad free", "Memory Error"));
1391 new BugType(CheckName
[all...]
H A DGenericTaintChecker.cpp20 #include "clang/StaticAnalyzer/Core/BugReporter/BugType.h"
45 mutable std::unique_ptr<BugType> BT;
48 BT.reset(new BugType(this, "Use of Untrusted Data", "Untrusted Data"));
/external/clang/lib/StaticAnalyzer/Core/
H A DHTMLDiagnostics.cpp234 StringRef BugType = D.getBugType(); local
235 if (!BugType.empty())
236 os << "\n<!-- BUGTYPE " << BugType << " -->\n"; local
H A DBugReporter.cpp26 #include "clang/StaticAnalyzer/Core/BugReporter/BugType.h"
2536 // Methods for BugType and subclasses.
2538 void BugType::anchor() { }
2540 void BugType::FlushReports(BugReporter &BR) {}
2780 // First flush the warnings for each BugType. This may end up creating new
2782 // FIXME: Only NSErrorChecker needs BugType's FlushReports.
2784 SmallVector<const BugType*, 16> bugTypes;
2787 for (SmallVectorImpl<const BugType *>::iterator
2789 const_cast<BugType*>(*I)->FlushReports(*this);
2806 // Remove all references to the BugType object
[all...]

Completed in 3198 milliseconds

12