Searched refs:getAs (Results 76 - 100 of 251) sorted by relevance

1234567891011

/freebsd-13-stable/contrib/llvm-project/clang/lib/Analysis/
H A DBodyFarm.cpp37 const BlockPointerType *BPT = Ty->getAs<BlockPointerType>();
44 BPT->getPointeeType()->getAs<FunctionProtoType>();
386 ->getAs<FunctionProtoType>();
389 CallbackType->getPointeeType()->getAs<FunctionProtoType>();
391 CallbackFunctionType = CallbackType->getAs<FunctionProtoType>();
485 const PointerType *PredicatePtrTy = PredicateQPtrTy->getAs<PointerType>();
618 const PointerType *PT = TheValueTy->getAs<PointerType>();
/freebsd-13-stable/contrib/llvm-project/clang/lib/Sema/
H A DSemaOverload.cpp73 if (auto *FPT = DRE->getType()->getAs<FunctionProtoType>()) {
258 if (const PointerType* ToPtrType = ToType->getAs<PointerType>())
322 if (auto *ET = ToType->getAs<EnumType>())
1449 if (ToType->getAs<RecordType>() && FromType->getAs<RecordType>() &&
1607 FromFn = QT->getAs<FunctionType>();
1773 if (const AtomicType *Atomic = FromType->getAs<AtomicType>())
2061 const BuiltinType *To = ToType->getAs<BuiltinType>();
2103 if (const EnumType *FromEnumType = FromType->getAs<EnumType>()) {
2222 if (const BuiltinType *FromBuiltin = FromType->getAs<BuiltinTyp
[all...]
H A DSemaCXXScopeSpec.cpp55 if (const TagType *Tag = T->getAs<TagType>())
95 = NNSType->getAs<TemplateSpecializationType>()) {
131 } else if (const RecordType *RecordT = NNSType->getAs<RecordType>()) {
152 const TagType *Tag = NNS->getAsType()->getAs<TagType>();
858 if (!T->isDependentType() && !T->getAs<TagType>()) {
962 if (!T->isDependentType() && !T->getAs<TagType>()) {
H A DSemaStmtAsm.cpp815 RT = VD->getType()->getAs<RecordType>();
820 if (const auto *PT = QT->getAs<PointerType>())
822 RT = QT->getAs<RecordType>();
824 RT = TD->getTypeForDecl()->getAs<RecordType>();
826 RT = TD->getType()->getAs<RecordType>();
873 const RecordType *RT = T->getAs<RecordType>();
H A DSemaExprCXX.cpp529 if (T->getAs<RecordType>() &&
557 if (const RecordType *RecordT = T->getAs<RecordType>()) {
938 if (const PointerType* Ptr = Ty->getAs<PointerType>()) {
1678 allocType->getBaseElementTypeUnsafe()->getAs<RecordType>();
1997 (*ArraySize)->getType()->getAs<RecordType>())
3388 if (const PointerType *ConvPtrType = ConvType->getAs<PointerType>())
3469 if (const RecordType *RT = PointeeElem->getAs<RecordType>())
3839 if (const PointerType *ToPtrType = ToType->getAs<PointerType>())
3841 = ToPtrType->getPointeeType()->getAs<BuiltinType>()) {
3898 return S.MaybeBindToTemporary(Result.getAs<Exp
[all...]
H A DSemaExpr.cpp408 if (const PointerType *ptr = type->getAs<PointerType>()) {
409 fn = ptr->getPointeeType()->getAs<FunctionType>();
412 } else if (const BlockPointerType *ptr = type->getAs<BlockPointerType>()) {
565 if (const ObjCObjectType *OTy = BaseType->getAs<ObjCObjectType>())
705 if (const AtomicType *Atomic = T->getAs<AtomicType>()) {
810 const BuiltinType *BTy = Ty->getAs<BuiltinType>();
1174 auto *LHSComplex = LHSType->getAs<ComplexType>();
1175 auto *RHSComplex = RHSType->getAs<ComplexType>();
1315 const auto *BTy = Ty->getAs<BuiltinType>();
1481 if (const AtomicType *AtomicLHS = LHSType->getAs<AtomicTyp
[all...]
H A DSemaType.cpp270 if (auto *AttrTy = TypeWithAuto->getAs<AttributedType>()) {
840 const auto *objcObjectType = type->getAs<ObjCObjectType>();
891 if (auto attr = qual.getAs<AttributedTypeLoc>()) {
914 if (typeArg->getAs<PackExpansionType>())
940 if (const auto *typeArgObjC = typeArg->getAs<ObjCObjectPointerType>()) {
951 const auto *boundObjC = bound->getAs<ObjCObjectPointerType>();
1192 if (auto ObjCObjectPointerTL = ResultTL.getAs<ObjCObjectPointerTypeLoc>()) {
1198 if (auto OTPTL = ResultTL.getAs<ObjCTypeParamTypeLoc>()) {
1600 if (const TagType *TT = Result->getAs<TagType>())
1848 else if (const MemberPointerType *PTy = T->getAs<MemberPointerTyp
[all...]
H A DSemaLambda.cpp627 if (const EnumType *ET = E->getType()->getAs<EnumType>()) {
848 Init = Result.getAs<Expr>();
860 if (auto PETL = TSI->getTypeLoc().getAs<PackExpansionTypeLoc>())
1097 !C->InitCaptureType.get()->getAs<PackExpansionType>())
1341 ConvTSI->getTypeLoc().getAs<FunctionProtoTypeLoc>();
1344 ConvTL.getReturnLoc().getAs<PointerTypeLoc>();
1348 ConvNamePtrToFunctionTSI->getTypeLoc().getAs<PointerTypeLoc>();
1353 PtrToFunctionTL.getPointeeLoc().getAs<FunctionProtoTypeLoc>();
1355 ConvNamePtrToFunctionTL.getPointeeLoc().getAs<FunctionProtoTypeLoc>();
/freebsd-13-stable/contrib/llvm-project/clang/lib/CodeGen/
H A DCodeGenTBAA.cpp88 while (auto *TT = QTy->getAs<TypedefType>()) {
100 if (const RecordType *TTy = QTy->getAs<RecordType>()) {
283 if (const RecordType *TTy = QTy->getAs<RecordType>()) {
/freebsd-13-stable/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DCastValueChecker.cpp48 // 5) getAs: Has no parameter, the return value is null or non-null.
70 {{{"clang", "getAs"}, 0},
394 // Evaluating castAs, getAs.
486 DV = Call.getArgSVal(0).getAs<DefinedOrUnknownSVal>();
495 DV = Call.getArgSVal(0).getAs<DefinedOrUnknownSVal>();
503 DV = InstanceCall->getCXXThisVal().getAs<DefinedOrUnknownSVal>();
H A DStreamChecker.cpp485 getStreamArg(Desc, Call).getAs<DefinedSVal>();
594 Optional<NonLoc> SizeVal = Call.getArgSVal(1).getAs<NonLoc>();
597 Optional<NonLoc> NMembVal = Call.getArgSVal(2).getAs<NonLoc>();
644 .getAs<DefinedOrUnknownSVal>();
812 auto Stream = StreamVal.getAs<DefinedSVal>();
926 Optional<nonloc::ConcreteInt> CI = WhenceVal.getAs<nonloc::ConcreteInt>();
/freebsd-13-stable/contrib/llvm-project/clang/lib/Tooling/Refactoring/Rename/
H A DUSRLocFinder.cpp113 if (auto ElaboratedTypeLoc = TL.getAs<clang::ElaboratedTypeLoc>()) {
147 if (auto ElaboratedTypeLoc = TL.getAs<clang::ElaboratedTypeLoc>())
452 if (const auto* TT = Loc.getType()->getAs<clang::TypedefType>())
/freebsd-13-stable/contrib/llvm-project/clang/lib/AST/
H A DDeclarationName.cpp125 if (const RecordType *ClassRec = ClassType->getAs<RecordType>()) {
130 if (auto *InjTy = ClassType->getAs<InjectedClassNameType>()) {
194 if (const RecordType *Rec = Type->getAs<RecordType>()) {
H A DNSAPI.cpp379 const BuiltinType *BT = T->getAs<BuiltinType>();
383 const TypedefType *TDT = T->getAs<TypedefType>();
513 while (const TypedefType *TDT = T->getAs<TypedefType>()) {
570 while (const TypedefType *TDT = T->getAs<TypedefType>()) {
H A DASTDiagnostic.cpp170 if (const TagType *UTT = Underlying->getAs<TagType>())
182 if (const PointerType *Ty = QT->getAs<PointerType>()) {
185 } else if (const auto *Ty = QT->getAs<ObjCObjectPointerType>()) {
188 } else if (const LValueReferenceType *Ty = QT->getAs<LValueReferenceType>()) {
191 } else if (const RValueReferenceType *Ty = QT->getAs<RValueReferenceType>()) {
194 } else if (const auto *Ty = QT->getAs<ObjCObjectType>()) {
303 if (const auto *VTy = Ty->getAs<VectorType>()) {
1087 Ty->getAs<TemplateSpecializationType>())
1090 const RecordType *RT = Ty->getAs<RecordType>();
1106 return Ty->getAs<TemplateSpecializationTyp
[all...]
H A DCommentSema.cpp851 if (const auto *FT = Type->getAs<FunctionProtoType>())
895 if (QT->getAs<TypedefType>())
897 if (const auto *P = QT->getAs<PointerType>())
898 if (P->getPointeeType()->getAs<TypedefType>())
900 if (const auto *P = QT->getAs<BlockPointerType>())
901 if (P->getPointeeType()->getAs<TypedefType>())
H A DASTContext.cpp592 if (const auto *TT = QT->getAs<TagType>())
1705 if (const auto *RT = T->getAs<ReferenceType>()) {
1786 if (const auto *RT = T->getAs<RecordType>()) {
1839 if (const auto *TT = T->getAs<TypedefType>())
1850 if (const auto *TT = T->getAs<TypedefType>())
1855 if (const auto *TT = T->getAs<TagType>())
2329 if (const auto *RT = T->getAs<RecordType>()) {
2333 } else if (const auto *ObjCI = T->getAs<ObjCInterfaceType>()) {
2411 if (const auto *CT = T->getAs<ComplexType>())
2413 if (const auto *ET = T->getAs<EnumTyp
[all...]
H A DDeclPrinter.cpp149 if (const PointerType *PTy = BaseType->getAs<PointerType>())
151 else if (const BlockPointerType *BPy = BaseType->getAs<BlockPointerType>())
155 else if (const FunctionType* FTy = BaseType->getAs<FunctionType>())
157 else if (const VectorType *VTy = BaseType->getAs<VectorType>())
159 else if (const ReferenceType *RTy = BaseType->getAs<ReferenceType>())
161 else if (const AutoType *ATy = BaseType->getAs<AutoType>())
163 else if (const ParenType *PTy = BaseType->getAs<ParenType>())
276 if (auto *PET = T->getAs<PackExpansionType>()) {
656 if (const FunctionType *AFT = Ty->getAs<FunctionType>()) {
/freebsd-13-stable/contrib/llvm-project/clang/lib/AST/Interp/
H A DProgram.cpp300 if (auto *RT = Ty->getAs<RecordType>()) {
352 if (auto *AT = Ty->getAs<AtomicType>()) {
358 if (auto *CT = Ty->getAs<ComplexType>()) {
H A DEvalEmitter.cpp111 if (auto *AT = Ty->getAs<AtomicType>())
114 if (auto *RT = Ty->getAs<RecordType>()) {
/freebsd-13-stable/contrib/llvm-project/clang/include/clang/Analysis/
H A DAnyCall.h71 K = (CE->getCallee()->getType()->getAs<BlockPointerType>()) ? Block
/freebsd-13-stable/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/
H A DCheckerHelpers.cpp103 const auto *AttrType = Type->getAs<AttributedType>();
H A DSimpleConstraintManager.cpp29 if (Optional<Loc> LV = Cond.getAs<Loc>()) {
H A DExprEngine.cpp263 Constraint_untested.getAs<DefinedOrUnknownSVal>();
282 if (Optional<Loc> LV = V.getAs<Loc>()) {
298 if (Optional<Loc> LV = V.getAs<Loc>()) {
322 if (!InitValWithAdjustments.getAs<NonLoc>()) {
331 assert(!InitValWithAdjustments.getAs<Loc>() ||
672 if (Pred->getLocation().getAs<BlockEntrance>())
868 if (Optional<Loc> LValueLoc = LValue.getAs<Loc>())
1911 if (L.getAs<PreImplicitCall>())
1913 if (L.getAs<CallEnter>())
1915 if (Optional<StmtPoint> SP = L.getAs<StmtPoin
[all...]
/freebsd-13-stable/contrib/llvm-project/clang/include/clang/StaticAnalyzer/Checkers/
H A DSValExplainer.h149 .getCanonicalType()->getAs<ObjCObjectPointerType>())
175 if (auto I = R->getIndex().getAs<nonloc::ConcreteInt>())

Completed in 426 milliseconds

1234567891011