| /freebsd-12.1/contrib/llvm/tools/clang/include/clang/StaticAnalyzer/Core/BugReporter/ |
| H A D | BugType.h | 30 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 D | BugReporter.h | 57 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 D | CallAndMessageChecker.cpp | 46 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 D | PthreadLockChecker.cpp | 71 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 D | NSErrorChecker.cpp | 135 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 D | DeadStoresChecker.cpp | 181 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 D | SimpleStreamChecker.cpp | 57 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 D | TaintTesterChecker.cpp | 25 mutable std::unique_ptr<BugType> BT; 41 BT.reset(new BugType(this, "Tainted data", "General")); in initBugType()
|
| H A D | NSAutoreleasePoolChecker.cpp | 35 mutable std::unique_ptr<BugType> BT; 62 BT.reset(new BugType(this, "Use -drain instead of -release", in checkPreObjCMessage()
|
| H A D | CloneChecker.cpp | 32 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 D | NonNullParamChecker.cpp | 32 mutable std::unique_ptr<BugType> BTAttrNonNull; 33 mutable std::unique_ptr<BugType> BTNullRefArg; 188 BTAttrNonNull.reset(new BugType( in genReportNullAttrNonNull()
|
| H A D | MmapWriteExecChecker.cpp | 35 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 D | DeleteWithNonVirtualDtorChecker.cpp | 40 mutable std::unique_ptr<BugType> BT; 90 BT.reset(new BugType(this, in checkPreStmt()
|
| H A D | MacOSXAPIChecker.cpp | 34 mutable std::unique_ptr<BugType> BT_dispatchOnce; 140 BT_dispatchOnce.reset(new BugType(this, "Improper use of 'dispatch_once'", in CheckDispatchOnce()
|
| H A D | BlockInCriticalSectionChecker.cpp | 41 std::unique_ptr<BugType> BlockInCritSectionBugType; 82 new BugType(this, "Call to blocking function in critical section", in REGISTER_TRAIT_WITH_PROGRAMSTATE()
|
| H A D | ObjCContainersChecker.cpp | 34 mutable std::unique_ptr<BugType> BT; 37 BT.reset(new BugType(this, "CFArray API", in initBugType()
|
| H A D | CheckObjCDealloc.cpp | 107 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 D | DynamicTypeChecker.cpp | 34 mutable std::unique_ptr<BugType> BT; 38 new BugType(this, "Dynamic and static type mismatch", "Type Error")); in initBugType()
|
| H A D | MallocChecker.cpp | 242 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 D | UnixAPIChecker.cpp | 44 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 D | ValistChecker.cpp | 32 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 D | MPIBugReporter.h | 29 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 D | IssueHash.cpp | 185 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 D | IssueHash.h | 41 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 D | RetainCountDiagnostics.h | 27 class RefCountBug : public BugType { 30 : BugType(checker, name, categories::MemoryRefCount) {} in RefCountBug()
|