Home
last modified time | relevance | path

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

12

/freebsd-12.1/contrib/llvm/tools/clang/include/clang/StaticAnalyzer/Core/BugReporter/
H A DBugType.h30 class BugType {
41 BugType(CheckName Check, StringRef Name, StringRef Cat) in BugType() function
44 BugType(const CheckerBase *Checker, StringRef Name, StringRef Cat) in BugType() function
47 virtual ~BugType() = default;
70 class BuiltinBug : public BugType {
75 : BugType(check, name, categories::LogicError), desc(description) {} in BuiltinBug()
79 : BugType(checker, name, categories::LogicError), desc(description) {} in BuiltinBug()
82 : BugType(checker, name, categories::LogicError), desc(name) {} in BuiltinBug()
H A DBugReporter.h57 class BugType; variable
98 BugType& BT;
167 BugReport(BugType& bt, StringRef desc, const ExplodedNode *errornode) in BugReport()
170 BugReport(BugType& bt, StringRef shortDesc, StringRef desc, in BugReport()
175 BugReport(BugType &bt, StringRef desc, PathDiagnosticLocation l) in BugReport()
192 const BugType& getBugType() const { return BT; } in getBugType()
193 BugType& getBugType() { return BT; } in getBugType()
417 using BugTypesTy = llvm::ImmutableSet<BugType *>;
484 void Register(BugType *BT);
504 llvm::StringMap<BugType *> StrBugTypes;
[all …]
/freebsd-12.1/contrib/llvm/tools/clang/lib/StaticAnalyzer/Checkers/
H A DCallAndMessageChecker.cpp46 mutable std::unique_ptr<BugType> BT_call_null;
47 mutable std::unique_ptr<BugType> BT_call_undef;
48 mutable std::unique_ptr<BugType> BT_cxx_call_null;
50 mutable std::unique_ptr<BugType> BT_call_arg;
52 mutable std::unique_ptr<BugType> BT_msg_undef;
55 mutable std::unique_ptr<BugType> BT_msg_arg;
56 mutable std::unique_ptr<BugType> BT_msg_ret;
57 mutable std::unique_ptr<BugType> BT_call_few_args;
368 BugType *BT = BT_cxx_delete_undef.get(); in checkPreStmt()
443 std::unique_ptr<BugType> *BT; in checkPreCall()
[all …]
H A DPthreadLockChecker.cpp71 mutable std::unique_ptr<BugType> BT_doublelock;
72 mutable std::unique_ptr<BugType> BT_doubleunlock;
73 mutable std::unique_ptr<BugType> BT_destroylock;
74 mutable std::unique_ptr<BugType> BT_initlock;
75 mutable std::unique_ptr<BugType> BT_lor;
239 BT_doublelock.reset(new BugType(this, "Double locking", in AcquireLock()
304 BT_doubleunlock.reset(new BugType(this, "Double unlocking", in ReleaseLock()
328 BT_lor.reset(new BugType(this, "Lock order reversal", "Lock checker")); in ReleaseLock()
398 BT_destroylock.reset(new BugType(this, "Destroy invalid lock", in DestroyLock()
437 BT_initlock.reset(new BugType(this, "Init invalid lock", in InitLock()
[all …]
H A DNSErrorChecker.cpp135 class NSErrorDerefBug : public BugType {
138 : BugType(Checker, "NSError** null dereference", in NSErrorDerefBug()
142 class CFErrorDerefBug : public BugType {
145 : BugType(Checker, "CFErrorRef* null dereference", in CFErrorDerefBug()
266 BugType *bug = nullptr; in checkEvent()
H A DDeadStoresChecker.cpp181 const char *BugType = nullptr; in Report() local
185 BugType = "Dead initialization"; in Report()
191 BugType = "Dead increment"; in Report()
194 if (!BugType) BugType = "Dead assignment"; in Report()
205 BR.EmitBasicReport(AC->getDecl(), Checker, BugType, "Dead store", os.str(), in Report()
H A DSimpleStreamChecker.cpp57 std::unique_ptr<BugType> DoubleCloseBugType;
58 std::unique_ptr<BugType> LeakBugType;
110 new BugType(this, "Double fclose", "Unix Stream API Error")); in SimpleStreamChecker()
113 new BugType(this, "Resource Leak", "Unix Stream API Error")); in SimpleStreamChecker()
H A DTaintTesterChecker.cpp25 mutable std::unique_ptr<BugType> BT;
41 BT.reset(new BugType(this, "Tainted data", "General")); in initBugType()
H A DNSAutoreleasePoolChecker.cpp35 mutable std::unique_ptr<BugType> BT;
62 BT.reset(new BugType(this, "Use -drain instead of -release", in checkPreObjCMessage()
H A DCloneChecker.cpp32 mutable std::unique_ptr<BugType> BT_Exact, BT_Suspicious;
120 BT_Exact.reset(new BugType(this, "Exact code clone", "Code clone")); in reportClones()
167 new BugType(this, "Suspicious code clone", "Code clone")); in reportSuspiciousClones()
H A DNonNullParamChecker.cpp32 mutable std::unique_ptr<BugType> BTAttrNonNull;
33 mutable std::unique_ptr<BugType> BTNullRefArg;
188 BTAttrNonNull.reset(new BugType( in genReportNullAttrNonNull()
H A DMmapWriteExecChecker.cpp35 mutable std::unique_ptr<BugType> BT;
65 BT.reset(new BugType(this, "W^X check fails, Write Exec prot flags set", "Security")); in checkPreCall()
H A DDeleteWithNonVirtualDtorChecker.cpp40 mutable std::unique_ptr<BugType> BT;
90 BT.reset(new BugType(this, in checkPreStmt()
H A DMacOSXAPIChecker.cpp34 mutable std::unique_ptr<BugType> BT_dispatchOnce;
140 BT_dispatchOnce.reset(new BugType(this, "Improper use of 'dispatch_once'", in CheckDispatchOnce()
H A DBlockInCriticalSectionChecker.cpp41 std::unique_ptr<BugType> BlockInCritSectionBugType;
82 new BugType(this, "Call to blocking function in critical section", in REGISTER_TRAIT_WITH_PROGRAMSTATE()
H A DObjCContainersChecker.cpp34 mutable std::unique_ptr<BugType> BT;
37 BT.reset(new BugType(this, "CFArray API", in initBugType()
H A DCheckObjCDealloc.cpp107 std::unique_ptr<BugType> MissingReleaseBugType;
108 std::unique_ptr<BugType> ExtraReleaseBugType;
109 std::unique_ptr<BugType> MistakenDeallocBugType;
759 new BugType(this, "Missing ivar release (leak)", in ObjCDeallocChecker()
763 new BugType(this, "Extra ivar release", in ObjCDeallocChecker()
767 new BugType(this, "Mistaken dealloc", in ObjCDeallocChecker()
H A DDynamicTypeChecker.cpp34 mutable std::unique_ptr<BugType> BT;
38 new BugType(this, "Dynamic and static type mismatch", "Type Error")); in initBugType()
H A DMallocChecker.cpp242 mutable std::unique_ptr<BugType> BT_DoubleDelete;
243 mutable std::unique_ptr<BugType> BT_Leak[CK_NumCheckKinds];
244 mutable std::unique_ptr<BugType> BT_UseFree[CK_NumCheckKinds];
245 mutable std::unique_ptr<BugType> BT_BadFree[CK_NumCheckKinds];
247 mutable std::unique_ptr<BugType> BT_MismatchedDealloc;
1792 BT_BadFree[*CheckKind].reset(new BugType( in ReportBadFree()
1837 BT_FreeAlloca[*CheckKind].reset(new BugType( in ReportFreeAlloca()
1923 BT_OffsetFree[*CheckKind].reset(new BugType( in ReportOffsetFree()
1975 BT_UseFree[*CheckKind].reset(new BugType( in ReportUseAfterFree()
2012 BT_DoubleFree[*CheckKind].reset(new BugType( in ReportDoubleFree()
[all …]
H A DUnixAPIChecker.cpp44 mutable std::unique_ptr<BugType> BT_open, BT_pthreadOnce, BT_mallocZero;
80 void LazyInitialize(std::unique_ptr<BugType> &BT, const char *name) const { in LazyInitialize()
83 BT.reset(new BugType(this, name, categories::UnixAPI)); in LazyInitialize()
H A DValistChecker.cpp32 mutable std::unique_ptr<BugType> BT_leakedvalist, BT_uninitaccess;
254 BT_uninitaccess.reset(new BugType(CheckNames[CK_Uninitialized], in reportUninitializedAccess()
276 new BugType(CheckNames[CK_Unterminated].getName().empty() in reportLeakedVALists()
/freebsd-12.1/contrib/llvm/tools/clang/lib/StaticAnalyzer/Checkers/MPI-Checker/
H A DMPIBugReporter.h29 UnmatchedWaitBugType.reset(new BugType(&CB, "Unmatched wait", MPIError)); in MPIBugReporter()
31 new BugType(&CB, "Double nonblocking", MPIError)); in MPIBugReporter()
32 MissingWaitBugType.reset(new BugType(&CB, "Missing wait", MPIError)); in MPIBugReporter()
75 std::unique_ptr<BugType> UnmatchedWaitBugType;
76 std::unique_ptr<BugType> MissingWaitBugType;
77 std::unique_ptr<BugType> DoubleNonblockingBugType;
/freebsd-12.1/contrib/llvm/tools/clang/lib/StaticAnalyzer/Core/
H A DIssueHash.cpp185 StringRef CheckerName, StringRef BugType, in GetIssueString() argument
193 NormalizeLine(SM, IssueLoc, LangOpts) + Delimiter + BugType) in GetIssueString()
199 StringRef CheckerName, StringRef BugType, in GetIssueHash() argument
204 GetIssueString(SM, IssueLoc, CheckerName, BugType, D, LangOpts)); in GetIssueHash()
/freebsd-12.1/contrib/llvm/tools/clang/include/clang/StaticAnalyzer/Core/
H A DIssueHash.h41 llvm::StringRef BugType, const Decl *D,
47 llvm::StringRef CheckerName, llvm::StringRef BugType,
/freebsd-12.1/contrib/llvm/tools/clang/lib/StaticAnalyzer/Checkers/RetainCountChecker/
H A DRetainCountDiagnostics.h27 class RefCountBug : public BugType {
30 : BugType(checker, name, categories::MemoryRefCount) {} in RefCountBug()

12