clang API Documentation
A container of type source information. More...
#include <Decl.h>
Public Member Functions | |
QualType | getType () const |
Return the type wrapped by this type source info. | |
TypeLoc | getTypeLoc () const |
Return the TypeLoc wrapper for the type source info. | |
void | overrideType (QualType T) |
Override the type stored in this TypeSourceInfo. Use with caution! | |
Friends | |
class | ASTContext |
A container of type source information.
A client can read the relevant info using TypeLoc wrappers, e.g:
TypeLoc TL = TypeSourceInfo->getTypeLoc(); TL.getStartLoc().print(OS, SrcMgr);
QualType clang::TypeSourceInfo::getType | ( | ) | const [inline] |
Return the type wrapped by this type source info.
Definition at line 67 of file Decl.h.
Referenced by clang::Sema::ActOnBlockArguments(), clang::Sema::ActOnCastExpr(), clang::Sema::ActOnCXXNew(), clang::Sema::ActOnExplicitInstantiation(), clang::Sema::ActOnFriendFunctionDecl(), clang::Sema::ActOnFriendTypeDecl(), clang::Sema::ActOnFunctionDeclarator(), clang::Sema::ActOnIvar(), clang::Sema::ActOnNonTypeTemplateParameter(), clang::Sema::ActOnObjCExceptionDecl(), clang::Sema::ActOnPackExpansion(), clang::Sema::ActOnParamDeclarator(), clang::Sema::ActOnProperty(), clang::Sema::ActOnStartOfLambdaDefinition(), clang::Sema::ActOnTypedefDeclarator(), clang::Sema::ActOnVariableDeclarator(), clang::Sema::ActOnVarTemplateSpecialization(), adjustFunctionTypeForInstantiation(), clang::Sema::BuildArrayTypeTrait(), clang::Sema::BuildBuiltinOffsetOf(), clang::Sema::BuildCompoundLiteralExpr(), clang::Sema::BuildCStyleCastExpr(), clang::Sema::BuildCXXFunctionalCastExpr(), clang::Sema::BuildCXXNamedCast(), clang::Sema::BuildCXXTypeConstructExpr(), clang::Sema::BuildCXXTypeId(), clang::Sema::BuildCXXUuidof(), clang::Sema::BuildExceptionDeclaration(), clang::Sema::BuildObjCBridgedCast(), clang::Sema::BuildObjCEncodeExpression(), clang::Sema::BuildPseudoDestructorExpr(), clang::Sema::BuildVAArgExpr(), clang::Sema::BuildVectorLiteral(), checkAllAtProps(), clang::Sema::CheckBaseSpecifier(), clang::Sema::CheckEnumUnderlyingType(), clang::Sema::CheckExplicitlyDefaultedMemberExceptionSpec(), clang::Sema::CheckFieldDecl(), CheckForModifiableLvalue(), clang::Sema::CheckFriendTypeDecl(), clang::Sema::CheckPackExpansion(), clang::Sema::CheckTemplateArgument(), clang::Sema::CheckTemplateArgumentList(), clang::Sema::CheckTypedefForVariablyModifiedType(), clang::Sema::CheckVariableDeclarationType(), clang::Sema::CompleteVarTemplateSpecializationDecl(), computeDeclRefDependence(), clang::Sema::CreatePropertyDecl(), clang::Sema::CreateUnaryExprOrTypeTraitExpr(), DiagnoseBaseOrMemInitializerOrder(), clang::Sema::DiagnoseUnexpandedParameterPack(), clang::Sema::DiagnoseUnusedExprResult(), clang::UnaryExprOrTypeTraitExpr::getArgumentType(), clang::TemplateTypeParmDecl::getDefaultArgument(), clang::ObjCEncodeExpr::getEncodedType(), llvm::DOTGraphTraits< ExplodedNode * >::getNodeLabel(), clang::ParmVarDecl::getOriginalType(), clang::ArrayTypeTraitExpr::getQueriedType(), clang::CXXBaseSpecifier::getType(), clang::ObjCPropertyDecl::getType(), clang::ExplicitCastExpr::getTypeAsWritten(), clang::CXXUnresolvedConstructExpr::getTypeAsWritten(), clang::CXXTypeidExpr::getTypeOperand(), clang::CXXUuidofExpr::getTypeOperand(), clang::TypedefNameDecl::getUnderlyingType(), clang::Sema::HandleDeclarator(), clang::Sema::HandleField(), clang::Sema::HandleMSProperty(), hasDeducedReturnType(), clang::hasImplicitExceptionSpec(), clang::ASTImporter::Import(), clang::InitializedEntity::InitializeCompoundLiteralInit(), clang::InitializedEntity::InitializeTemporary(), clang::TemplateDeclInstantiator::InstantiateClassTemplatePartialSpecialization(), clang::Sema::InstantiateMemInitializers(), clang::TemplateDeclInstantiator::InstantiateTypedefNameDecl(), clang::TemplateDeclInstantiator::InstantiateVarTemplatePartialSpecialization(), clang::Sema::MergeFunctionDecl(), NeedsInstantiationAsFunctionType(), clang::InitializationSequence::Perform(), clang::Sema::performLambdaInitCaptureInitialization(), print_elem(), clang::TreeTransform< Derived >::RebuildCXXPseudoDestructorExpr(), RebuildDeclaratorInCurrentInstantiation(), clang::TreeTransform< Derived >::RebuildObjCMessageExpr(), clang::Sema::RebuildTypeInCurrentInstantiation(), clang::Sema::SemaConvertVectorExpr(), clang::Sema::startLambdaDefinition(), SubstDefaultTemplateArgument(), clang::Sema::SubstDefaultTemplateArgumentIfAvailable(), clang::Sema::SubstParmVarDecl(), clang::Sema::SubstType(), clang::TreeTransform< Derived >::TransformDeclarationNameInfo(), clang::TreeTransform< Derived >::TransformFunctionTypeParam(), clang::TreeTransform< Derived >::TransformType(), and TryToFixInvalidVariablyModifiedTypeSourceInfo().
TypeLoc clang::TypeSourceInfo::getTypeLoc | ( | ) | const [inline] |
Return the TypeLoc wrapper for the type source info.
Return the TypeLoc for a type source info.
Definition at line 201 of file TypeLoc.h.
Referenced by clang::Sema::ActOnAliasDeclaration(), clang::Sema::ActOnBlockArguments(), clang::Sema::ActOnExplicitInstantiation(), clang::Sema::ActOnMethodDeclaration(), clang::Sema::ActOnObjCForCollectionStmt(), clang::Sema::ActOnTag(), clang::Sema::ActOnTemplatedFriendTag(), clang::Sema::ActOnTypenameType(), addFunctionPointerConversion(), clang::Sema::AddInitializerToDecl(), clang::ASTWriter::AddTypeSourceInfo(), clang::Sema::BuildBaseInitializer(), clang::Sema::BuildBuiltinOffsetOf(), clang::Sema::BuildClassMessage(), clang::Sema::BuildCStyleCastExpr(), clang::Sema::BuildCXXFunctionalCastExpr(), clang::Sema::BuildCXXNew(), clang::Sema::BuildCXXTypeConstructExpr(), clang::Sema::BuildDeclaratorGroup(), clang::Sema::BuildDelegatingInitializer(), clang::Sema::BuildObjCBridgedCast(), clang::Sema::BuildObjCEncodeExpression(), clang::Sema::BuildPseudoDestructorExpr(), clang::Sema::BuildVAArgExpr(), CheckAbstractClassUsage(), checkAllAtProps(), clang::Sema::CheckBaseSpecifier(), clang::Sema::CheckEnumUnderlyingType(), clang::Sema::CheckFriendTypeDecl(), clang::Sema::CheckFunctionDeclaration(), CheckNonTypeTemplatePartialSpecializationArgs(), clang::Sema::CheckPackExpansion(), clang::Sema::CheckParameter(), clang::Sema::CheckTemplateArgument(), clang::Sema::checkThisInStaticMemberFunctionExceptionSpec(), clang::Sema::checkThisInStaticMemberFunctionType(), clang::Sema::CreatePropertyDecl(), clang::Sema::DeduceAutoType(), DiagnoseCalleeStaticArrayParam(), clang::Sema::DiagnoseUnexpandedParameterPack(), clang::Sema::DiagnoseUnusedExprResult(), clang::comments::DeclInfo::fill(), clang::TemplateTypeParmDecl::getDefaultArgumentLoc(), GetFullTypeForDeclarator(), clang::CXXFunctionalCastExpr::getLocStart(), clang::CXXUnresolvedConstructExpr::getLocStart(), clang::ObjCMessageExpr::getReceiverRange(), clang::Sema::getReturnTypeLoc(), clang::FunctionDecl::getReturnTypeSourceRange(), clang::TemplateTypeParmDecl::getSourceRange(), clang::ClassTemplateSpecializationDecl::getSourceRange(), clang::Sema::getTemplateArgumentPackExpansionPattern(), clang::ASTContext::getTemplateSpecializationTypeInfo(), clang::ASTContext::getTrivialTypeSourceInfo(), getTypeRange(), clang::TypeLocBuilder::getTypeSourceInfo(), clang::ASTReader::GetTypeSourceInfo(), clang::Sema::GetTypeSourceInfoForDeclarator(), clang::DeclaratorDecl::getTypeSpecStartLoc(), clang::ASTImporter::Import(), IsTailPaddedMemberArray(), clang::NestedNameSpecifierLocBuilder::MakeTrivial(), NeedsInstantiationAsFunctionType(), clang::PseudoDestructorTypeStorage::PseudoDestructorTypeStorage(), clang::ASTReader::ReadNestedNameSpecifierLoc(), clang::TreeTransform< Derived >::RebuildCXXPseudoDestructorExpr(), clang::Sema::SubstExceptionSpec(), clang::Sema::SubstFunctionDeclType(), clang::TemplateDeclInstantiator::SubstFunctionType(), clang::Sema::SubstParmVarDecl(), clang::TreeTransform< Derived >::TransformFunctionTypeParam(), clang::TreeTransform< Derived >::TransformType(), and TryToFixInvalidVariablyModifiedTypeSourceInfo().
void clang::TypeSourceInfo::overrideType | ( | QualType | T | ) | [inline] |
Override the type stored in this TypeSourceInfo. Use with caution!
friend class ASTContext [friend] |