Searched refs:getAs (Results 1 - 25 of 192) sorted by relevance

12345678

/external/clang/test/CodeCompletion/
H A Dfunction-templates.cpp11 template<typename T> T &getAs();
16 Foo().getAs<int>();
21 // CHECK-CC2: getAs<<#typename T#>>()
/external/clang/lib/StaticAnalyzer/Core/
H A DSVals.cpp33 if (Optional<nonloc::SymbolVal> SV = getAs<nonloc::SymbolVal>()) {
39 if (Optional<loc::MemRegionVal> RV = getAs<loc::MemRegionVal>()) {
52 if (Optional<loc::MemRegionVal> X = getAs<loc::MemRegionVal>()) {
54 if (const FunctionTextRegion *CTR = R->getAs<FunctionTextRegion>())
71 if (Optional<nonloc::LocAsInteger> X = getAs<nonloc::LocAsInteger>())
74 if (Optional<loc::MemRegionVal> X = getAs<loc::MemRegionVal>()) {
86 Optional<loc::MemRegionVal> X = getAs<loc::MemRegionVal>();
113 if (Optional<nonloc::SymbolVal> X = getAs<nonloc::SymbolVal>())
122 if (Optional<nonloc::SymbolVal> X = getAs<nonloc::SymbolVal>())
136 if (Optional<loc::MemRegionVal> X = getAs<lo
[all...]
H A DSimpleSValBuilder.cpp63 assert(Val.getAs<Loc>() || Val.getAs<NonLoc>());
64 return Val.getAs<Loc>() ? evalCastFromLoc(Val.castAs<Loc>(), CastTy)
72 if (Optional<nonloc::LocAsInteger> LI = val.getAs<nonloc::LocAsInteger>()) {
101 if (!val.getAs<nonloc::ConcreteInt>())
169 if (!val.getAs<loc::ConcreteInt>())
658 if (Optional<loc::ConcreteInt> rInt = rhs.getAs<loc::ConcreteInt>()) {
661 if (Optional<NonLoc> Result = ResultVal.getAs<NonLoc>())
664 assert(!ResultVal.getAs<Loc>() && "Loc-Loc ops should not produce Locs");
672 assert(rhs.getAs<lo
[all...]
H A DBugReporterVisitors.cpp191 while (Node && Node->getLocation().getAs<PostStmt>())
211 if (Optional<Loc> LValue = RetVal.getAs<Loc>())
221 if (Optional<Loc> RetLoc = RetVal.getAs<Loc>())
266 if ((LValue = V.getAs<Loc>())) {
268 if (RValue.getAs<DefinedSVal>())
274 if (V.getAs<nonloc::LazyCompoundVal>() ||
275 V.getAs<nonloc::CompoundVal>())
297 if (V.getAs<Loc>()) {
362 Optional<Loc> ArgV = Call->getArgSVal(I).getAs<Loc>();
536 V.getAs<lo
[all...]
H A DExplodedGraph.cpp113 if (progPoint.getAs<PreStmtPurgeDeadSymbols>())
117 if (!progPoint.getAs<PostStmt>() || progPoint.getAs<PostStore>())
153 if (Optional<StmtPoint> SP = SuccLoc.getAs<StmtPoint>())
158 if (SuccLoc.getAs<CallEnter>() || SuccLoc.getAs<PreImplicitCall>())
/external/clang/lib/StaticAnalyzer/Checkers/
H A DNonNullParamChecker.cpp83 Optional<DefinedSVal> DV = V.getAs<DefinedSVal>();
88 assert(!haveRefTypeParam || DV->getAs<Loc>());
90 if (haveAttrNonNull && !DV->getAs<Loc>()) {
102 DV->getAs<nonloc::CompoundVal>()) {
106 DV = V.getAs<DefinedSVal>();
110 if (!V.getAs<Loc>())
H A DBoolAssignmentChecker.cpp46 if (const TypedefType *TT = Ty->getAs<TypedefType>())
72 Optional<DefinedSVal> DV = val.getAs<DefinedSVal>();
90 greaterThanOrEqualToZeroVal.getAs<DefinedSVal>();
126 lessThanEqToOneVal.getAs<DefinedSVal>();
H A DArrayBoundCheckerV2.cpp113 if (Optional<NonLoc> NV = extentBegin.getAs<NonLoc>()) {
118 Optional<NonLoc> lowerBoundToCheck = lowerBound.getAs<NonLoc>();
142 if (!extentVal.getAs<NonLoc>())
150 Optional<NonLoc> upperboundToCheck = upperbound.getAs<NonLoc>();
223 if (const RecordType *RT = Ty->getAs<RecordType>()) {
237 return val.getAs<UndefinedVal>() ? svalBuilder.makeArrayIndex(0) : val;
286 if (!index.getAs<NonLoc>())
H A DNSErrorChecker.cpp191 if (Optional<loc::MemRegionVal> X = val.getAs<loc::MemRegionVal>()) {
193 if (const VarRegion *VR = R->getAs<VarRegion>())
208 if (loc.isUndef() || !loc.getAs<Loc>())
284 const PointerType* PPT = T->getAs<PointerType>();
289 PPT->getPointeeType()->getAs<ObjCObjectPointerType>();
304 const PointerType* PPT = T->getAs<PointerType>();
307 const TypedefType* TT = PPT->getPointeeType()->getAs<TypedefType>();
H A DLLVMConventionsChecker.cpp31 const RecordType *RT = T->getAs<RecordType>();
52 if (const ElaboratedType *QT = T->getAs<ElaboratedType>())
55 const TypedefType *TT = T->getAs<TypedefType>();
84 const TemplateSpecializationType *TS = T->getAs<TemplateSpecializationType>();
98 const TemplateSpecializationType *TS = T->getAs<TemplateSpecializationType>();
206 if (const RecordType *baseT = T->getAs<RecordType>()) {
252 if (const RecordType *RT = T->getAs<RecordType>()) {
H A DAnalyzerStatsChecker.cpp63 if (Optional<BlockEntrance> BE = P.getAs<BlockEntrance>()) {
126 if (Optional<CFGStmt> CS = CE.getAs<CFGStmt>()) {
H A DDynamicTypePropagation.cpp214 = MsgE->getClassReceiver()->getAs<ObjCObjectType>())
220 = MsgE->getSuperType()->getAs<ObjCObjectType>())
254 CastE->getType()->getAs<ObjCObjectPointerType>();
262 OldDTy->getAs<ObjCObjectPointerType>();
H A DObjCAtSyncChecker.cpp45 if (V.getAs<UndefinedVal>()) {
H A DCheckSecuritySyntaxOnly.cpp310 const FunctionProtoType *FPT = FD->getType()->getAs<FunctionProtoType>();
319 const PointerType *PT = FPT->getParamType(0)->getAs<PointerType>();
346 const FunctionProtoType *FPT = FD->getType()->getAs<FunctionProtoType>();
359 const PointerType *PT = FPT->getParamType(1)->getAs<PointerType>();
390 const FunctionProtoType *FPT = FD->getType()->getAs<FunctionProtoType>();
399 const PointerType *PT = FPT->getParamType(0)->getAs<PointerType>();
559 const FunctionProtoType *FPT = FD->getType()->getAs<FunctionProtoType>();
571 const PointerType *PT = FPT->getParamType(i)->getAs<PointerType>();
593 const FunctionProtoType *FTP = FD->getType()->getAs<FunctionProtoType>();
600 const PointerType *PT = FTP->getParamType(0)->getAs<PointerTyp
[all...]
/external/clang/lib/AST/
H A DMangleNumberingContext.cpp24 = CallOperator->getType()->getAs<FunctionProtoType>();
H A DComment.cpp245 if (QualifiedTypeLoc QualifiedTL = TL.getAs<QualifiedTypeLoc>()) {
250 if (PointerTypeLoc PointerTL = TL.getAs<PointerTypeLoc>()) {
255 if (ReferenceTypeLoc ReferenceTL = TL.getAs<ReferenceTypeLoc>()) {
260 if (AdjustedTypeLoc ATL = TL.getAs<AdjustedTypeLoc>()) {
265 TL.getAs<BlockPointerTypeLoc>()) {
270 TL.getAs<MemberPointerTypeLoc>()) {
274 if (ElaboratedTypeLoc ETL = TL.getAs<ElaboratedTypeLoc>()) {
279 if (FunctionTypeLoc FTL = TL.getAs<FunctionTypeLoc>()) {
288 TL.getAs<TemplateSpecializationTypeLoc>()) {
300 if (FunctionTypeLoc FTL = TL.getAs<FunctionTypeLo
[all...]
H A DVTTBuilder.cpp65 cast<CXXRecordDecl>(I.getType()->getAs<RecordType>()->getDecl());
91 cast<CXXRecordDecl>(I.getType()->getAs<RecordType>()->getDecl());
155 cast<CXXRecordDecl>(I.getType()->getAs<RecordType>()->getDecl());
H A DType.cpp52 ND = ty->getAs<RecordType>()->getDecl();
54 ND = ty->getAs<EnumType>()->getDecl();
56 ND = ty->getAs<TypedefType>()->getDecl();
307 while (const ParenType *PT = T->getAs<ParenType>())
333 template <> const TypedefType *Type::getAs() const { function in class:Type
337 template <> const TemplateSpecializationType *Type::getAs() const { function in class:Type
341 template <> const AttributedType *Type::getAs() const { function in class:Type
366 if (const RecordType *RT = getAs<RecordType>())
371 if (const RecordType *RT = getAs<RecordType>())
376 if (const RecordType *RT = getAs<RecordTyp
[all...]
/external/clang/test/SemaTemplate/
H A Ddependent-template-recover.cpp11 T::getAs<U>(); // expected-error{{use 'template' keyword to treat 'getAs' as a dependent template name}}
12 t->T::getAs<U>(); // expected-error{{use 'template' keyword to treat 'getAs' as a dependent template name}}
/external/clang/lib/Sema/
H A DSemaExceptionSpec.cpp29 if (const PointerType *PtrTy = T->getAs<PointerType>())
31 else if (const ReferenceType *RefTy = T->getAs<ReferenceType>())
33 else if (const MemberPointerType *MPTy = T->getAs<MemberPointerType>())
35 return T->getAs<FunctionProtoType>();
58 if (const PointerType *PT = T->getAs<PointerType>()) {
66 } else if (const ReferenceType *RT = T->getAs<ReferenceType>()) {
87 PointeeT->getAs<RecordType>()->isBeingDefined()) &&
99 if (const PointerType *PT = T->getAs<PointerType>())
101 else if (const MemberPointerType *PT = T->getAs<MemberPointerType>())
106 const FunctionProtoType *FnT = T->getAs<FunctionProtoTyp
[all...]
H A DSemaCast.cpp405 const PointerType *T1PtrType = T1->getAs<PointerType>(),
406 *T2PtrType = T2->getAs<PointerType>();
413 T1->getAs<ObjCObjectPointerType>(),
415 T2->getAs<ObjCObjectPointerType>();
436 const MemberPointerType *T1MPType = T1->getAs<MemberPointerType>(),
437 *T2MPType = T2->getAs<MemberPointerType>();
444 const BlockPointerType *T1BPType = T1->getAs<BlockPointerType>(),
445 *T2BPType = T2->getAs<BlockPointerType>();
551 const PointerType *DestPointer = DestType->getAs<PointerType>();
555 } else if ((DestReference = DestType->getAs<ReferenceTyp
[all...]
/external/clang/lib/Analysis/
H A DCocoaConventions.cpp42 const PointerType* PT = RetTy->getAs<PointerType>();
63 const ObjCObjectPointerType *PT = Ty->getAs<ObjCObjectPointerType>();
H A DFormatString.cpp260 const PointerType *PT = argTy->getAs<PointerType>();
279 if (const EnumType *ETy = argTy->getAs<EnumType>())
282 if (const BuiltinType *BT = argTy->getAs<BuiltinType>())
296 if (const EnumType *ETy = argTy->getAs<EnumType>())
303 if (const BuiltinType *BT = argTy->getAs<BuiltinType>())
333 const PointerType *PT = argTy->getAs<PointerType>();
337 if (const BuiltinType *BT = pointeeTy->getAs<BuiltinType>())
353 const PointerType *PT = argTy->getAs<PointerType>();
384 if (argTy->getAs<ObjCObjectPointerType>() ||
385 argTy->getAs<BlockPointerTyp
[all...]
/external/clang/test/Index/
H A Dindex-templates.cpp50 template<typename T> T getAs();
55 Z4().getAs<Unsigned>();
155 // CHECK-LOAD: index-templates.cpp:50:26: FunctionTemplate=getAs:50:26 Extent=[50:3 - 50:33]
164 // CHECK-LOAD: index-templates.cpp:55:8: MemberRefExpr=getAs:50:26 SingleRefName=[55:8 - 55:13] RefName=[55:8 - 55:13] Extent=[55:3 - 55:23]
/external/clang/lib/Index/
H A DUSRGeneration.cpp531 if (const PackExpansionType *Expansion = T->getAs<PackExpansionType>()) {
536 if (const BuiltinType *BT = T->getAs<BuiltinType>()) {
624 if (const PointerType *PT = T->getAs<PointerType>()) {
629 if (const ReferenceType *RT = T->getAs<ReferenceType>()) {
634 if (const FunctionProtoType *FT = T->getAs<FunctionProtoType>()) {
643 if (const BlockPointerType *BT = T->getAs<BlockPointerType>()) {
648 if (const ComplexType *CT = T->getAs<ComplexType>()) {
653 if (const TagType *TT = T->getAs<TagType>()) {
658 if (const TemplateTypeParmType *TTP = T->getAs<TemplateTypeParmType>()) {
663 = T->getAs<TemplateSpecializationTyp
[all...]

Completed in 322 milliseconds

12345678