/external/clang/examples/analyzer-plugin/ |
MainCallChecker.cpp | 11 mutable llvm::OwningPtr<BugType> BT; 36 if (!BT) 37 BT.reset(new BugType("call to main", "example analyzer plugin")); 39 BugReport *report = new BugReport(*BT, BT->getName(), N);
|
/external/clang/lib/StaticAnalyzer/Checkers/ |
FixedAddressChecker.cpp | 28 mutable llvm::OwningPtr<BuiltinBug> BT; 55 if (!BT) 56 BT.reset(new BuiltinBug("Use fixed address", 60 BugReport *R = new BugReport(*BT, BT->getDescription(), N);
|
ReturnUndefChecker.cpp | 28 mutable llvm::OwningPtr<BuiltinBug> BT; 49 if (!BT) 50 BT.reset(new BuiltinBug("Garbage return value", 54 new BugReport(*BT, BT->getDescription(), N);
|
UndefinedArraySubscriptChecker.cpp | 27 mutable llvm::OwningPtr<BugType> BT; 39 if (!BT) 40 BT.reset(new BuiltinBug("Array subscript is undefined")); 43 BugReport *R = new BugReport(*BT, BT->getName(), N);
|
ArrayBoundChecker.cpp | 28 mutable llvm::OwningPtr<BuiltinBug> BT; 68 if (!BT) 69 BT.reset(new BuiltinBug("Out-of-bound array access", 78 new BugReport(*BT, BT->getDescription(), N);
|
CastToStructChecker.cpp | 27 mutable llvm::OwningPtr<BuiltinBug> BT; 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);
|
DivZeroChecker.cpp | 26 mutable llvm::OwningPtr<BuiltinBug> BT; 60 if (!BT) 61 BT.reset(new BuiltinBug("Division by zero")); 64 new BugReport(*BT, BT->getDescription(), N);
|
PointerArithChecker.cpp | 27 mutable llvm::OwningPtr<BuiltinBug> BT; 54 if (!BT) 55 BT.reset(new BuiltinBug("Dangerous pointer arithmetic", 59 BugReport *R = new BugReport(*BT, BT->getDescription(), N);
|
PointerSubChecker.cpp | 28 mutable llvm::OwningPtr<BuiltinBug> BT; 63 if (!BT) 64 BT.reset(new BuiltinBug("Pointer subtraction", 67 BugReport *R = new BugReport(*BT, BT->getDescription(), N);
|
ReturnPointerRangeChecker.cpp | 28 mutable llvm::OwningPtr<BuiltinBug> BT; 71 if (!BT) 72 BT.reset(new BuiltinBug("Return of pointer value outside of expected range", 82 new BugReport(*BT, BT->getDescription(), N);
|
UndefResultChecker.cpp | 29 mutable llvm::OwningPtr<BugType> BT; 45 if (!BT) 46 BT.reset(new BuiltinBug("Result of operation is garbage or undefined")); 74 BugReport *report = new BugReport(*BT, OS.str(), N);
|
UndefinedAssignmentChecker.cpp | 27 mutable llvm::OwningPtr<BugType> BT; 48 if (!BT) 49 BT.reset(new BuiltinBug(str)); 78 BugReport *R = new BugReport(*BT, str, N);
|
CastSizeChecker.cpp | 26 mutable llvm::OwningPtr<BuiltinBug> BT; 71 if (!BT) 72 BT.reset(new BuiltinBug("Cast region with wrong size.", 75 BugReport *R = new BugReport(*BT, BT->getDescription(),
|
UndefCapturedBlockVarChecker.cpp | 28 mutable llvm::OwningPtr<BugType> BT; 81 if (!BT) 82 BT.reset(new BuiltinBug("uninitialized variable captured by block")); 91 BugReport *R = new BugReport(*BT, os.str(), N);
|
UndefBranchChecker.cpp | 27 mutable llvm::OwningPtr<BuiltinBug> BT; 74 if (!BT) 75 BT.reset( 106 BugReport *R = new BugReport(*BT, BT->getDescription(), N);
|
CallAndMessageChecker.cpp | 43 const char *BT_desc, llvm::OwningPtr<BugType> &BT); 45 const Expr *argEx, const char *BT_desc, llvm::OwningPtr<BugType> &BT); 47 static void EmitBadCall(BugType *BT, CheckerContext &C, const CallExpr *CE); 55 static void LazyInit_BT(const char *desc, llvm::OwningPtr<BugType> &BT) { 56 if (!BT) 57 BT.reset(new BuiltinBug(desc)); 62 void CallAndMessageChecker::EmitBadCall(BugType *BT, CheckerContext &C, 68 BugReport *R = new BugReport(*BT, BT->getName(), N); 77 llvm::OwningPtr<BugType> &BT) { [all...] |
AttrNonNullChecker.cpp | 27 mutable llvm::OwningPtr<BugType> BT; 99 if (!BT) 100 BT.reset(new BugType("Argument with 'nonnull' attribute passed null", 104 new BugReport(*BT, "Null pointer passed as an argument to a "
|
AdjustedReturnValueChecker.cpp | 65 const BlockPointerType *BT=BR->getLocationType()->getAs<BlockPointerType>(); 66 const FunctionType *FT = BT->getPointeeType()->getAs<FunctionType>();
|
BasicObjCFoundationChecks.cpp | 73 mutable llvm::OwningPtr<APIMisuse> BT; 87 if (!BT) 88 BT.reset(new APIMisuse("nil argument")); 96 BugReport *R = new BugReport(*BT, os.str(), N); 144 mutable llvm::OwningPtr<APIMisuse> BT; 336 if (!BT) 337 BT.reset(new APIMisuse("Bad use of CFNumberCreate")); 339 BugReport *report = new BugReport(*BT, os.str(), N); 351 mutable llvm::OwningPtr<APIMisuse> BT; 374 if (!BT) { [all...] |
UnixAPIChecker.cpp | 50 static inline void LazyInitialize(llvm::OwningPtr<BugType> &BT, 52 if (BT) 54 BT.reset(new BugType(name, "Unix API"));
|
/external/clang/lib/Serialization/ |
ASTCommon.h | 32 TypeIdx TypeIdxFromBuiltin(const BuiltinType *BT); 47 if (const BuiltinType *BT = dyn_cast<BuiltinType>(T.getTypePtr())) 48 return TypeIdxFromBuiltin(BT).asTypeID(FastQuals);
|
/frameworks/base/libs/rs/ |
rsScriptC.cpp | 37 BT = NULL; 43 if (BT) { 44 delete BT; 45 BT = NULL; 218 if (BT) { 219 delete BT; 221 BT = new bcinfo::BitcodeTranslator((const char *)bitcode, bitcodeLen, 223 if (!BT->translate()) { 225 delete BT; 226 BT = NULL [all...] |
/external/clang/lib/AST/ |
Type.cpp | 313 if (const BuiltinType *BT = dyn_cast<BuiltinType>(CanonicalType)) 314 return BT->getKind() == BuiltinType::Void; 559 if (const BuiltinType *BT = dyn_cast<BuiltinType>(CanonicalType)) 560 return BT->getKind() >= BuiltinType::Bool && 561 BT->getKind() <= BuiltinType::Int128; 596 if (const BuiltinType *BT = dyn_cast<BuiltinType>(CanonicalType)) 597 return BT->getKind() >= BuiltinType::Bool && 598 BT->getKind() <= BuiltinType::Int128; 608 if (const BuiltinType *BT = dyn_cast<BuiltinType>(CanonicalType)) 609 return BT->getKind() >= BuiltinType::Bool & [all...] |
/frameworks/compile/libbcc/bcinfo/tools/ |
main.cpp | 171 bcinfo::BitcodeTranslator *BT = 173 if (!BT->translate()) { 179 new bcinfo::MetadataExtractor(BT->getTranslatedBitcode(), 180 BT->getTranslatedBitcodeSize()); 189 delete BT;
|
/external/clang/include/clang/StaticAnalyzer/Core/BugReporter/ |
BugReporter.h | 69 BugType& BT; 84 BugReport(BugType& bt, StringRef desc, const ExplodedNode *errornode) 85 : BT(bt), Description(desc), ErrorNode(errornode), 88 BugReport(BugType& bt, StringRef shortDesc, StringRef desc, 90 : BT(bt), ShortDescription(shortDesc), Description(desc), 93 BugReport(BugType& bt, StringRef desc, PathDiagnosticLocation l) 94 : BT(bt), Description(desc), Location(l), ErrorNode(0) [all...] |