Searched refs:BT (Results 1 - 25 of 68) sorted by relevance

123

/freebsd-9.3-release/contrib/llvm/tools/clang/lib/StaticAnalyzer/Checkers/
H A DFixedAddressChecker.cpp28 mutable OwningPtr<BuiltinBug> BT; member in class:__anon3421::FixedAddressChecker
54 if (!BT)
55 BT.reset(new BuiltinBug("Use fixed address",
59 BugReport *R = new BugReport(*BT, BT->getDescription(), N);
H A DUndefinedArraySubscriptChecker.cpp28 mutable OwningPtr<BugType> BT; member in class:__anon3478::UndefinedArraySubscriptChecker
52 if (!BT)
53 BT.reset(new BuiltinBug("Array subscript is undefined"));
56 BugReport *R = new BugReport(*BT, BT->getName(), N);
H A DNSAutoreleasePoolChecker.cpp35 mutable OwningPtr<BugType> BT; member in class:__anon3438::NSAutoreleasePoolChecker
61 if (!BT)
62 BT.reset(new BugType("Use -drain instead of -release",
71 BugReport *Report = new BugReport(*BT, "Use -drain instead of -release when "
H A DTaintTesterChecker.cpp25 mutable OwningPtr<BugType> BT; member in class:__anon3472::TaintTesterChecker
40 if (!BT)
41 BT.reset(new BugType("Tainted data", "General"));
53 BugReport *report = new BugReport(*BT, "tainted",N);
H A DExprInspectionChecker.cpp21 mutable OwningPtr<BugType> BT; member in class:__anon3420::ExprInspectionChecker
97 if (!BT)
98 BT.reset(new BugType("Checking analyzer assumptions", "debug"));
100 BugReport *R = new BugReport(*BT, getArgumentValueString(CE, C), N);
108 if (!BT)
109 BT.reset(new BugType("Checking analyzer assumptions", "debug"));
111 BugReport *R = new BugReport(*BT, "REACHABLE", N);
128 if (!BT)
129 BT.reset(new BugType("Checking analyzer assumptions", "debug"));
131 BugReport *R = new BugReport(*BT, getArgumentValueStrin
[all...]
H A DArrayBoundChecker.cpp28 mutable OwningPtr<BuiltinBug> BT; member in class:__anon3378::ArrayBoundChecker
68 if (!BT)
69 BT.reset(new BuiltinBug("Out-of-bound array access",
78 new BugReport(*BT, BT->getDescription(), N);
H A DCastToStructChecker.cpp27 mutable OwningPtr<BuiltinBug> BT; member in class:__anon3395::CastToStructChecker
60 if (!BT)
61 BT.reset(new BuiltinBug("Cast from non-struct type to struct type",
65 BugReport *R = new BugReport(*BT,BT->getDescription(), N);
H A DPointerArithChecker.cpp27 mutable OwningPtr<BuiltinBug> BT; member in class:__anon3455::PointerArithChecker
55 if (!BT)
56 BT.reset(new BuiltinBug("Dangerous pointer arithmetic",
60 BugReport *R = new BugReport(*BT, BT->getDescription(), N);
H A DPointerSubChecker.cpp28 mutable OwningPtr<BuiltinBug> BT; member in class:__anon3456::PointerSubChecker
64 if (!BT)
65 BT.reset(new BuiltinBug("Pointer subtraction",
68 BugReport *R = new BugReport(*BT, BT->getDescription(), N);
H A DReturnPointerRangeChecker.cpp28 mutable OwningPtr<BuiltinBug> BT; member in class:__anon3466::ReturnPointerRangeChecker
71 if (!BT)
72 BT.reset(new BuiltinBug("Return of pointer value outside of expected range",
82 new BugReport(*BT, BT->getDescription(), N);
H A DUndefinedAssignmentChecker.cpp27 mutable OwningPtr<BugType> BT; member in class:__anon3479::UndefinedAssignmentChecker
56 if (!BT)
57 BT.reset(new BuiltinBug(str));
86 BugReport *R = new BugReport(*BT, str, N);
H A DCastSizeChecker.cpp26 mutable OwningPtr<BuiltinBug> BT; member in class:__anon3394::CastSizeChecker
71 if (!BT)
72 BT.reset(new BuiltinBug("Cast region with wrong size.",
75 BugReport *R = new BugReport(*BT, BT->getDescription(),
H A DUndefBranchChecker.cpp27 mutable OwningPtr<BuiltinBug> BT; member in class:__anon3475::UndefBranchChecker
69 if (!BT)
70 BT.reset(
101 BugReport *R = new BugReport(*BT, BT->getDescription(), N);
H A DDivZeroChecker.cpp26 mutable OwningPtr<BuiltinBug> BT; member in class:__anon3418::DivZeroChecker
39 if (!BT)
40 BT.reset(new BuiltinBug("Division by zero"));
42 BugReport *R = new BugReport(*BT, Msg, N);
H A DUndefCapturedBlockVarChecker.cpp30 mutable OwningPtr<BugType> BT; member in class:__anon3476::UndefCapturedBlockVarChecker
81 if (!BT)
82 BT.reset(new BuiltinBug("uninitialized variable captured by block"));
91 BugReport *R = new BugReport(*BT, os.str(), N);
H A DUndefResultChecker.cpp31 mutable OwningPtr<BugType> BT; member in class:__anon3477::UndefResultChecker
57 if (!BT)
58 BT.reset(new BuiltinBug("Result of operation is garbage or undefined"));
86 BugReport *report = new BugReport(*BT, OS.str(), N);
H A DBoolAssignmentChecker.cpp26 mutable OwningPtr<BuiltinBug> BT; member in class:__anon3388::BoolAssignmentChecker
36 if (!BT)
37 BT.reset(new BuiltinBug("Assignment of a non-Boolean value"));
38 C.emitReport(new BugReport(*BT, BT->getDescription(), N));
H A DCallAndMessageChecker.cpp58 const CallEvent &Call, OwningPtr<BugType> &BT);
60 static void emitBadCall(BugType *BT, CheckerContext &C, const Expr *BadE);
68 static void LazyInit_BT(const char *desc, OwningPtr<BugType> &BT) { argument
69 if (!BT)
70 BT.reset(new BuiltinBug(desc));
75 void CallAndMessageChecker::emitBadCall(BugType *BT, CheckerContext &C, argument
81 BugReport *R = new BugReport(*BT, BT->getName(), N);
122 OwningPtr<BugType> &BT) {
125 LazyInit_BT("Uninitialized argument value", BT);
116 PreVisitProcessArg(CheckerContext &C, SVal V, SourceRange argRange, const Expr *argEx, bool IsFirstArgument, bool checkUninitFields, const CallEvent &Call, OwningPtr<BugType> &BT) argument
273 BugType *BT = BT_cxx_delete_undef.get(); local
343 OwningPtr<BugType> *BT; local
364 BugType *BT = 0; local
[all...]
H A DReturnUndefChecker.cpp81 static void emitBug(CheckerContext &C, BuiltinBug &BT, const Expr *RetE, argument
87 BugReport *Report = new BugReport(BT, BT.getDescription(), N);
H A DObjCContainersChecker.cpp33 mutable OwningPtr<BugType> BT; member in class:__anon3448::ObjCContainersChecker
35 if (!BT)
36 BT.reset(new BugType("CFArray API",
140 BugReport *R = new BugReport(*BT, "Index is out of bounds", N);
H A DVLASizeChecker.cpp32 mutable OwningPtr<BugType> BT; member in class:__anon3482::VLASizeChecker
53 if (!BT)
54 BT.reset(new BuiltinBug("Dangerous variable-length array (VLA) declaration"));
71 BugReport *report = new BugReport(*BT, os.str(), N);
H A DBasicObjCFoundationChecks.cpp97 mutable OwningPtr<APIMisuse> BT; member in class:__anon3381::NilArgChecker
190 if (!BT)
191 BT.reset(new APIMisuse("nil argument"));
193 BugReport *R = new BugReport(*BT, Msg, N);
312 mutable OwningPtr<APIMisuse> BT; member in class:__anon3382::CFNumberCreateChecker
482 if (!BT)
483 BT.reset(new APIMisuse("Bad use of CFNumberCreate"));
485 BugReport *report = new BugReport(*BT, os.str(), N);
497 mutable OwningPtr<APIMisuse> BT; member in class:__anon3383::CFRetainReleaseChecker
517 if (!BT) {
589 mutable OwningPtr<BugType> BT; member in class:__anon3384::ClassReleaseChecker
646 mutable OwningPtr<BugType> BT; member in class:__anon3385::VariadicMethodTypeChecker
[all...]
/freebsd-9.3-release/contrib/llvm/tools/clang/lib/Serialization/
H A DASTCommon.h33 TypeIdx TypeIdxFromBuiltin(const BuiltinType *BT);
48 if (const BuiltinType *BT = dyn_cast<BuiltinType>(T.getTypePtr()))
49 return TypeIdxFromBuiltin(BT).asTypeID(FastQuals);
/freebsd-9.3-release/contrib/llvm/tools/clang/lib/AST/
H A DType.cpp630 if (const BuiltinType *BT = dyn_cast<BuiltinType>(CanonicalType))
631 return BT->getKind() >= BuiltinType::Bool &&
632 BT->getKind() <= BuiltinType::Int128;
643 if (const BuiltinType *BT = dyn_cast<BuiltinType>(CanonicalType))
644 return BT->getKind() >= BuiltinType::Bool &&
645 BT->getKind() <= BuiltinType::Int128;
660 if (const BuiltinType *BT = dyn_cast<BuiltinType>(CanonicalType))
661 return BT->getKind() == BuiltinType::Char_U ||
662 BT->getKind() == BuiltinType::UChar ||
663 BT
690 const BuiltinType *BT = dyn_cast<BuiltinType>(CanonicalType); local
[all...]
/freebsd-9.3-release/contrib/llvm/tools/clang/include/clang/StaticAnalyzer/Core/BugReporter/
H A DBugReporter.h73 BugType& BT; member in class:clang::ento::BugReport
146 : BT(bt), DeclWithIssue(0), Description(desc), ErrorNode(errornode),
151 : BT(bt), DeclWithIssue(0), ShortDescription(shortDesc), Description(desc),
156 : BT(bt), DeclWithIssue(0), Description(desc), Location(l), ErrorNode(0),
169 : BT(bt), DeclWithIssue(0), Description(desc),
177 const BugType& getBugType() const { return BT; }
178 BugType& getBugType() { return BT; }
457 void Register(BugType *BT);

Completed in 127 milliseconds

123