Home
last modified time | relevance | path

Searched refs:BT (Results 1 – 25 of 97) sorted by relevance

1234

/freebsd-10-stable/contrib/llvm/tools/clang/lib/StaticAnalyzer/Checkers/
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) { in LazyInit_BT() argument
69 if (!BT) in LazyInit_BT()
70 BT.reset(new BuiltinBug(desc)); in LazyInit_BT()
75 void CallAndMessageChecker::emitBadCall(BugType *BT, CheckerContext &C, in emitBadCall() argument
81 BugReport *R = new BugReport(*BT, BT->getName(), N); in emitBadCall()
122 OwningPtr<BugType> &BT) { in PreVisitProcessArg() argument
125 LazyInit_BT("Uninitialized argument value", BT); in PreVisitProcessArg()
130 BugReport *R = new BugReport(*BT, Desc, N); in PreVisitProcessArg()
[all …]
DExprInspectionChecker.cpp21 mutable OwningPtr<BugType> BT; member in __anon5e484c100111::ExprInspectionChecker
97 if (!BT) in analyzerEval()
98 BT.reset(new BugType("Checking analyzer assumptions", "debug")); in analyzerEval()
100 BugReport *R = new BugReport(*BT, getArgumentValueString(CE, C), N); in analyzerEval()
108 if (!BT) in analyzerWarnIfReached()
109 BT.reset(new BugType("Checking analyzer assumptions", "debug")); in analyzerWarnIfReached()
111 BugReport *R = new BugReport(*BT, "REACHABLE", N); in analyzerWarnIfReached()
128 if (!BT) in analyzerCheckInlined()
129 BT.reset(new BugType("Checking analyzer assumptions", "debug")); in analyzerCheckInlined()
131 BugReport *R = new BugReport(*BT, getArgumentValueString(CE, C), N); in analyzerCheckInlined()
DUndefinedArraySubscriptChecker.cpp28 mutable OwningPtr<BugType> BT; member in __anonfc628f250111::UndefinedArraySubscriptChecker
52 if (!BT) in checkPreStmt()
53 BT.reset(new BuiltinBug("Array subscript is undefined")); in checkPreStmt()
56 BugReport *R = new BugReport(*BT, BT->getName(), N); in checkPreStmt()
DFixedAddressChecker.cpp28 mutable OwningPtr<BuiltinBug> BT; member in __anon735ca56b0111::FixedAddressChecker
54 if (!BT) in checkPreStmt()
55 BT.reset(new BuiltinBug("Use fixed address", in checkPreStmt()
59 BugReport *R = new BugReport(*BT, BT->getDescription(), N); in checkPreStmt()
DPointerArithChecker.cpp27 mutable OwningPtr<BuiltinBug> BT; member in __anon6a70d86e0111::PointerArithChecker
55 if (!BT) in checkPreStmt()
56 BT.reset(new BuiltinBug("Dangerous pointer arithmetic", in checkPreStmt()
60 BugReport *R = new BugReport(*BT, BT->getDescription(), N); in checkPreStmt()
DPointerSubChecker.cpp28 mutable OwningPtr<BuiltinBug> BT; member in __anon4255dbc00111::PointerSubChecker
64 if (!BT) in checkPreStmt()
65 BT.reset(new BuiltinBug("Pointer subtraction", in checkPreStmt()
68 BugReport *R = new BugReport(*BT, BT->getDescription(), N); in checkPreStmt()
DCastToStructChecker.cpp27 mutable OwningPtr<BuiltinBug> BT; member in __anon9298c0880111::CastToStructChecker
60 if (!BT) in checkPreStmt()
61 BT.reset(new BuiltinBug("Cast from non-struct type to struct type", in checkPreStmt()
65 BugReport *R = new BugReport(*BT,BT->getDescription(), N); in checkPreStmt()
DReturnPointerRangeChecker.cpp28 mutable OwningPtr<BuiltinBug> BT; member in __anon27df79830111::ReturnPointerRangeChecker
71 if (!BT) in checkPreStmt()
72 BT.reset(new BuiltinBug("Return of pointer value outside of expected range", in checkPreStmt()
82 new BugReport(*BT, BT->getDescription(), N); in checkPreStmt()
DArrayBoundChecker.cpp28 mutable OwningPtr<BuiltinBug> BT; member in __anon6592a88c0111::ArrayBoundChecker
68 if (!BT) in checkLocation()
69 BT.reset(new BuiltinBug("Out-of-bound array access", in checkLocation()
78 new BugReport(*BT, BT->getDescription(), N); in checkLocation()
DCastSizeChecker.cpp26 mutable OwningPtr<BuiltinBug> BT; member in __anon2b5c3d9b0111::CastSizeChecker
71 if (!BT) in checkPreStmt()
72 BT.reset(new BuiltinBug("Cast region with wrong size.", in checkPreStmt()
75 BugReport *R = new BugReport(*BT, BT->getDescription(), in checkPreStmt()
DUndefBranchChecker.cpp27 mutable OwningPtr<BuiltinBug> BT; member in __anonde81d3950111::UndefBranchChecker
69 if (!BT) in checkBranchCondition()
70 BT.reset( in checkBranchCondition()
101 BugReport *R = new BugReport(*BT, BT->getDescription(), N); in checkBranchCondition()
DTaintTesterChecker.cpp25 mutable OwningPtr<BugType> BT; member in __anona339f02c0111::TaintTesterChecker
40 if (!BT) in initBugType()
41 BT.reset(new BugType("Tainted data", "General")); in initBugType()
53 BugReport *report = new BugReport(*BT, "tainted",N); in checkPostStmt()
DNSAutoreleasePoolChecker.cpp35 mutable OwningPtr<BugType> BT; member in __anoneb4d362a0111::NSAutoreleasePoolChecker
61 if (!BT) in checkPreObjCMessage()
62 BT.reset(new BugType("Use -drain instead of -release", in checkPreObjCMessage()
71 BugReport *Report = new BugReport(*BT, "Use -drain instead of -release when " in checkPreObjCMessage()
DBoolAssignmentChecker.cpp26 mutable OwningPtr<BuiltinBug> BT; member in __anonaba8903a0111::BoolAssignmentChecker
36 if (!BT) in emitReport()
37 BT.reset(new BuiltinBug("Assignment of a non-Boolean value")); in emitReport()
38 C.emitReport(new BugReport(*BT, BT->getDescription(), N)); in emitReport()
DUndefinedAssignmentChecker.cpp27 mutable OwningPtr<BugType> BT; member in __anonb06226e00111::UndefinedAssignmentChecker
56 if (!BT) in checkBind()
57 BT.reset(new BuiltinBug(str)); in checkBind()
86 BugReport *R = new BugReport(*BT, str, N); in checkBind()
DUndefResultChecker.cpp31 mutable OwningPtr<BugType> BT; member in __anon9cf408460111::UndefResultChecker
57 if (!BT) in checkPostStmt()
58 BT.reset(new BuiltinBug("Result of operation is garbage or undefined")); in checkPostStmt()
86 BugReport *report = new BugReport(*BT, OS.str(), N); in checkPostStmt()
DDivZeroChecker.cpp26 mutable OwningPtr<BuiltinBug> BT; member in __anon416556380111::DivZeroChecker
39 if (!BT) in reportBug()
40 BT.reset(new BuiltinBug("Division by zero")); in reportBug()
42 BugReport *R = new BugReport(*BT, Msg, N); in reportBug()
DBasicObjCFoundationChecks.cpp97 mutable OwningPtr<APIMisuse> BT; member in __anoncdb83d480211::NilArgChecker
190 if (!BT) in generateBugReport()
191 BT.reset(new APIMisuse("nil argument")); in generateBugReport()
193 BugReport *R = new BugReport(*BT, Msg, N); in generateBugReport()
312 mutable OwningPtr<APIMisuse> BT; member in __anoncdb83d480311::CFNumberCreateChecker
482 if (!BT) in checkPreStmt()
483 BT.reset(new APIMisuse("Bad use of CFNumberCreate")); in checkPreStmt()
485 BugReport *report = new BugReport(*BT, os.str(), N); in checkPreStmt()
497 mutable OwningPtr<APIMisuse> BT; member in __anoncdb83d480411::CFRetainReleaseChecker
517 if (!BT) { in checkPreStmt()
[all …]
DUndefCapturedBlockVarChecker.cpp30 mutable OwningPtr<BugType> BT; member in __anon56d5eb530111::UndefCapturedBlockVarChecker
81 if (!BT) in checkPostStmt()
82 BT.reset(new BuiltinBug("uninitialized variable captured by block")); in checkPostStmt()
91 BugReport *R = new BugReport(*BT, os.str(), N); in checkPostStmt()
DVLASizeChecker.cpp32 mutable OwningPtr<BugType> BT; member in __anondcc7d7530111::VLASizeChecker
53 if (!BT) in reportBug()
54 BT.reset(new BuiltinBug("Dangerous variable-length array (VLA) declaration")); in reportBug()
71 BugReport *report = new BugReport(*BT, os.str(), N); in reportBug()
DObjCContainersChecker.cpp33 mutable OwningPtr<BugType> BT; member in __anonda3d90e90111::ObjCContainersChecker
35 if (!BT) in initBugType()
36 BT.reset(new BugType("CFArray API", in initBugType()
140 BugReport *R = new BugReport(*BT, "Index is out of bounds", N); in checkPreStmt()
DReturnUndefChecker.cpp81 static void emitBug(CheckerContext &C, BuiltinBug &BT, const Expr *RetE, in emitBug() argument
87 BugReport *Report = new BugReport(BT, BT.getDescription(), N); in emitBug()
/freebsd-10-stable/contrib/llvm/tools/clang/lib/AST/
DType.cpp630 if (const BuiltinType *BT = dyn_cast<BuiltinType>(CanonicalType)) in isIntegralType() local
631 return BT->getKind() >= BuiltinType::Bool && in isIntegralType()
632 BT->getKind() <= BuiltinType::Int128; in isIntegralType()
643 if (const BuiltinType *BT = dyn_cast<BuiltinType>(CanonicalType)) in isIntegralOrUnscopedEnumerationType() local
644 return BT->getKind() >= BuiltinType::Bool && in isIntegralOrUnscopedEnumerationType()
645 BT->getKind() <= BuiltinType::Int128; in isIntegralOrUnscopedEnumerationType()
660 if (const BuiltinType *BT = dyn_cast<BuiltinType>(CanonicalType)) in isCharType() local
661 return BT->getKind() == BuiltinType::Char_U || in isCharType()
662 BT->getKind() == BuiltinType::UChar || in isCharType()
663 BT->getKind() == BuiltinType::Char_S || in isCharType()
[all …]
/freebsd-10-stable/contrib/llvm/tools/clang/include/clang/StaticAnalyzer/Core/BugReporter/
DBugReporter.h73 BugType& BT; variable
146 : BT(bt), DeclWithIssue(0), Description(desc), ErrorNode(errornode), in BugReport()
151 : BT(bt), DeclWithIssue(0), ShortDescription(shortDesc), Description(desc), in BugReport()
156 : BT(bt), DeclWithIssue(0), Description(desc), Location(l), ErrorNode(0), in BugReport()
169 : BT(bt), DeclWithIssue(0), Description(desc), in BugReport()
177 const BugType& getBugType() const { return BT; } in getBugType()
178 BugType& getBugType() { return BT; } in getBugType()
457 void Register(BugType *BT);
/freebsd-10-stable/contrib/llvm/tools/clang/lib/Serialization/
DASTCommon.h33 TypeIdx TypeIdxFromBuiltin(const BuiltinType *BT);
48 if (const BuiltinType *BT = dyn_cast<BuiltinType>(T.getTypePtr())) in MakeTypeID() local
49 return TypeIdxFromBuiltin(BT).asTypeID(FastQuals); in MakeTypeID()

1234