Home
last modified time | relevance | path

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

12345678910>>...12

/external/clang/test/SemaObjC/
Dns_returns_retained_block_return.m8 typedef void (^BT) (); typedef
10 BT foo() __attribute__((ns_returns_retained));
13 BT foo() __attribute__((ns_returns_retained));
14 - (BT) Meth __attribute__((ns_returns_retained));
15 + (BT) ClsMeth __attribute__((ns_returns_retained));
19 BT foo() __attribute__((ns_returns_retained)) {return ^{}; }
20 - (BT) Meth {return ^{}; }
21 + (BT) ClsMeth {return ^{}; }
/external/clang/lib/StaticAnalyzer/Checkers/
DCallAndMessageChecker.cpp69 std::unique_ptr<BugType> &BT,
72 static void emitBadCall(BugType *BT, CheckerContext &C, const Expr *BadE);
80 void LazyInit_BT(const char *desc, std::unique_ptr<BugType> &BT) const { in LazyInit_BT()
81 if (!BT) in LazyInit_BT()
82 BT.reset(new BuiltinBug(this, desc)); in LazyInit_BT()
86 const Expr *ArgEx, std::unique_ptr<BugType> &BT,
91 void CallAndMessageChecker::emitBadCall(BugType *BT, CheckerContext &C, in emitBadCall() argument
97 BugReport *R = new BugReport(*BT, BT->getName(), N); in emitBadCall()
136 std::unique_ptr<BugType> &BT, in uninitRefOrPointer() argument
166 LazyInit_BT(BD, BT); in uninitRefOrPointer()
[all …]
DExprInspectionChecker.cpp21 mutable std::unique_ptr<BugType> BT; member in __anonde79cee00111::ExprInspectionChecker
97 if (!BT) in analyzerEval()
98 BT.reset(new BugType(this, "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(this, "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(this, "Checking analyzer assumptions", "debug")); in analyzerCheckInlined()
131 BugReport *R = new BugReport(*BT, getArgumentValueString(CE, C), N); in analyzerCheckInlined()
DUndefinedArraySubscriptChecker.cpp28 mutable std::unique_ptr<BugType> BT; member in __anone9fc3bf50111::UndefinedArraySubscriptChecker
52 if (!BT) in checkPreStmt()
53 BT.reset(new BuiltinBug(this, "Array subscript is undefined")); in checkPreStmt()
56 BugReport *R = new BugReport(*BT, BT->getName(), N); in checkPreStmt()
DFixedAddressChecker.cpp28 mutable std::unique_ptr<BuiltinBug> BT; member in __anon54af343b0111::FixedAddressChecker
54 if (!BT) in checkPreStmt()
55 BT.reset( in checkPreStmt()
60 BugReport *R = new BugReport(*BT, BT->getDescription(), N); in checkPreStmt()
DPointerArithChecker.cpp27 mutable std::unique_ptr<BuiltinBug> BT; member in __anon4bc3673e0111::PointerArithChecker
55 if (!BT) in checkPreStmt()
56 BT.reset( in checkPreStmt()
61 BugReport *R = new BugReport(*BT, BT->getDescription(), N); in checkPreStmt()
DCastToStructChecker.cpp27 mutable std::unique_ptr<BuiltinBug> BT; member in __anon73eb4f580111::CastToStructChecker
60 if (!BT) in checkPreStmt()
61 BT.reset( in checkPreStmt()
66 BugReport *R = new BugReport(*BT,BT->getDescription(), N); in checkPreStmt()
DPointerSubChecker.cpp28 mutable std::unique_ptr<BuiltinBug> BT; member in __anon711676900111::PointerSubChecker
64 if (!BT) in checkPreStmt()
65 BT.reset( in checkPreStmt()
69 BugReport *R = new BugReport(*BT, BT->getDescription(), N); in checkPreStmt()
DArrayBoundChecker.cpp28 mutable std::unique_ptr<BuiltinBug> BT; member in __anon9453435c0111::ArrayBoundChecker
69 if (!BT) in checkLocation()
70 BT.reset(new BuiltinBug( in checkLocation()
80 new BugReport(*BT, BT->getDescription(), N); in checkLocation()
DReturnPointerRangeChecker.cpp28 mutable std::unique_ptr<BuiltinBug> BT; member in __anon97b5e4530111::ReturnPointerRangeChecker
72 if (!BT) in checkPreStmt()
73 BT.reset(new BuiltinBug( in checkPreStmt()
84 new BugReport(*BT, BT->getDescription(), N); in checkPreStmt()
DTaintTesterChecker.cpp25 mutable std::unique_ptr<BugType> BT; member in __anonaa0de4fc0111::TaintTesterChecker
40 if (!BT) in initBugType()
41 BT.reset(new BugType(this, "Tainted data", "General")); in initBugType()
53 BugReport *report = new BugReport(*BT, "tainted",N); in checkPostStmt()
DUndefBranchChecker.cpp27 mutable std::unique_ptr<BuiltinBug> BT; member in __anone555c8650111::UndefBranchChecker
69 if (!BT) in checkBranchCondition()
70 BT.reset(new BuiltinBug( in checkBranchCondition()
101 BugReport *R = new BugReport(*BT, BT->getDescription(), N); in checkBranchCondition()
DNSAutoreleasePoolChecker.cpp35 mutable std::unique_ptr<BugType> BT; member in __anon919986fa0111::NSAutoreleasePoolChecker
61 if (!BT) in checkPreObjCMessage()
62 BT.reset(new BugType(this, "Use -drain instead of -release", in checkPreObjCMessage()
71 BugReport *Report = new BugReport(*BT, "Use -drain instead of -release when " in checkPreObjCMessage()
DBoolAssignmentChecker.cpp26 mutable std::unique_ptr<BuiltinBug> BT; member in __anon2bda130a0111::BoolAssignmentChecker
36 if (!BT) in emitReport()
37 BT.reset(new BuiltinBug(this, "Assignment of a non-Boolean value")); in emitReport()
38 C.emitReport(new BugReport(*BT, BT->getDescription(), N)); in emitReport()
DCastSizeChecker.cpp26 mutable std::unique_ptr<BuiltinBug> BT; member in __anon1c97e46b0111::CastSizeChecker
135 if (!BT) in checkPreStmt()
136 BT.reset(new BuiltinBug(this, "Cast region with wrong size.", in checkPreStmt()
139 BugReport *R = new BugReport(*BT, BT->getDescription(), errorNode); in checkPreStmt()
DUndefinedAssignmentChecker.cpp27 mutable std::unique_ptr<BugType> BT; member in __anon1b05ebb00111::UndefinedAssignmentChecker
56 if (!BT) in checkBind()
57 BT.reset(new BuiltinBug(this, str)); in checkBind()
86 BugReport *R = new BugReport(*BT, str, N); in checkBind()
DUndefResultChecker.cpp31 mutable std::unique_ptr<BugType> BT; member in __anona3c7fd160111::UndefResultChecker
57 if (!BT) in checkPostStmt()
58 BT.reset( in checkPostStmt()
87 BugReport *report = new BugReport(*BT, OS.str(), N); in checkPostStmt()
DDivZeroChecker.cpp26 mutable std::unique_ptr<BuiltinBug> BT; member in __anonf35f63080111::DivZeroChecker
39 if (!BT) in reportBug()
40 BT.reset(new BuiltinBug(this, "Division by zero")); in reportBug()
42 BugReport *R = new BugReport(*BT, Msg, N); in reportBug()
DUndefCapturedBlockVarChecker.cpp30 mutable std::unique_ptr<BugType> BT; member in __anonf97e24230111::UndefCapturedBlockVarChecker
81 if (!BT) in checkPostStmt()
82 BT.reset( in checkPostStmt()
92 BugReport *R = new BugReport(*BT, os.str(), N); in checkPostStmt()
DBasicObjCFoundationChecks.cpp99 mutable std::unique_ptr<APIMisuse> BT; member in __anon3d8ea8180211::NilArgChecker
207 if (!BT) in generateBugReport()
208 BT.reset(new APIMisuse(this, "nil argument")); in generateBugReport()
210 BugReport *R = new BugReport(*BT, Msg, N); in generateBugReport()
346 mutable std::unique_ptr<APIMisuse> BT; member in __anon3d8ea8180311::CFNumberCreateChecker
516 if (!BT) in checkPreStmt()
517 BT.reset(new APIMisuse(this, "Bad use of CFNumberCreate")); in checkPreStmt()
519 BugReport *report = new BugReport(*BT, os.str(), N); in checkPreStmt()
531 mutable std::unique_ptr<APIMisuse> BT; member in __anon3d8ea8180411::CFRetainReleaseChecker
553 if (!BT) { in checkPreStmt()
[all …]
DObjCContainersChecker.cpp33 mutable std::unique_ptr<BugType> BT; member in __anon5a6f13b90111::ObjCContainersChecker
35 if (!BT) in initBugType()
36 BT.reset(new BugType(this, "CFArray API", in initBugType()
140 BugReport *R = new BugReport(*BT, "Index is out of bounds", N); in checkPreStmt()
/external/llvm/include/llvm/Analysis/
DBlockFrequencyInfoImpl.h52 template <class BT> struct BlockEdgesAdder;
759 template <class BT> class BlockFrequencyInfoImpl : BlockFrequencyInfoImplBase {
760 typedef typename bfi_detail::TypeMap<BT>::BlockT BlockT;
761 typedef typename bfi_detail::TypeMap<BT>::FunctionT FunctionT;
762 typedef typename bfi_detail::TypeMap<BT>::BranchProbabilityInfoT
764 typedef typename bfi_detail::TypeMap<BT>::LoopT LoopT;
765 typedef typename bfi_detail::TypeMap<BT>::LoopInfoT LoopInfoT;
768 friend struct bfi_detail::BlockEdgesAdder<BT>;
913 template <class BT>
914 void BlockFrequencyInfoImpl<BT>::doFunction(const FunctionT *F,
[all …]
/external/clang/test/SemaCXX/
Dns_returns_retained_block_return.cpp6 typedef void (^BT) (); typedef
9 BT br() __attribute__((ns_returns_retained)) { in br()
12 BT br1() __attribute__((ns_returns_retained));
15 BT S::br1() { in br1()
/external/clang/examples/analyzer-plugin/
DMainCallChecker.cpp11 mutable std::unique_ptr<BugType> BT; member in __anon1fdaa7cb0111::MainCallChecker
37 if (!BT) in checkPreStmt()
38 BT.reset(new BugType(this, "call to main", "example analyzer plugin")); in checkPreStmt()
40 BugReport *report = new BugReport(*BT, BT->getName(), N); in checkPreStmt()
/external/clang/lib/AST/
DType.cpp633 if (const BuiltinType *BT = dyn_cast<BuiltinType>(CanonicalType)) in isIntegralType() local
634 return BT->getKind() >= BuiltinType::Bool && in isIntegralType()
635 BT->getKind() <= BuiltinType::Int128; in isIntegralType()
647 if (const BuiltinType *BT = dyn_cast<BuiltinType>(CanonicalType)) in isIntegralOrUnscopedEnumerationType() local
648 return BT->getKind() >= BuiltinType::Bool && in isIntegralOrUnscopedEnumerationType()
649 BT->getKind() <= BuiltinType::Int128; in isIntegralOrUnscopedEnumerationType()
664 if (const BuiltinType *BT = dyn_cast<BuiltinType>(CanonicalType)) in isCharType() local
665 return BT->getKind() == BuiltinType::Char_U || in isCharType()
666 BT->getKind() == BuiltinType::UChar || in isCharType()
667 BT->getKind() == BuiltinType::Char_S || in isCharType()
[all …]

12345678910>>...12