/freebsd-10.2-release/contrib/llvm/tools/clang/include/clang/StaticAnalyzer/Core/BugReporter/ |
H A D | BugType.h | 1 //===--- BugType.h - Bug Information Desciption ----------------*- C++ -*-===// 10 // This file defines BugType, a class representing a bug type. 30 class BugType { class in namespace:clang::ento 38 BugType(StringRef name, StringRef cat) function in class:clang::ento::BugType 40 virtual ~BugType() {} 55 class BuiltinBug : public BugType { 60 : BugType(name, categories::LogicError), desc(description) {} 63 : BugType(name, categories::LogicError), desc(name) {}
|
H A D | BugReporter.h | 46 class BugType; 73 BugType& BT; 145 BugReport(BugType& bt, StringRef desc, const ExplodedNode *errornode) 149 BugReport(BugType& bt, StringRef shortDesc, StringRef desc, 155 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...] |
/freebsd-10.2-release/contrib/llvm/tools/clang/lib/StaticAnalyzer/Checkers/ |
H A D | NSAutoreleasePoolChecker.cpp | 22 #include "clang/StaticAnalyzer/Core/BugReporter/BugType.h" 35 mutable OwningPtr<BugType> BT; 62 BT.reset(new BugType("Use -drain instead of -release",
|
H A D | TaintTesterChecker.cpp | 14 #include "clang/StaticAnalyzer/Core/BugReporter/BugType.h" 25 mutable OwningPtr<BugType> BT; 41 BT.reset(new BugType("Tainted data", "General"));
|
H A D | ExprInspectionChecker.cpp | 11 #include "clang/StaticAnalyzer/Core/BugReporter/BugType.h" 21 mutable OwningPtr<BugType> BT; 98 BT.reset(new BugType("Checking analyzer assumptions", "debug")); 109 BT.reset(new BugType("Checking analyzer assumptions", "debug")); 129 BT.reset(new BugType("Checking analyzer assumptions", "debug"));
|
H A D | MacOSXAPIChecker.cpp | 20 #include "clang/StaticAnalyzer/Core/BugReporter/BugType.h" 34 mutable OwningPtr<BugType> BT_dispatchOnce; 70 BT_dispatchOnce.reset(new BugType("Improper use of 'dispatch_once'",
|
H A D | CallAndMessageChecker.cpp | 18 #include "clang/StaticAnalyzer/Core/BugReporter/BugType.h" 35 mutable OwningPtr<BugType> BT_call_null; 36 mutable OwningPtr<BugType> BT_call_undef; 37 mutable OwningPtr<BugType> BT_cxx_call_null; 38 mutable OwningPtr<BugType> BT_cxx_call_undef; 39 mutable OwningPtr<BugType> BT_call_arg; 40 mutable OwningPtr<BugType> BT_cxx_delete_undef; 41 mutable OwningPtr<BugType> BT_msg_undef; 42 mutable OwningPtr<BugType> BT_objc_prop_undef; 43 mutable OwningPtr<BugType> BT_objc_subscript_unde [all...] |
H A D | PthreadLockChecker.cpp | 16 #include "clang/StaticAnalyzer/Core/BugReporter/BugType.h" 28 mutable OwningPtr<BugType> BT_doublelock; 29 mutable OwningPtr<BugType> BT_lor; 105 BT_doublelock.reset(new BugType("Double locking", "Lock checker")); 168 BT_lor.reset(new BugType("Lock order reversal", "Lock checker"));
|
H A D | UndefinedArraySubscriptChecker.cpp | 17 #include "clang/StaticAnalyzer/Core/BugReporter/BugType.h" 28 mutable OwningPtr<BugType> BT;
|
H A D | NSErrorChecker.cpp | 21 #include "clang/StaticAnalyzer/Core/BugReporter/BugType.h" 137 class NSErrorDerefBug : public BugType { 139 NSErrorDerefBug() : BugType("NSError** null dereference", 143 class CFErrorDerefBug : public BugType { 145 CFErrorDerefBug() : BugType("CFErrorRef* null dereference", 265 BugType *bug = 0;
|
H A D | NonNullParamChecker.cpp | 20 #include "clang/StaticAnalyzer/Core/BugReporter/BugType.h" 32 mutable OwningPtr<BugType> BTAttrNonNull; 33 mutable OwningPtr<BugType> BTNullRefArg; 154 // Lazily allocate the BugType object if it hasn't already been 158 BTAttrNonNull.reset(new BugType(
|
H A D | SimpleStreamChecker.cpp | 19 #include "clang/StaticAnalyzer/Core/BugReporter/BugType.h" 57 OwningPtr<BugType> DoubleCloseBugType; 58 OwningPtr<BugType> LeakBugType; 112 DoubleCloseBugType.reset(new BugType("Double fclose", 115 LeakBugType.reset(new BugType("Resource Leak",
|
H A D | UndefinedAssignmentChecker.cpp | 16 #include "clang/StaticAnalyzer/Core/BugReporter/BugType.h" 27 mutable OwningPtr<BugType> BT;
|
H A D | DeadStoresChecker.cpp | 179 const char *BugType = 0; local 183 BugType = "Dead initialization"; 189 BugType = "Dead increment"; 191 if (!BugType) BugType = "Dead assignment"; 202 BR.EmitBasicReport(AC->getDecl(), BugType, "Dead store", os.str(), L, R);
|
H A D | ObjCContainersChecker.cpp | 21 #include "clang/StaticAnalyzer/Core/BugReporter/BugType.h" 33 mutable OwningPtr<BugType> BT; 36 BT.reset(new BugType("CFArray API",
|
H A D | UndefCapturedBlockVarChecker.cpp | 16 #include "clang/StaticAnalyzer/Core/BugReporter/BugType.h" 30 mutable OwningPtr<BugType> BT;
|
H A D | UndefResultChecker.cpp | 16 #include "clang/StaticAnalyzer/Core/BugReporter/BugType.h" 31 mutable OwningPtr<BugType> BT;
|
H A D | UnixAPIChecker.cpp | 17 #include "clang/StaticAnalyzer/Core/BugReporter/BugType.h" 33 mutable OwningPtr<BugType> BT_open, BT_pthreadOnce, BT_mallocZero; 67 static inline void LazyInitialize(OwningPtr<BugType> &BT, 71 BT.reset(new BugType(name, categories::UnixAPI));
|
H A D | VLASizeChecker.cpp | 19 #include "clang/StaticAnalyzer/Core/BugReporter/BugType.h" 32 mutable OwningPtr<BugType> BT;
|
H A D | ObjCSelfInitChecker.cpp | 41 #include "clang/StaticAnalyzer/Core/BugReporter/BugType.h" 83 class InitSelfBug : public BugType { 86 InitSelfBug() : BugType("Missing \"self = [(super or self) init...]\"",
|
H A D | BasicObjCFoundationChecks.cpp | 23 #include "clang/StaticAnalyzer/Core/BugReporter/BugType.h" 40 class APIMisuse : public BugType { 42 APIMisuse(const char* name) : BugType(name, "API Misuse (Apple)") {} 589 mutable OwningPtr<BugType> BT; 646 mutable OwningPtr<BugType> BT;
|
H A D | MallocChecker.cpp | 19 #include "clang/StaticAnalyzer/Core/BugReporter/BugType.h" 159 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")); 1271 BT_MismatchedDealloc.reset(new BugType("Bad deallocator", 1329 BT_OffsetFree.reset(new BugType("Offse [all...] |
H A D | GenericTaintChecker.cpp | 20 #include "clang/StaticAnalyzer/Core/BugReporter/BugType.h" 46 mutable OwningPtr<BugType> BT; 49 BT.reset(new BugType("Use of Untrusted Data", "Untrusted Data"));
|
/freebsd-10.2-release/contrib/llvm/tools/clang/lib/StaticAnalyzer/Core/ |
H A D | HTMLDiagnostics.cpp | 210 StringRef BugType = D.getBugType(); local 211 if (!BugType.empty()) 212 os << "\n<!-- BUGTYPE " << BugType << " -->\n"; local
|
H A D | BugReporter.cpp | 28 #include "clang/StaticAnalyzer/Core/BugReporter/BugType.h" 2535 // Methods for BugType and subclasses. 2537 void BugType::anchor() { } 2539 void BugType::FlushReports(BugReporter &BR) {} 2781 // First flush the warnings for each BugType. This may end up creating new 2783 // FIXME: Only NSErrorChecker needs BugType's FlushReports. 2785 SmallVector<const BugType*, 16> bugTypes; 2788 for (SmallVectorImpl<const BugType *>::iterator 2790 const_cast<BugType*>(*I)->FlushReports(*this); 2805 for (llvm::StringMap<BugType*> [all...] |