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

12345678910

/freebsd-11-stable/contrib/llvm-project/clang/lib/Sema/
H A DSemaOverload.cpp69 if (auto *FPT = DRE->getType()->getAs<FunctionProtoType>()) {
256 if (const PointerType* ToPtrType = ToType->getAs<PointerType>())
320 if (auto *ET = ToType->getAs<EnumType>())
1448 if (ToType->getAs<RecordType>() && FromType->getAs<RecordType>() &&
1607 FromFn = QT->getAs<FunctionType>();
1769 if (const AtomicType *Atomic = FromType->getAs<AtomicType>())
2050 const BuiltinType *To = ToType->getAs<BuiltinType>();
2092 if (const EnumType *FromEnumType = FromType->getAs<EnumType>()) {
2211 if (const BuiltinType *FromBuiltin = FromType->getAs<BuiltinTyp
[all...]
H A DSemaStmtAsm.cpp801 RT = VD->getType()->getAs<RecordType>();
806 if (const auto *PT = QT->getAs<PointerType>())
808 RT = QT->getAs<RecordType>();
810 RT = TD->getTypeForDecl()->getAs<RecordType>();
812 RT = TD->getType()->getAs<RecordType>();
859 const RecordType *RT = T->getAs<RecordType>();
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 DSemaExpr.cpp392 if (const PointerType *ptr = type->getAs<PointerType>()) {
393 fn = ptr->getPointeeType()->getAs<FunctionType>();
396 } else if (const BlockPointerType *ptr = type->getAs<BlockPointerType>()) {
549 if (const ObjCObjectType *OTy = BaseType->getAs<ObjCObjectType>())
682 if (const AtomicType *Atomic = T->getAs<AtomicType>()) {
787 const BuiltinType *BTy = Ty->getAs<BuiltinType>();
1146 auto *LHSComplex = LHSType->getAs<ComplexType>();
1147 auto *RHSComplex = RHSType->getAs<ComplexType>();
1287 const auto *BTy = Ty->getAs<BuiltinType>();
1453 if (const AtomicType *AtomicLHS = LHSType->getAs<AtomicTyp
[all...]
H A DSemaLambda.cpp627 if (const EnumType *ET = E->getType()->getAs<EnumType>()) {
847 Init = Result.getAs<Expr>();
859 if (auto PETL = TSI->getTypeLoc().getAs<PackExpansionTypeLoc>())
1097 !C->InitCaptureType.get()->getAs<PackExpansionType>())
1339 ConvTSI->getTypeLoc().getAs<FunctionProtoTypeLoc>();
1342 ConvTL.getReturnLoc().getAs<PointerTypeLoc>();
1346 ConvNamePtrToFunctionTSI->getTypeLoc().getAs<PointerTypeLoc>();
1351 PtrToFunctionTL.getPointeeLoc().getAs<FunctionProtoTypeLoc>();
1353 ConvNamePtrToFunctionTL.getPointeeLoc().getAs<FunctionProtoTypeLoc>();
H A DSemaDeclCXX.cpp159 = Method->getType()->getAs<FunctionProtoType>();
272 Arg = Result.getAs<Expr>();
1438 if (auto *VT = DecompType->getAs<VectorType>()) {
1443 if (auto *CT = DecompType->getAs<ComplexType>()) {
1502 if (const ReferenceType *R = NewType->getAs<ReferenceType>()) {
1505 } else if (const PointerType *P = NewType->getAs<PointerType>()) {
1508 } else if (const MemberPointerType *M = NewType->getAs<MemberPointerType>()) {
1520 OldType->getAs<FunctionProtoType>(), Old->getLocation(),
1521 NewType->getAs<FunctionProtoType>(), New->getLocation())) {
2611 if (auto Rec = Type->getAs<RecordTyp
[all...]
/freebsd-11-stable/contrib/llvm-project/clang/lib/Tooling/Refactoring/Rename/
H A DUSRLocFinder.cpp112 if (auto ElaboratedTypeLoc = TL.getAs<clang::ElaboratedTypeLoc>()) {
146 if (auto ElaboratedTypeLoc = TL.getAs<clang::ElaboratedTypeLoc>())
452 if (const auto* TT = Loc.getType()->getAs<clang::TypedefType>())
/freebsd-11-stable/contrib/llvm-project/clang/lib/AST/
H A DDeclarationName.cpp124 if (const RecordType *ClassRec = ClassType->getAs<RecordType>()) {
129 if (auto *InjTy = ClassType->getAs<InjectedClassNameType>()) {
182 if (const RecordType *Rec = Type->getAs<RecordType>()) {
H A DNSAPI.cpp379 const BuiltinType *BT = T->getAs<BuiltinType>();
383 const TypedefType *TDT = T->getAs<TypedefType>();
509 while (const TypedefType *TDT = T->getAs<TypedefType>()) {
566 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.cpp848 if (const auto *FT = Type->getAs<FunctionProtoType>())
892 if (QT->getAs<TypedefType>())
894 if (const auto *P = QT->getAs<PointerType>())
895 if (P->getPointeeType()->getAs<TypedefType>())
897 if (const auto *P = QT->getAs<BlockPointerType>())
898 if (P->getPointeeType()->getAs<TypedefType>())
H A DASTContext.cpp599 if (const auto *TT = QT->getAs<TagType>())
1751 if (const auto *RT = T->getAs<ReferenceType>()) {
1828 if (const auto *RT = T->getAs<RecordType>()) {
1881 if (const auto *TT = T->getAs<TypedefType>())
1892 if (const auto *TT = T->getAs<TypedefType>())
1897 if (const auto *TT = T->getAs<TagType>())
2341 if (const auto *RT = T->getAs<RecordType>()) {
2345 } else if (const auto *ObjCI = T->getAs<ObjCInterfaceType>()) {
2423 if (const auto *CT = T->getAs<ComplexType>())
2425 if (const auto *ET = T->getAs<EnumTyp
[all...]
H A DDeclPrinter.cpp147 if (const PointerType *PTy = BaseType->getAs<PointerType>())
149 else if (const BlockPointerType *BPy = BaseType->getAs<BlockPointerType>())
153 else if (const FunctionType* FTy = BaseType->getAs<FunctionType>())
155 else if (const VectorType *VTy = BaseType->getAs<VectorType>())
157 else if (const ReferenceType *RTy = BaseType->getAs<ReferenceType>())
159 else if (const AutoType *ATy = BaseType->getAs<AutoType>())
161 else if (const ParenType *PTy = BaseType->getAs<ParenType>())
274 if (auto *PET = T->getAs<PackExpansionType>()) {
656 if (const FunctionType *AFT = Ty->getAs<FunctionType>()) {
/freebsd-11-stable/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DStreamChecker.cpp173 Optional<DefinedSVal> StreamVal = Call.getArgSVal(2).getAs<DefinedSVal>();
244 Optional<DefinedSVal> DV = SV.getAs<DefinedSVal>();
273 Optional<nonloc::ConcreteInt> CI = SV.getAs<nonloc::ConcreteInt>();
H A DVLASizeChecker.cpp143 LessThanZeroVal.getAs<DefinedSVal>()) {
H A DIteratorModeling.cpp558 if (const auto TruthVal = RetVal.getAs<nonloc::ConcreteInt>()) {
569 const auto ConditionVal = RetVal.getAs<DefinedSVal>();
651 if (auto loc = RHS.getAs<Loc>()) {
1298 if (const auto *RefT = Type->getAs<ReferenceType>()) {
1378 } else if (const auto LCVal = Val.getAs<nonloc::LazyCompoundVal>()) {
1406 if (auto DV = IsCappedFromAbove.getAs<DefinedSVal>()) {
1416 if (auto DV = IsCappedFromBelow.getAs<DefinedSVal>()) {
1438 assert(comparison.getAs<DefinedSVal>() &&
1476 if (const auto LCVal = Binding.second.getAs<nonloc::LazyCompoundVal>()) {
1623 const auto DiffInt = Diff.getAs<nonlo
[all...]
/freebsd-11-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>()) {
246 if (const RecordType *TTy = QTy->getAs<RecordType>()) {
/freebsd-11-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-11-stable/contrib/llvm-project/clang/include/clang/Analysis/
H A DAnyCall.h68 K = (CE->getCallee()->getType()->getAs<BlockPointerType>()) ? Block
/freebsd-11-stable/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/
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>())
1879 if (L.getAs<PreImplicitCall>())
1881 if (L.getAs<CallEnter>())
1883 if (Optional<StmtPoint> SP = L.getAs<StmtPoin
[all...]
/freebsd-11-stable/contrib/llvm-project/clang/include/clang/AST/
H A DType.h2012 bool isFunctionNoProtoType() const { return getAs<FunctionNoProtoType>(); }
2013 bool isFunctionProtoType() const { return getAs<FunctionProtoType>(); }
2211 /// NOTE: getAs*ArrayType are methods on ASTContext.
2260 /// Member-template getAs<specific type>'. Look through sugar for
2266 template <typename T> const T *getAs() const;
2275 /// A variant of getAs<> for array types which silently discards
2282 /// This method has the same relationship to getAs<T> as cast<T> has
2440 template <> const TypedefType *Type::getAs() const;
2445 template <> const TemplateSpecializationType *Type::getAs() const;
2449 template <> const AttributedType *Type::getAs() cons
[all...]
/freebsd-11-stable/contrib/llvm-project/clang/lib/Frontend/Rewrite/
H A DRewriteObjC.cpp459 if (const PointerType *PT = OCT->getAs<PointerType>()) {
558 const PointerType *PT = funcType->getAs<PointerType>();
1048 if (const PointerType* PT = retType->getAs<PointerType>())
1050 else if (const BlockPointerType *BPT = retType->getAs<BlockPointerType>())
1052 if ((FPRetType = PointeeTy->getAs<FunctionType>())) {
1862 t->getAs<ObjCObjectPointerType>()) {
2066 if (const PointerType *PT = T->getAs<PointerType>()) {
2123 const FunctionType *funcType = FD->getType()->getAs<FunctionType>();
2191 const Type* TypePtr = QT->getAs<Type>();
2197 TypePtr = QT->getAs<Typ
[all...]
/freebsd-11-stable/contrib/llvm-project/clang/lib/Index/
H A DIndexBody.cpp159 T->getAs<TemplateSpecializationType>();
276 if (const auto *Ptr = recT->getAs<ObjCObjectPointerType>())
279 addReceivers(recT->getAs<ObjCObjectType>());

Completed in 780 milliseconds

12345678910