clang API Documentation

Public Member Functions | Friends
clang::TypeSourceInfo Class Reference

A container of type source information. More...

#include <Decl.h>

List of all members.

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

Detailed Description

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);

Definition at line 59 of file Decl.h.


Member Function Documentation

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().

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().

Override the type stored in this TypeSourceInfo. Use with caution!

Definition at line 73 of file Decl.h.


Friends And Related Function Documentation

friend class ASTContext [friend]

Definition at line 63 of file Decl.h.


The documentation for this class was generated from the following files: