| /freebsd-9-stable/contrib/llvm/tools/clang/include/clang/StaticAnalyzer/Core/BugReporter/ |
| D | BugType.h | 30 class BugType { 38 BugType(StringRef name, StringRef cat) in BugType() function 40 virtual ~BugType() {} in ~BugType() 55 class BuiltinBug : public BugType { 60 : BugType(name, categories::LogicError), desc(description) {} in BuiltinBug() 63 : BugType(name, categories::LogicError), desc(name) {} in BuiltinBug()
|
| D | BugReporter.h | 46 class BugType; variable 73 BugType& BT; 145 BugReport(BugType& bt, StringRef desc, const ExplodedNode *errornode) in BugReport() 149 BugReport(BugType& bt, StringRef shortDesc, StringRef desc, in BugReport() 155 BugReport(BugType& bt, StringRef desc, PathDiagnosticLocation l) in BugReport() 167 BugReport(BugType& bt, StringRef desc, const ExplodedNode *errornode, in BugReport() 177 const BugType& getBugType() const { return BT; } in getBugType() 178 BugType& getBugType() { return BT; } in getBugType() 390 typedef llvm::ImmutableSet<BugType*> BugTypesTy; 457 void Register(BugType *BT); [all …]
|
| /freebsd-9-stable/contrib/llvm/tools/clang/lib/StaticAnalyzer/Checkers/ |
| D | CallAndMessageChecker.cpp | 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_undef; 44 mutable OwningPtr<BugType> BT_msg_arg; [all …]
|
| D | ExprInspectionChecker.cpp | 21 mutable OwningPtr<BugType> BT; 98 BT.reset(new BugType("Checking analyzer assumptions", "debug")); in analyzerEval() 109 BT.reset(new BugType("Checking analyzer assumptions", "debug")); in analyzerWarnIfReached() 129 BT.reset(new BugType("Checking analyzer assumptions", "debug")); in analyzerCheckInlined()
|
| D | PthreadLockChecker.cpp | 28 mutable OwningPtr<BugType> BT_doublelock; 29 mutable OwningPtr<BugType> BT_lor; 105 BT_doublelock.reset(new BugType("Double locking", "Lock checker")); in AcquireLock() 168 BT_lor.reset(new BugType("Lock order reversal", "Lock checker")); in ReleaseLock()
|
| D | NSErrorChecker.cpp | 137 class NSErrorDerefBug : public BugType { 139 NSErrorDerefBug() : BugType("NSError** null dereference", in NSErrorDerefBug() 143 class CFErrorDerefBug : public BugType { 145 CFErrorDerefBug() : BugType("CFErrorRef* null dereference", in CFErrorDerefBug() 265 BugType *bug = 0; in checkEvent()
|
| D | DeadStoresChecker.cpp | 179 const char *BugType = 0; in Report() local 183 BugType = "Dead initialization"; in Report() 189 BugType = "Dead increment"; in Report() 191 if (!BugType) BugType = "Dead assignment"; in Report() 202 BR.EmitBasicReport(AC->getDecl(), BugType, "Dead store", os.str(), L, R); in Report()
|
| D | SimpleStreamChecker.cpp | 57 OwningPtr<BugType> DoubleCloseBugType; 58 OwningPtr<BugType> LeakBugType; 112 DoubleCloseBugType.reset(new BugType("Double fclose", in SimpleStreamChecker() 115 LeakBugType.reset(new BugType("Resource Leak", in SimpleStreamChecker()
|
| D | TaintTesterChecker.cpp | 25 mutable OwningPtr<BugType> BT; 41 BT.reset(new BugType("Tainted data", "General")); in initBugType()
|
| D | NSAutoreleasePoolChecker.cpp | 35 mutable OwningPtr<BugType> BT; 62 BT.reset(new BugType("Use -drain instead of -release", in checkPreObjCMessage()
|
| D | NonNullParamChecker.cpp | 32 mutable OwningPtr<BugType> BTAttrNonNull; 33 mutable OwningPtr<BugType> BTNullRefArg; 158 BTAttrNonNull.reset(new BugType( in genReportNullAttrNonNull()
|
| D | MacOSXAPIChecker.cpp | 34 mutable OwningPtr<BugType> BT_dispatchOnce; 70 BT_dispatchOnce.reset(new BugType("Improper use of 'dispatch_once'", in CheckDispatchOnce()
|
| D | ObjCContainersChecker.cpp | 33 mutable OwningPtr<BugType> BT; 36 BT.reset(new BugType("CFArray API", in initBugType()
|
| D | UnixAPIChecker.cpp | 33 mutable OwningPtr<BugType> BT_open, BT_pthreadOnce, BT_mallocZero; 67 static inline void LazyInitialize(OwningPtr<BugType> &BT, in LazyInitialize() 71 BT.reset(new BugType(name, categories::UnixAPI)); in LazyInitialize()
|
| D | MallocChecker.cpp | 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")); in ReportBadFree() 1271 BT_MismatchedDealloc.reset(new BugType("Bad deallocator", in ReportMismatchedDealloc() 1329 BT_OffsetFree.reset(new BugType("Offset free", "Memory Error")); in ReportOffsetFree() 1378 BT_UseFree.reset(new BugType("Use-after-free", "Memory Error")); in ReportUseAfterFree() [all …]
|
| D | UndefinedArraySubscriptChecker.cpp | 28 mutable OwningPtr<BugType> BT;
|
| D | UndefinedAssignmentChecker.cpp | 27 mutable OwningPtr<BugType> BT;
|
| D | UndefResultChecker.cpp | 31 mutable OwningPtr<BugType> BT;
|
| D | UndefCapturedBlockVarChecker.cpp | 30 mutable OwningPtr<BugType> BT;
|
| D | ObjCSelfInitChecker.cpp | 83 class InitSelfBug : public BugType { 86 InitSelfBug() : BugType("Missing \"self = [(super or self) init...]\"", in InitSelfBug()
|
| D | VLASizeChecker.cpp | 32 mutable OwningPtr<BugType> BT;
|
| D | BasicObjCFoundationChecks.cpp | 40 class APIMisuse : public BugType { 42 APIMisuse(const char* name) : BugType(name, "API Misuse (Apple)") {} in APIMisuse() 589 mutable OwningPtr<BugType> BT; 646 mutable OwningPtr<BugType> BT;
|
| D | IdempotentOperationChecker.cpp | 110 mutable OwningPtr<BugType> BT; 349 BT.reset(new BugType("Idempotent operation", "Dead code")); in checkEndAnalysis()
|
| /freebsd-9-stable/contrib/llvm/tools/clang/lib/StaticAnalyzer/Core/ |
| D | HTMLDiagnostics.cpp | 210 StringRef BugType = D.getBugType(); in ReportDiag() local 211 if (!BugType.empty()) in ReportDiag() 212 os << "\n<!-- BUGTYPE " << BugType << " -->\n"; in ReportDiag()
|
| D | BugReporter.cpp | 2537 void BugType::anchor() { } in anchor() 2539 void BugType::FlushReports(BugReporter &BR) {} in FlushReports() 2785 SmallVector<const BugType*, 16> bugTypes; in FlushReports() 2788 for (SmallVectorImpl<const BugType *>::iterator in FlushReports() 2790 const_cast<BugType*>(*I)->FlushReports(*this); in FlushReports() 2805 for (llvm::StringMap<BugType*>::iterator in FlushReports() 3245 void BugReporter::Register(BugType *BT) { in Register() 3274 BugType& BT = R->getBugType(); in emitReport() 3309 BugType& BT = I->getBugType(); in FindReportInEquivalenceClass() 3420 BugType& BT = exampleReport->getBugType(); in FlushReport() [all …]
|