HomeSort by relevance Sort by last modified time
    Searched refs:BugType (Results 1 - 25 of 35) sorted by null

1 2

  /external/clang/include/clang/StaticAnalyzer/Core/BugReporter/
BugType.h 1 //===--- BugType.h - Bug Information Desciption ----------------*- C++ -*-===//
10 // This file defines BugType, a class representing a bug type.
31 class BugType {
40 BugType(class CheckName check, StringRef name, StringRef cat)
42 BugType(const CheckerBase *checker, StringRef name, StringRef cat)
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(checker, name, categories::LogicError), desc(name) {
    [all...]
BugReporter.h 47 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 *BT)
    [all...]
PathDiagnostic.h 716 std::string BugType;
736 StringRef bugtype, StringRef verboseDesc, StringRef shortDesc,
794 StringRef getBugType() const { return BugType; }
  /external/clang/examples/analyzer-plugin/
MainCallChecker.cpp 2 #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/
NSAutoreleasePoolChecker.cpp 22 #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",
TaintTesterChecker.cpp 14 #include "clang/StaticAnalyzer/Core/BugReporter/BugType.h"
25 mutable std::unique_ptr<BugType> BT;
41 BT.reset(new BugType(this, "Tainted data", "General"));
ExprInspectionChecker.cpp 11 #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"));
CallAndMessageChecker.cpp 18 #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_undef
    [all...]
PthreadLockChecker.cpp 16 #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(this, "Destroy invalid lock"
    [all...]
MacOSXAPIChecker.cpp 20 #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'",
UndefinedArraySubscriptChecker.cpp 17 #include "clang/StaticAnalyzer/Core/BugReporter/BugType.h"
28 mutable std::unique_ptr<BugType> BT;
NSErrorChecker.cpp 21 #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;
NonNullParamChecker.cpp 20 #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(
SimpleStreamChecker.cpp 19 #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"));
UndefinedAssignmentChecker.cpp 16 #include "clang/StaticAnalyzer/Core/BugReporter/BugType.h"
27 mutable std::unique_ptr<BugType> BT;
DeadStoresChecker.cpp 181 const char *BugType = nullptr;
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(),
ObjCContainersChecker.cpp 21 #include "clang/StaticAnalyzer/Core/BugReporter/BugType.h"
33 mutable std::unique_ptr<BugType> BT;
36 BT.reset(new BugType(this, "CFArray API",
UndefCapturedBlockVarChecker.cpp 16 #include "clang/StaticAnalyzer/Core/BugReporter/BugType.h"
30 mutable std::unique_ptr<BugType> BT;
UndefResultChecker.cpp 16 #include "clang/StaticAnalyzer/Core/BugReporter/BugType.h"
31 mutable std::unique_ptr<BugType> BT;
UnixAPIChecker.cpp 17 #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));
VLASizeChecker.cpp 19 #include "clang/StaticAnalyzer/Core/BugReporter/BugType.h"
32 mutable std::unique_ptr<BugType> BT;
ObjCSelfInitChecker.cpp 41 #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...]\"",
MallocChecker.cpp 20 #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];
    [all...]
  /external/clang/lib/StaticAnalyzer/Core/
HTMLDiagnostics.cpp 234 StringRef BugType = D.getBugType();
235 if (!BugType.empty())
236 os << "\n<!-- BUGTYPE " << BugType << " -->\n";
BugReporter.cpp 26 #include "clang/StaticAnalyzer/Core/BugReporter/BugType.h"
    [all...]

Completed in 337 milliseconds

1 2