/freebsd/contrib/llvm-project/clang/lib/ARCMigrate/ |
H A D | TransGCAttrs.cpp | 60 void lookForAttribute(Decl *D, TypeSourceInfo *TInfo) { in lookForAttribute() argument 61 if (!TInfo) in lookForAttribute() 63 TypeLoc TL = TInfo->getTypeLoc(); in lookForAttribute() 239 TypeSourceInfo *TInfo = PD->getTypeSourceInfo(); in checkAllAtProps() local 240 if (!TInfo) in checkAllAtProps() 242 TypeLoc TL = TInfo->getTypeLoc(); in checkAllAtProps() 246 if (TInfo->getType().getObjCLifetime() == Qualifiers::OCL_Weak) { in checkAllAtProps() 248 } else if (TInfo->getType().getObjCLifetime() == Qualifiers::OCL_Strong) in checkAllAtProps()
|
/freebsd/contrib/llvm-project/clang/lib/AST/ |
H A D | DeclarationName.cpp | 422 if (TypeSourceInfo *TInfo = LocInfo.getNamedTypeInfo()) in containsUnexpandedParameterPack() local 423 return TInfo->getType()->containsUnexpandedParameterPack(); in containsUnexpandedParameterPack() 445 if (TypeSourceInfo *TInfo = LocInfo.getNamedTypeInfo()) in isInstantiationDependent() local 446 return TInfo->getType()->isInstantiationDependentType(); in isInstantiationDependent() 482 if (TypeSourceInfo *TInfo = LocInfo.getNamedTypeInfo()) { in printName() local 490 OS << TInfo->getType().getAsString(Policy); in printName() 513 if (TypeSourceInfo *TInfo = LocInfo.getNamedTypeInfo()) in getEndLocPrivate() local 514 return TInfo->getTypeLoc().getEndLoc(); in getEndLocPrivate()
|
H A D | DeclTemplate.cpp | 727 unsigned P, const IdentifierInfo *Id, QualType T, TypeSourceInfo *TInfo, in NonTypeTemplateParmDecl() argument 729 : DeclaratorDecl(NonTypeTemplateParm, DC, IdLoc, Id, T, TInfo, StartLoc), in NonTypeTemplateParmDecl() 745 QualType T, bool ParameterPack, TypeSourceInfo *TInfo) { in Create() argument 753 TInfo); in Create() 759 QualType T, TypeSourceInfo *TInfo, ArrayRef<QualType> ExpandedTypes, in Create() argument 761 AutoType *AT = TInfo->getType()->getContainedAutoType(); in Create() 766 NonTypeTemplateParmDecl(DC, StartLoc, IdLoc, D, P, Id, T, TInfo, in Create() 1359 TypeSourceInfo *TInfo, StorageClass S, ArrayRef<TemplateArgument> Args) in VarTemplateSpecializationDecl() argument 1361 SpecializedTemplate->getIdentifier(), T, TInfo, S), in VarTemplateSpecializationDecl() 1375 TypeSourceInfo *TInfo, StorageClass S, ArrayRef<TemplateArgument> Args) { in Create() argument [all …]
|
H A D | DeclCXX.cpp | 2198 TypeSourceInfo *TInfo, SourceLocation EndLocation, CXXConstructorDecl *Ctor, in Create() argument 2201 TInfo, EndLocation, Ctor, Kind); in Create() 2314 TypeSourceInfo *TInfo, StorageClass SC, bool UsesFPIntrin, in Create() argument 2319 CXXMethod, C, RD, StartLoc, NameInfo, T, TInfo, SC, UsesFPIntrin, in Create() 2646 TypeSourceInfo *TInfo, bool IsVirtual, in CXXCtorInitializer() argument 2650 : Initializee(TInfo), Init(Init), MemberOrEllipsisLocation(EllipsisLoc), in CXXCtorInitializer() 2672 TypeSourceInfo *TInfo, in CXXCtorInitializer() argument 2675 : Initializee(TInfo), Init(Init), LParenLoc(L), RParenLoc(R), in CXXCtorInitializer() 2723 const DeclarationNameInfo &NameInfo, QualType T, TypeSourceInfo *TInfo, in CXXConstructorDecl() argument 2727 : CXXMethodDecl(CXXConstructor, C, RD, StartLoc, NameInfo, T, TInfo, in CXXConstructorDecl() [all …]
|
H A D | Decl.cpp | 1991 getExtInfo()->TInfo = savedTInfo; in setQualifierInfo() 2010 getExtInfo()->TInfo = savedTInfo; in setTrailingRequiresClause() 2026 getExtInfo()->TInfo = savedTInfo; in setTemplateParameterListsInfo() 2074 if (TypeSourceInfo *TInfo = getTypeSourceInfo()) { in getSourceRange() local 2077 if (!getDeclName() || typeIsPostfix(TInfo->getType())) in getSourceRange() 2078 RangeEnd = TInfo->getTypeLoc().getSourceRange().getEnd(); in getSourceRange() 2118 const IdentifierInfo *Id, QualType T, TypeSourceInfo *TInfo, in VarDecl() argument 2120 : DeclaratorDecl(DK, DC, IdLoc, Id, T, TInfo, StartLoc), in VarDecl() 2135 QualType T, TypeSourceInfo *TInfo, StorageClass S) { in Create() argument 2136 return new (C, DC) VarDecl(Var, C, DC, StartL, IdL, Id, T, TInfo, S); in Create() [all …]
|
/freebsd/contrib/llvm-project/clang/include/clang/AST/ |
H A D | LocInfoType.h | 37 LocInfoType(QualType ty, TypeSourceInfo *TInfo) in LocInfoType() argument 38 : Type((TypeClass)LocInfo, ty, ty->getDependence()), DeclInfo(TInfo) { in LocInfoType()
|
H A D | Decl.h | 736 TypeSourceInfo *TInfo; member 752 DeclarationName N, QualType T, TypeSourceInfo *TInfo, in DeclaratorDecl() argument 754 : ValueDecl(DK, DC, L, N, T), DeclInfo(TInfo), InnerLocStart(StartL) {} in DeclaratorDecl() 762 ? getExtInfo()->TInfo in getTypeSourceInfo() 768 getExtInfo()->TInfo = TI; in setTypeSourceInfo() 1078 TypeSourceInfo *TInfo, StorageClass SC); 1108 TypeSourceInfo *TInfo, StorageClass S); 1730 TypeSourceInfo *TInfo, StorageClass S, Expr *DefArg) in ParmVarDecl() argument 1731 : VarDecl(DK, C, DC, StartLoc, IdLoc, Id, T, TInfo, S) { in ParmVarDecl() 1743 TypeSourceInfo *TInfo, StorageClass S, [all …]
|
H A D | DeclCXX.h | 188 TypeSourceInfo *TInfo, SourceLocation EllipsisLoc) in CXXBaseSpecifier() argument 190 Access(A), InheritConstructors(false), BaseTypeInfo(TInfo) {} in CXXBaseSpecifier() 1966 TypeSourceInfo *TInfo, SourceLocation EndLocation, in CXXDeductionGuideDecl() argument 1968 : FunctionDecl(CXXDeductionGuide, C, DC, StartLoc, NameInfo, T, TInfo, in CXXDeductionGuideDecl() 1987 TypeSourceInfo *TInfo, SourceLocation EndLocation, 2073 QualType T, TypeSourceInfo *TInfo, StorageClass SC, 2077 : FunctionDecl(DK, C, RD, StartLoc, NameInfo, T, TInfo, SC, UsesFPIntrin, in FunctionDecl() argument 2086 const DeclarationNameInfo &NameInfo, QualType T, TypeSourceInfo *TInfo, 2354 CXXCtorInitializer(ASTContext &Context, TypeSourceInfo *TInfo, bool IsVirtual, 2372 CXXCtorInitializer(ASTContext &Context, TypeSourceInfo *TInfo, [all …]
|
H A D | DeclFriend.h | 161 else if (TypeSourceInfo *TInfo = getFriendType()) { in getSourceRange() local 166 return SourceRange(StartL, TInfo->getTypeLoc().getEndLoc()); in getSourceRange()
|
H A D | Expr.h | 2586 UnaryExprOrTypeTraitExpr(UnaryExprOrTypeTrait ExprKind, TypeSourceInfo *TInfo, in UnaryExprOrTypeTraitExpr() argument 2598 Argument.Ty = TInfo; in UnaryExprOrTypeTraitExpr() 2640 void setArgument(TypeSourceInfo *TInfo) { in setArgument() argument 2641 Argument.Ty = TInfo; in setArgument() 3753 TypeSourceInfo *TInfo; variable 3760 TInfo(writtenTy) { in ExplicitCastExpr() 3772 TypeSourceInfo *getTypeInfoAsWritten() const { return TInfo; } in getTypeInfoAsWritten() 3773 void setTypeInfoAsWritten(TypeSourceInfo *writtenTy) { TInfo = writtenTy; } in setTypeInfoAsWritten() 3777 QualType getTypeAsWritten() const { return TInfo->getType(); } in getTypeAsWritten() 4526 TypeSourceInfo *TInfo; variable [all …]
|
H A D | DeclTemplate.h | 1389 bool ParameterPack, TypeSourceInfo *TInfo) 1390 : DeclaratorDecl(NonTypeTemplateParm, DC, IdLoc, Id, T, TInfo, StartLoc), 1396 TypeSourceInfo *TInfo, 1404 QualType T, bool ParameterPack, TypeSourceInfo *TInfo); 1409 QualType T, TypeSourceInfo *TInfo, ArrayRef<QualType> ExpandedTypes, 2636 QualType T, TypeSourceInfo *TInfo, 2650 TypeSourceInfo *TInfo, StorageClass S, 2854 VarTemplateDecl *SpecializedTemplate, QualType T, TypeSourceInfo *TInfo, 2872 TypeSourceInfo *TInfo, StorageClass S,
|
H A D | TemplateBase.h | 535 TemplateArgumentLoc(const TemplateArgument &Argument, TypeSourceInfo *TInfo) 536 : Argument(Argument), LocInfo(TInfo) {
|
H A D | DeclObjC.h | 344 void setReturnTypeSourceInfo(TypeSourceInfo *TInfo) { ReturnTInfo = TInfo; } in setReturnTypeSourceInfo() argument 1565 if (TypeSourceInfo *TInfo = getSuperClassTInfo()) in getSuperClassType() local 1566 return TInfo->getType()->castAs<ObjCObjectType>(); in getSuperClassType() 1961 TypeSourceInfo *TInfo, AccessControl ac, Expr *BW, in ObjCIvarDecl() argument 1963 : FieldDecl(ObjCIvar, DC, StartLoc, IdLoc, Id, T, TInfo, BW, in ObjCIvarDecl() 1971 TypeSourceInfo *TInfo, AccessControl ac,
|
H A D | DeclOpenMP.h | 388 QualType Type, TypeSourceInfo *TInfo, in OMPCapturedExprDecl() argument 390 : VarDecl(OMPCapturedExpr, C, DC, StartLoc, StartLoc, Id, Type, TInfo, in OMPCapturedExprDecl()
|
/freebsd/contrib/llvm-project/clang/lib/Index/ |
H A D | IndexTypeSourceInfo.cpp | 245 void IndexingContext::indexTypeSourceInfo(TypeSourceInfo *TInfo, in indexTypeSourceInfo() argument 250 if (!TInfo || TInfo->getTypeLoc().isNull()) in indexTypeSourceInfo() 253 indexTypeLoc(TInfo->getTypeLoc(), Parent, DC, isBase, isIBType); in indexTypeSourceInfo()
|
/freebsd/contrib/llvm-project/clang/lib/CodeGen/Targets/ |
H A D | RISCV.cpp | 501 auto TInfo = getContext().getTypeInfoInChars(Ty); in EmitVAArg() local 508 TInfo.Align = std::min(TInfo.Align, CharUnits::fromQuantity(4)); in EmitVAArg() 511 bool IsIndirect = TInfo.Width > 2 * SlotSize; in EmitVAArg() 513 return emitVoidPtrVAArg(CGF, VAListAddr, Ty, IsIndirect, TInfo, SlotSize, in EmitVAArg()
|
H A D | CSKY.cpp | 68 auto TInfo = getContext().getTypeInfoInChars(Ty); in EmitVAArg() local 70 return emitVoidPtrVAArg(CGF, VAListAddr, Ty, false, TInfo, SlotSize, in EmitVAArg()
|
H A D | LoongArch.cpp | 428 auto TInfo = getContext().getTypeInfoInChars(Ty); in EmitVAArg() local 432 /*IsIndirect=*/TInfo.Width > 2 * SlotSize, TInfo, in EmitVAArg()
|
/freebsd/contrib/llvm-project/clang/lib/Sema/ |
H A D | SemaType.cpp | 2723 QualType Sema::GetTypeFromParser(ParsedType Ty, TypeSourceInfo **TInfo) { in GetTypeFromParser() argument 2726 if (TInfo) *TInfo = nullptr; in GetTypeFromParser() 2736 if (TInfo) *TInfo = DI; in GetTypeFromParser() 4211 TypeSourceInfo *TInfo) { in GetFullTypeForDeclarator() argument 4866 T = S.GetTypeFromParser(FTI.getTrailingReturnType(), &TInfo); in GetFullTypeForDeclarator() 4881 std::tie(T, TInfo) = InventTemplateParameter( in GetFullTypeForDeclarator() 4882 state, T, TInfo, Auto, *InventedParamInfo); in GetFullTypeForDeclarator() 4954 if (TInfo) { in GetFullTypeForDeclarator() 4955 DiagLoc = TInfo->getTypeLoc().getBeginLoc(); in GetFullTypeForDeclarator() 4956 FixitLoc = S.getLocForEndOfToken(TInfo->getTypeLoc().getEndLoc()); in GetFullTypeForDeclarator() [all …]
|
H A D | SemaExprCXX.cpp | 682 TypeSourceInfo *TInfo = nullptr; in ActOnCXXTypeid() local 684 &TInfo); in ActOnCXXTypeid() 688 if (!TInfo) in ActOnCXXTypeid() 689 TInfo = Context.getTrivialTypeSourceInfo(T, OpLoc); in ActOnCXXTypeid() 691 return BuildCXXTypeId(TypeInfoType, OpLoc, TInfo, RParenLoc); in ActOnCXXTypeid() 794 TypeSourceInfo *TInfo = nullptr; in ActOnCXXUuidof() local 796 &TInfo); in ActOnCXXUuidof() 800 if (!TInfo) in ActOnCXXUuidof() 801 TInfo = Context.getTrivialTypeSourceInfo(T, OpLoc); in ActOnCXXUuidof() 803 return BuildCXXUuidof(GuidType, OpLoc, TInfo, RParenLoc); in ActOnCXXUuidof() [all …]
|
H A D | SemaTemplateInstantiateDecl.cpp | 2076 TypeSourceInfo *TInfo) { in adjustFunctionTypeForInstantiation() argument 2080 = TInfo->getType()->castAs<FunctionProtoType>(); in adjustFunctionTypeForInstantiation() 2082 return TInfo->getType(); in adjustFunctionTypeForInstantiation() 2134 TypeSourceInfo *TInfo = SubstFunctionType(D, Params); in VisitFunctionDecl() local 2135 if (!TInfo) in VisitFunctionDecl() 2137 QualType T = adjustFunctionTypeForInstantiation(SemaRef.Context, D, TInfo); in VisitFunctionDecl() 2187 adjustForRewrite(FunctionRewriteKind, D, T, TInfo, NameInfo); in VisitFunctionDecl() 2193 InstantiatedExplicitSpecifier, NameInfo, T, TInfo, in VisitFunctionDecl() 2199 SemaRef.Context, DC, D->getInnerLocStart(), NameInfo, T, TInfo, in VisitFunctionDecl() 2546 TypeSourceInfo *TInfo = SubstFunctionType(D, Params); in VisitCXXMethodDecl() local [all …]
|
H A D | SemaDecl.cpp | 5643 TypeSourceInfo *TInfo = GetTypeForDeclarator(Dc); in BuildAnonymousStructOrUnion() local 5644 assert(TInfo && "couldn't build declarator info for anonymous struct/union"); in BuildAnonymousStructOrUnion() 5651 /*IdentifierInfo=*/nullptr, Context.getTypeDeclType(Record), TInfo, in BuildAnonymousStructOrUnion() 5671 Context.getTypeDeclType(Record), TInfo, SC); in BuildAnonymousStructOrUnion() 5730 TypeSourceInfo *TInfo = GetTypeForDeclarator(Dc); in BuildMicrosoftCAnonymousStruct() local 5731 assert(TInfo && "couldn't build declarator info for anonymous struct"); in BuildMicrosoftCAnonymousStruct() 5739 /*IdentifierInfo=*/nullptr, RecTy, TInfo, in BuildMicrosoftCAnonymousStruct() 5823 TypeSourceInfo *TInfo; in GetNameFromUnqualifiedId() local 5824 QualType Ty = GetTypeFromParser(Name.ConversionFunctionId, &TInfo); in GetNameFromUnqualifiedId() 5829 NameInfo.setNamedTypeInfo(TInfo); in GetNameFromUnqualifiedId() [all …]
|
H A D | SemaDeclCXX.cpp | 828 TypeSourceInfo *TInfo = GetTypeForDeclarator(D); in ActOnDecompositionDeclarator() local 829 QualType R = TInfo->getType(); in ActOnDecompositionDeclarator() 831 if (DiagnoseUnexpandedParameterPack(D.getIdentifierLoc(), TInfo, in ActOnDecompositionDeclarator() 944 ActOnVariableDeclarator(S, D, DC, TInfo, Previous, in ActOnDecompositionDeclarator() 2635 TypeSourceInfo *TInfo, in CheckBaseSpecifier() argument 2637 QualType BaseType = TInfo->getType(); in CheckBaseSpecifier() 2638 SourceLocation BaseLoc = TInfo->getTypeLoc().getBeginLoc(); in CheckBaseSpecifier() 2646 << TInfo->getTypeLoc().getSourceRange(); in CheckBaseSpecifier() 2748 Access, TInfo, EllipsisLoc); in CheckBaseSpecifier() 2780 TypeSourceInfo *TInfo = nullptr; in ActOnBaseSpecifier() local [all …]
|
H A D | SemaExpr.cpp | 4588 ExprResult Sema::CreateUnaryExprOrTypeTraitExpr(TypeSourceInfo *TInfo, in CreateUnaryExprOrTypeTraitExpr() argument 4592 if (!TInfo) in CreateUnaryExprOrTypeTraitExpr() 4595 QualType T = TInfo->getType(); in CreateUnaryExprOrTypeTraitExpr() 4605 TInfo->getType()->isVariablyModifiedType()) in CreateUnaryExprOrTypeTraitExpr() 4606 TInfo = TransformToPotentiallyEvaluated(TInfo); in CreateUnaryExprOrTypeTraitExpr() 4610 ExprKind, TInfo, Context.getSizeType(), OpLoc, R.getEnd()); in CreateUnaryExprOrTypeTraitExpr() 4664 TypeSourceInfo *TInfo; in ActOnUnaryExprOrTypeTraitExpr() local 4665 (void) GetTypeFromParser(ParsedType::getFromOpaquePtr(TyOrEx), &TInfo); in ActOnUnaryExprOrTypeTraitExpr() 4666 return CreateUnaryExprOrTypeTraitExpr(TInfo, OpLoc, ExprKind, ArgRange); in ActOnUnaryExprOrTypeTraitExpr() 4674 bool Sema::CheckAlignasTypeArgument(StringRef KWName, TypeSourceInfo *TInfo, in CheckAlignasTypeArgument() argument [all …]
|
/freebsd/contrib/llvm-project/clang/lib/APINotes/ |
H A D | APINotesYAMLCompiler.cpp | 1089 TypedefInfo TInfo; in convertTopLevelItems() local 1090 convertCommonType(Typedef, TInfo, Typedef.Name); in convertTopLevelItems() 1091 TInfo.SwiftWrapper = Typedef.SwiftType; in convertTopLevelItems() 1093 Writer.addTypedef(Ctx, Typedef.Name, TInfo, SwiftVersion); in convertTopLevelItems()
|