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

123

/external/clang/examples/analyzer-plugin/
H A DMainCallChecker.cpp11 mutable OwningPtr<BugType> BT; member in class:__anon2834::MainCallChecker
37 if (!BT)
38 BT.reset(new BugType("call to main", "example analyzer plugin"));
40 BugReport *report = new BugReport(*BT, BT->getName(), N);
/external/clang/lib/StaticAnalyzer/Checkers/
H A DFixedAddressChecker.cpp28 mutable OwningPtr<BuiltinBug> BT; member in class:__anon3414::FixedAddressChecker
54 if (!BT)
55 BT.reset(new BuiltinBug("Use fixed address",
59 BugReport *R = new BugReport(*BT, BT->getDescription(), N);
H A DReturnUndefChecker.cpp28 mutable OwningPtr<BuiltinBug> BT; member in class:__anon3467::ReturnUndefChecker
49 if (!BT)
50 BT.reset(new BuiltinBug("Garbage return value",
54 new BugReport(*BT, BT->getDescription(), N);
H A DUndefinedArraySubscriptChecker.cpp27 mutable OwningPtr<BugType> BT; member in class:__anon3474::UndefinedArraySubscriptChecker
39 if (!BT)
40 BT.reset(new BuiltinBug("Array subscript is undefined"));
43 BugReport *R = new BugReport(*BT, BT->getName(), N);
H A DTaintTesterChecker.cpp25 mutable OwningPtr<BugType> BT; member in class:__anon3470::TaintTesterChecker
40 if (!BT)
41 BT.reset(new BugType("Tainted data", "General"));
53 BugReport *report = new BugReport(*BT, "tainted",N);
H A DArrayBoundChecker.cpp28 mutable OwningPtr<BuiltinBug> BT; member in class:__anon3376::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:__anon3393::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:__anon3451::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:__anon3452::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 DNSAutoreleasePoolChecker.cpp35 mutable OwningPtr<BugType> BT; member in class:__anon3431::NSAutoreleasePoolChecker
70 if (!BT)
71 BT.reset(new BugType("Use -drain instead of -release",
80 BugReport *Report = new BugReport(*BT, "Use -drain instead of -release when "
H A DUndefResultChecker.cpp30 mutable OwningPtr<BugType> BT; member in class:__anon3473::UndefResultChecker
47 if (!BT)
48 BT.reset(new BuiltinBug("Result of operation is garbage or undefined"));
76 BugReport *report = new BugReport(*BT, OS.str(), N);
H A DUndefinedAssignmentChecker.cpp27 mutable OwningPtr<BugType> BT; member in class:__anon3475::UndefinedAssignmentChecker
48 if (!BT)
49 BT.reset(new BuiltinBug(str));
78 BugReport *R = new BugReport(*BT, str, N);
H A DCastSizeChecker.cpp26 mutable OwningPtr<BuiltinBug> BT; member in class:__anon3392::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:__anon3471::UndefBranchChecker
69 if (!BT)
70 BT.reset(
101 BugReport *R = new BugReport(*BT, BT->getDescription(), N);
H A DCallAndMessageChecker.cpp45 const char *BT_desc, OwningPtr<BugType> &BT);
50 OwningPtr<BugType> &BT);
52 static void EmitBadCall(BugType *BT, CheckerContext &C, const CallExpr *CE);
60 static void LazyInit_BT(const char *desc, OwningPtr<BugType> &BT) { argument
61 if (!BT)
62 BT.reset(new BuiltinBug(desc));
67 void CallAndMessageChecker::EmitBadCall(BugType *BT, CheckerContext &C, argument
73 BugReport *R = new BugReport(*BT, BT->getName(), N);
82 OwningPtr<BugType> &BT) {
79 PreVisitProcessArgs(CheckerContext &C, CallOrObjCMessage callOrMsg, const char *BT_desc, OwningPtr<BugType> &BT) argument
100 PreVisitProcessArg(CheckerContext &C, SVal V, SourceRange argRange, const Expr *argEx, const bool checkUninitFields, const char *BT_desc, OwningPtr<BugType> &BT) argument
249 BugType *BT = 0; local
[all...]
H A DDivZeroChecker.cpp26 mutable OwningPtr<BuiltinBug> BT; member in class:__anon3413::DivZeroChecker
39 if (!BT)
40 BT.reset(new BuiltinBug("Division by zero"));
43 new BugReport(*BT, Msg, N);
H A DUndefCapturedBlockVarChecker.cpp29 mutable OwningPtr<BugType> BT; member in class:__anon3472::UndefCapturedBlockVarChecker
83 if (!BT)
84 BT.reset(new BuiltinBug("uninitialized variable captured by block"));
93 BugReport *R = new BugReport(*BT, os.str(), N);
H A DBasicObjCFoundationChecks.cpp74 mutable OwningPtr<APIMisuse> BT; member in class:__anon3380::NilArgChecker
88 if (!BT)
89 BT.reset(new APIMisuse("nil argument"));
97 BugReport *R = new BugReport(*BT, os.str(), N);
145 mutable OwningPtr<APIMisuse> BT; member in class:__anon3381::CFNumberCreateChecker
335 if (!BT)
336 BT.reset(new APIMisuse("Bad use of CFNumberCreate"));
338 BugReport *report = new BugReport(*BT, os.str(), N);
350 mutable OwningPtr<APIMisuse> BT; member in class:__anon3383::CFRetainReleaseChecker
370 if (!BT) {
434 mutable OwningPtr<BugType> BT; member in class:__anon3384::ClassReleaseChecker
491 mutable OwningPtr<BugType> BT; member in class:__anon3385::VariadicMethodTypeChecker
[all...]
H A DBoolAssignmentChecker.cpp26 mutable llvm::OwningPtr<BuiltinBug> BT; member in class:__anon3386::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 DAttrNonNullChecker.cpp27 mutable OwningPtr<BugType> BT; member in class:__anon3378::AttrNonNullChecker
100 if (!BT)
101 BT.reset(new BugType("Argument with 'nonnull' attribute passed null",
105 new BugReport(*BT, "Null pointer passed as an argument to a "
H A DAdjustedReturnValueChecker.cpp66 const BlockPointerType *BT=BR->getLocationType()->getAs<BlockPointerType>(); local
67 const FunctionType *FT = BT->getPointeeType()->getAs<FunctionType>();
H A DObjCContainersChecker.cpp34 mutable OwningPtr<BugType> BT; member in class:__anon3443::ObjCContainersChecker
36 if (!BT)
37 BT.reset(new BugType("CFArray API",
148 BugReport *R = new BugReport(*BT, "Index is out of bounds", N);
/external/clang/lib/Serialization/
H A DASTCommon.h31 TypeIdx TypeIdxFromBuiltin(const BuiltinType *BT);
46 if (const BuiltinType *BT = dyn_cast<BuiltinType>(T.getTypePtr()))
47 return TypeIdxFromBuiltin(BT).asTypeID(FastQuals);
/external/clang/lib/AST/
H A DType.cpp579 if (const BuiltinType *BT = dyn_cast<BuiltinType>(CanonicalType))
580 return BT->getKind() >= BuiltinType::Bool &&
581 BT->getKind() <= BuiltinType::Int128;
592 if (const BuiltinType *BT = dyn_cast<BuiltinType>(CanonicalType))
593 return BT->getKind() >= BuiltinType::Bool &&
594 BT->getKind() <= BuiltinType::Int128;
609 if (const BuiltinType *BT = dyn_cast<BuiltinType>(CanonicalType))
610 return BT->getKind() == BuiltinType::Char_U ||
611 BT->getKind() == BuiltinType::UChar ||
612 BT
639 const BuiltinType *BT = dyn_cast<BuiltinType>(CanonicalType); local
[all...]

Completed in 182 milliseconds

123