clang API Documentation
Base wrapper for a particular "section" of type source info. More...
#include <TypeLoc.h>
Public Types | |
enum | TypeLocClass |
Public Member Functions | |
template<typename T > | |
T | castAs () const |
Convert to the specified TypeLoc type, asserting that this TypeLoc is of the desired type. | |
template<typename T > | |
T | getAs () const |
Convert to the specified TypeLoc type, returning a null TypeLoc if this TypeLoc is not of the desired type. | |
TypeLoc () | |
TypeLoc (QualType ty, void *opaqueData) | |
TypeLoc (const Type *ty, void *opaqueData) | |
TypeLocClass | getTypeLocClass () const |
bool | isNull () const |
LLVM_EXPLICIT | operator bool () const |
QualType | getType () const |
Get the type for which this source info wrapper provides information. | |
const Type * | getTypePtr () const |
void * | getOpaqueData () const |
Get the pointer where source information is stored. | |
SourceLocation | getBeginLoc () const |
Get the begin source location. | |
SourceLocation | getEndLoc () const |
Get the end source location. | |
SourceRange | getSourceRange () const LLVM_READONLY |
Get the full source range. | |
SourceLocation | getLocStart () const LLVM_READONLY |
SourceLocation | getLocEnd () const LLVM_READONLY |
SourceRange | getLocalSourceRange () const |
Get the local source range. | |
unsigned | getFullDataSize () const |
Returns the size of the type source info data block. | |
TypeLoc | getNextTypeLoc () const |
Get the next TypeLoc pointed by this TypeLoc, e.g for "int*" the TypeLoc is a PointerLoc and next TypeLoc is for "int". | |
UnqualTypeLoc | getUnqualifiedLoc () const |
Skips past any qualifiers, if this is qualified. | |
TypeLoc | IgnoreParens () const |
void | initialize (ASTContext &Context, SourceLocation Loc) const |
Initializes this to state that every location in this type is the given location. | |
void | initializeFullCopy (TypeLoc Other) const |
Initializes this by copying its information from another TypeLoc of the same type. | |
void | initializeFullCopy (TypeLoc Other, unsigned Size) const |
Initializes this by copying its information from another TypeLoc of the same type. The given size must be the full data size. | |
Static Public Member Functions | |
static unsigned | getFullDataSizeForType (QualType Ty) |
Returns the size of type source info data block for the given type. | |
static unsigned | getLocalAlignmentForType (QualType Ty) |
Returns the alignment of type source info data block for the given type. | |
Protected Attributes | |
const void * | Ty |
void * | Data |
Friends | |
bool | operator== (const TypeLoc &LHS, const TypeLoc &RHS) |
bool | operator!= (const TypeLoc &LHS, const TypeLoc &RHS) |
Base wrapper for a particular "section" of type source info.
A client should use the TypeLoc subclasses through castAs()/getAs() in order to get at the actual information.
The kinds of TypeLocs. Equivalent to the Type::TypeClass enum, except it also defines a Qualified enum that corresponds to the QualifiedLoc class.
clang::TypeLoc::TypeLoc | ( | ) | [inline] |
Definition at line 84 of file TypeLoc.h.
Referenced by getEndLoc(), and getLocalAlignmentForType().
clang::TypeLoc::TypeLoc | ( | QualType | ty, |
void * | opaqueData | ||
) | [inline] |
clang::TypeLoc::TypeLoc | ( | const Type * | ty, |
void * | opaqueData | ||
) | [inline] |
T clang::TypeLoc::castAs | ( | ) | const [inline] |
Convert to the specified TypeLoc type, asserting that this TypeLoc is of the desired type.
Definition at line 53 of file TypeLoc.h.
Referenced by clang::Sema::ActOnTemplatedFriendTag(), clang::Sema::ActOnTypenameType(), clang::Sema::DiagnoseUnusedExprResult(), FixInvalidVariablyModifiedTypeLoc(), getBeginLoc(), getEndLoc(), clang::Sema::getReturnTypeLoc(), clang::Sema::getTemplateArgumentPackExpansionPattern(), clang::ASTContext::getTemplateSpecializationTypeInfo(), clang::Sema::GetTypeSourceInfoForDeclarator(), NeedsInstantiationAsFunctionType(), clang::TypeLocBuilder::push(), clang::TypeLocBuilder::pushTypeSpec(), clang::TemplateDeclInstantiator::SubstFunctionType(), clang::TreeTransform< Derived >::TransformFunctionTypeParam(), and clang::TreeTransform< Derived >::TransformFunctionTypeParams().
T clang::TypeLoc::getAs | ( | ) | const [inline] |
Convert to the specified TypeLoc type, returning a null TypeLoc if this TypeLoc is not of the desired type.
Definition at line 64 of file TypeLoc.h.
Referenced by clang::Sema::ActOnBlockArguments(), clang::Sema::ActOnStartOfFunctionDef(), addFunctionPointerConversion(), checkAllAtProps(), clang::Sema::CheckEquivalentExceptionSpec(), clang::Sema::CheckFunctionDeclaration(), clang::Sema::checkThisInStaticMemberFunctionExceptionSpec(), clang::Sema::checkThisInStaticMemberFunctionType(), DiagnoseCalleeStaticArrayParam(), clang::comments::DeclInfo::fill(), FixInvalidVariablyModifiedTypeLoc(), FormatFunctionParameter(), clang::Sema::getReturnTypeLoc(), clang::FunctionDecl::getReturnTypeSourceRange(), clang::Sema::GetTypeSourceInfoForDeclarator(), isEnableIf(), IsTailPaddedMemberArray(), NeedsInstantiationAsFunctionType(), clang::InitializationSequence::Perform(), clang::Sema::SubstFunctionDeclType(), clang::TemplateDeclInstantiator::SubstFunctionType(), clang::Sema::SubstParmVarDecl(), and clang::TreeTransform< Derived >::TransformNestedNameSpecifierLoc().
SourceLocation TypeLoc::getBeginLoc | ( | ) | const |
Get the begin source location.
Definition at line 128 of file TypeLoc.cpp.
References castAs(), clang::SourceRange::getBegin(), getLocalSourceRange(), getNextTypeLoc(), getTypeLocClass(), clang::InheritingConcreteTypeLoc< Base, Derived, TypeClass >::getTypePtr(), clang::FunctionProtoType::hasTrailingReturn(), clang::SourceLocation::isInvalid(), and isNull().
Referenced by clang::Sema::ActOnAliasDeclaration(), clang::Sema::ActOnMethodDeclaration(), clang::Sema::ActOnObjCForCollectionStmt(), clang::Sema::ActOnTag(), clang::Sema::AddInitializerToDecl(), clang::Sema::BuildCXXNew(), clang::Sema::BuildCXXTypeConstructExpr(), clang::Sema::BuildDeclaratorGroup(), clang::Sema::BuildVAArgExpr(), clang::Sema::CheckBaseSpecifier(), CheckConstexprDeclStmt(), clang::Sema::CheckEnumUnderlyingType(), clang::CXXScopeSpec::Extend(), clang::TemplateTypeParmDecl::getDefaultArgumentLoc(), clang::DependentNameTypeLoc::getLocalSourceRange(), clang::DependentTemplateSpecializationTypeLoc::getLocalSourceRange(), getLocStart(), clang::CXXUnresolvedConstructExpr::getLocStart(), getSourceRange(), clang::DeclaratorDecl::getTypeSpecStartLoc(), clang::ASTReader::ReadNestedNameSpecifierLoc(), clang::TreeTransform< Derived >::RebuildCXXPseudoDestructorExpr(), ReplaceWithClasstype(), ReplaceWithInstancetype(), clang::TreeTransform< Derived >::TransformFunctionProtoType(), clang::TreeTransform< Derived >::TransformNestedNameSpecifierLoc(), and clang::TreeTransform< Derived >::TransformType().
SourceLocation TypeLoc::getEndLoc | ( | ) | const |
Get the end source location.
Definition at line 165 of file TypeLoc.cpp.
References castAs(), clang::SourceRange::getEnd(), getLocalSourceRange(), getNextTypeLoc(), getTypeLocClass(), clang::InheritingConcreteTypeLoc< Base, Derived, TypeClass >::getTypePtr(), clang::FunctionProtoType::hasTrailingReturn(), clang::LangAS::Last, Paren, and TypeLoc().
Referenced by clang::ElaboratedTypeLoc::getLocalSourceRange(), getLocEnd(), getSourceRange(), clang::TemplateTypeParmDecl::getSourceRange(), clang::ClassTemplateSpecializationDecl::getSourceRange(), ReplaceWithClasstype(), and ReplaceWithInstancetype().
unsigned clang::TypeLoc::getFullDataSize | ( | ) | const [inline] |
Returns the size of the type source info data block.
Definition at line 139 of file TypeLoc.h.
References getFullDataSizeForType(), and getType().
Referenced by clang::Sema::ActOnBlockArguments(), clang::TemplateSpecializationTypeLoc::copy(), clang::ElaboratedTypeLoc::copy(), clang::DependentNameTypeLoc::copy(), clang::DependentTemplateSpecializationTypeLoc::copy(), clang::Sema::GetTypeSourceInfoForDeclarator(), initializeFullCopy(), clang::TypeLocBuilder::pushFullCopy(), clang::Sema::SubstFunctionDeclType(), clang::Sema::SubstType(), clang::TreeTransform< Derived >::TransformFunctionTypeParam(), and clang::TreeTransform< Derived >::TransformType().
unsigned TypeLoc::getFullDataSizeForType | ( | QualType | Ty | ) | [static] |
Returns the size of type source info data block for the given type.
Returns the size of the type source info data block.
Definition at line 74 of file TypeLoc.cpp.
References getLocalAlignmentForType(), getNextTypeLoc(), getType(), and isNull().
Referenced by clang::ASTContext::adjustExceptionSpec(), clang::ASTContext::CreateTypeSourceInfo(), and getFullDataSize().
unsigned TypeLoc::getLocalAlignmentForType | ( | QualType | Ty | ) | [static] |
Returns the alignment of type source info data block for the given type.
Returns the alignment of the type source info data block.
Definition at line 56 of file TypeLoc.cpp.
References clang::QualType::isNull(), and TypeLoc().
Referenced by getFullDataSizeForType(), and clang::QualifiedTypeLoc::getUnqualifiedLoc().
SourceRange clang::TypeLoc::getLocalSourceRange | ( | ) | const [inline] |
Get the local source range.
Reimplemented in clang::AtomicTypeLoc, clang::PackExpansionTypeLoc, clang::DependentTemplateSpecializationTypeLoc, clang::DependentNameTypeLoc, clang::ElaboratedTypeLoc, clang::UnaryTransformTypeLoc, clang::TypeOfExprTypeLoc, clang::TypeofLikeTypeLoc< Derived, TypeClass, LocalData >, clang::TypeofLikeTypeLoc< TypeOfExprTypeLoc, TypeOfExprType, TypeOfExprTypeLocInfo >, clang::TypeofLikeTypeLoc< TypeOfTypeLoc, TypeOfType, TypeOfTypeLocInfo >, clang::TemplateSpecializationTypeLoc, clang::ArrayTypeLoc, clang::FunctionTypeLoc, clang::MemberPointerTypeLoc, clang::PointerLikeTypeLoc< Derived, TypeClass, LocalData >, clang::PointerLikeTypeLoc< PointerTypeLoc, PointerType >, clang::PointerLikeTypeLoc< BlockPointerTypeLoc, BlockPointerType >, clang::PointerLikeTypeLoc< ReferenceTypeLoc, ReferenceType >, clang::PointerLikeTypeLoc< MemberPointerTypeLoc, MemberPointerType, MemberPointerLocInfo >, clang::PointerLikeTypeLoc< ObjCObjectPointerTypeLoc, ObjCObjectPointerType >, clang::AdjustedTypeLoc, clang::ParenTypeLoc, clang::ObjCInterfaceTypeLoc, clang::ObjCObjectTypeLoc, clang::AttributedTypeLoc, clang::BuiltinTypeLoc, clang::TypeSpecTypeLoc, and clang::QualifiedTypeLoc.
Definition at line 134 of file TypeLoc.h.
Referenced by clang::Sema::BuildBaseInitializer(), clang::Sema::BuildBuiltinOffsetOf(), clang::Sema::BuildDelegatingInitializer(), clang::Sema::BuildPseudoDestructorExpr(), clang::Sema::CheckFriendTypeDecl(), getBeginLoc(), getEndLoc(), and clang::PseudoDestructorTypeStorage::PseudoDestructorTypeStorage().
SourceLocation clang::TypeLoc::getLocEnd | ( | ) | const [inline] |
Definition at line 131 of file TypeLoc.h.
References getEndLoc().
Referenced by clang::Sema::CheckParameter(), clang::Sema::CreatePropertyDecl(), GetFullTypeForDeclarator(), and clang::Sema::SubstExceptionSpec().
SourceLocation clang::TypeLoc::getLocStart | ( | ) | const [inline] |
Definition at line 130 of file TypeLoc.h.
References getBeginLoc().
Referenced by clang::Sema::ActOnExplicitInstantiation(), clang::Sema::CheckFriendTypeDecl(), clang::Sema::CreatePropertyDecl(), GetFullTypeForDeclarator(), clang::CXXFunctionalCastExpr::getLocStart(), and clang::ASTImporter::Import().
TypeLoc clang::TypeLoc::getNextTypeLoc | ( | ) | const [inline] |
Get the next TypeLoc pointed by this TypeLoc, e.g for "int*" the TypeLoc is a PointerLoc and next TypeLoc is for "int".
Reimplemented in clang::ConcreteTypeLoc< ObjCObjectTypeLoc, ObjCInterfaceTypeLoc, ObjCInterfaceType, ObjCInterfaceLocInfo >, clang::ConcreteTypeLoc< UnqualTypeLoc, PackExpansionTypeLoc, PackExpansionType, PackExpansionTypeLocInfo >, clang::ConcreteTypeLoc< UnqualTypeLoc, AdjustedTypeLoc, AdjustedType, AdjustedLocInfo >, clang::ConcreteTypeLoc< UnqualTypeLoc, DependentNameTypeLoc, DependentNameType, DependentNameLocInfo >, clang::ConcreteTypeLoc< UnqualTypeLoc, TemplateSpecializationTypeLoc, TemplateSpecializationType, TemplateSpecializationLocInfo >, clang::ConcreteTypeLoc< UnqualTypeLoc, UnaryTransformTypeLoc, UnaryTransformType, UnaryTransformTypeLocInfo >, clang::ConcreteTypeLoc< UnqualTypeLoc, TypeOfExprTypeLoc, TypeOfExprType, TypeOfExprTypeLocInfo >, clang::ConcreteTypeLoc< UnqualTypeLoc, AttributedTypeLoc, AttributedType, AttributedLocInfo >, clang::ConcreteTypeLoc< UnqualTypeLoc, FunctionTypeLoc, FunctionType, FunctionLocInfo >, clang::ConcreteTypeLoc< UnqualTypeLoc, ParenTypeLoc, ParenType, ParenLocInfo >, clang::ConcreteTypeLoc< UnqualTypeLoc, DependentTemplateSpecializationTypeLoc, DependentTemplateSpecializationType, DependentTemplateSpecializationLocInfo >, clang::ConcreteTypeLoc< UnqualTypeLoc, ObjCObjectTypeLoc, ObjCObjectType, ObjCProtocolListLocInfo >, clang::ConcreteTypeLoc< UnqualTypeLoc, BuiltinTypeLoc, BuiltinType, BuiltinLocInfo >, clang::ConcreteTypeLoc< UnqualTypeLoc, PointerTypeLoc, PointerType, PointerLikeLocInfo >, clang::ConcreteTypeLoc< UnqualTypeLoc, AtomicTypeLoc, AtomicType, AtomicTypeLocInfo >, clang::ConcreteTypeLoc< UnqualTypeLoc, TypeOfTypeLoc, TypeOfType, TypeOfTypeLocInfo >, clang::ConcreteTypeLoc< UnqualTypeLoc, ArrayTypeLoc, ArrayType, ArrayLocInfo >, clang::ConcreteTypeLoc< UnqualTypeLoc, BlockPointerTypeLoc, BlockPointerType, PointerLikeLocInfo >, clang::ConcreteTypeLoc< UnqualTypeLoc, ObjCObjectPointerTypeLoc, ObjCObjectPointerType, PointerLikeLocInfo >, clang::ConcreteTypeLoc< UnqualTypeLoc, Derived, TypeClass, LocalData >, clang::ConcreteTypeLoc< UnqualTypeLoc, TypeSpecTypeLoc, Type, TypeSpecLocInfo >, clang::ConcreteTypeLoc< UnqualTypeLoc, MemberPointerTypeLoc, MemberPointerType, MemberPointerLocInfo >, clang::ConcreteTypeLoc< UnqualTypeLoc, ElaboratedTypeLoc, ElaboratedType, ElaboratedLocInfo >, clang::ConcreteTypeLoc< UnqualTypeLoc, ReferenceTypeLoc, ReferenceType, PointerLikeLocInfo >, and clang::QualifiedTypeLoc.
Definition at line 145 of file TypeLoc.h.
Referenced by clang::ASTWriter::AddTypeLoc(), getBeginLoc(), getEndLoc(), getFullDataSizeForType(), clang::Sema::GetTypeSourceInfoForDeclarator(), and clang::TypeLocBuilder::pushFullCopy().
void* clang::TypeLoc::getOpaqueData | ( | ) | const [inline] |
Get the pointer where source information is stored.
Definition at line 116 of file TypeLoc.h.
References Data.
Referenced by clang::NestedNameSpecifierLocBuilder::Extend(), clang::TypeLocBuilder::getTypeSourceInfo(), clang::Sema::GetTypeSourceInfoForDeclarator(), initializeFullCopy(), and clang::NestedNameSpecifierLocBuilder::MakeTrivial().
SourceRange clang::TypeLoc::getSourceRange | ( | ) | const [inline] |
Get the full source range.
Definition at line 127 of file TypeLoc.h.
References getBeginLoc(), and getEndLoc().
Referenced by clang::Sema::BuildClassMessage(), clang::Sema::BuildCStyleCastExpr(), clang::Sema::BuildCXXFunctionalCastExpr(), clang::Sema::BuildCXXNew(), clang::Sema::BuildObjCBridgedCast(), clang::Sema::BuildVAArgExpr(), clang::Sema::CheckBaseSpecifier(), CheckConstexprDeclStmt(), clang::Sema::CheckPackExpansion(), clang::Sema::CheckTemplateArgument(), findTemplateParameter(), clang::TypeOfExprTypeLoc::getLocalSourceRange(), clang::Sema::getPrintable(), getRangeOfTypeInNestedNameSpecifier(), clang::ObjCMessageExpr::getReceiverRange(), clang::FunctionDecl::getReturnTypeSourceRange(), getTypeRange(), clang::Sema::InstantiateMemInitializers(), and clang::TreeTransform< Derived >::TransformFunctionTypeParam().
QualType clang::TypeLoc::getType | ( | ) | const [inline] |
Get the type for which this source info wrapper provides information.
Definition at line 107 of file TypeLoc.h.
References clang::QualType::getFromOpaquePtr(), and Ty.
Referenced by clang::Sema::ActOnBlockArguments(), clang::Sema::ActOnFinishFunctionBody(), clang::ASTWriter::AddTypeLoc(), CheckConstexprDeclStmt(), clang::Sema::DeduceAutoType(), clang::Sema::DeduceFunctionTypeFromReturnExpr(), findTemplateParameter(), getFullDataSize(), getFullDataSizeForType(), clang::Sema::getTemplateArgumentPackExpansionPattern(), getTypeLocClass(), initializeFullCopy(), clang::Sema::SubstType(), clang::TreeTransform< Derived >::TransformFunctionProtoType(), clang::TreeTransform< Derived >::TransformNestedNameSpecifierLoc(), and clang::TreeTransform< Derived >::TransformReferenceType().
TypeLocClass clang::TypeLoc::getTypeLocClass | ( | ) | const [inline] |
Reimplemented in clang::UnqualTypeLoc.
Definition at line 90 of file TypeLoc.h.
References getType(), and clang::Type::getTypeClass().
Referenced by getBeginLoc(), getEndLoc(), clang::TypeLocBuilder::pushFullCopy(), clang::TreeTransform< Derived >::TransformType(), clang::RecursiveASTVisitor< Derived >::TraverseTypeLoc(), and clang::TypeLocVisitor< TypeLocReader >::Visit().
const Type* clang::TypeLoc::getTypePtr | ( | ) | const [inline] |
Reimplemented in clang::InheritingConcreteTypeLoc< ArrayTypeLoc, VariableArrayTypeLoc, VariableArrayType >, clang::InheritingConcreteTypeLoc< TypeSpecTypeLoc, TagTypeLoc, TagType >, clang::InheritingConcreteTypeLoc< TypeSpecTypeLoc, SubstTemplateTypeParmTypeLoc, SubstTemplateTypeParmType >, clang::InheritingConcreteTypeLoc< ArrayTypeLoc, ConstantArrayTypeLoc, ConstantArrayType >, clang::InheritingConcreteTypeLoc< ArrayTypeLoc, DependentSizedArrayTypeLoc, DependentSizedArrayType >, clang::InheritingConcreteTypeLoc< TypeSpecTypeLoc, TemplateTypeParmTypeLoc, TemplateTypeParmType >, clang::InheritingConcreteTypeLoc< TagTypeLoc, RecordTypeLoc, RecordType >, clang::InheritingConcreteTypeLoc< TypeSpecTypeLoc, InjectedClassNameTypeLoc, InjectedClassNameType >, clang::InheritingConcreteTypeLoc< VectorTypeLoc, ExtVectorTypeLoc, ExtVectorType >, clang::InheritingConcreteTypeLoc< TypeSpecTypeLoc, DependentSizedExtVectorTypeLoc, DependentSizedExtVectorType >, clang::InheritingConcreteTypeLoc< TagTypeLoc, EnumTypeLoc, EnumType >, clang::InheritingConcreteTypeLoc< TypeSpecTypeLoc, UnresolvedUsingTypeLoc, UnresolvedUsingType >, clang::InheritingConcreteTypeLoc< TypeSpecTypeLoc, SubstTemplateTypeParmPackTypeLoc, SubstTemplateTypeParmPackType >, clang::InheritingConcreteTypeLoc< AdjustedTypeLoc, DecayedTypeLoc, DecayedType >, clang::InheritingConcreteTypeLoc< TypeSpecTypeLoc, ComplexTypeLoc, ComplexType >, clang::InheritingConcreteTypeLoc< TypeSpecTypeLoc, VectorTypeLoc, VectorType >, clang::InheritingConcreteTypeLoc< ArrayTypeLoc, IncompleteArrayTypeLoc, IncompleteArrayType >, clang::InheritingConcreteTypeLoc< TypeSpecTypeLoc, AutoTypeLoc, AutoType >, clang::InheritingConcreteTypeLoc< FunctionTypeLoc, FunctionNoProtoTypeLoc, FunctionNoProtoType >, clang::InheritingConcreteTypeLoc< FunctionTypeLoc, FunctionProtoTypeLoc, FunctionProtoType >, clang::InheritingConcreteTypeLoc< TypeSpecTypeLoc, TypedefTypeLoc, TypedefType >, clang::InheritingConcreteTypeLoc< ReferenceTypeLoc, RValueReferenceTypeLoc, RValueReferenceType >, clang::InheritingConcreteTypeLoc< TypeSpecTypeLoc, DecltypeTypeLoc, DecltypeType >, clang::InheritingConcreteTypeLoc< ReferenceTypeLoc, LValueReferenceTypeLoc, LValueReferenceType >, clang::ConcreteTypeLoc< ObjCObjectTypeLoc, ObjCInterfaceTypeLoc, ObjCInterfaceType, ObjCInterfaceLocInfo >, clang::ConcreteTypeLoc< UnqualTypeLoc, PackExpansionTypeLoc, PackExpansionType, PackExpansionTypeLocInfo >, clang::ConcreteTypeLoc< UnqualTypeLoc, AdjustedTypeLoc, AdjustedType, AdjustedLocInfo >, clang::ConcreteTypeLoc< UnqualTypeLoc, DependentNameTypeLoc, DependentNameType, DependentNameLocInfo >, clang::ConcreteTypeLoc< UnqualTypeLoc, TemplateSpecializationTypeLoc, TemplateSpecializationType, TemplateSpecializationLocInfo >, clang::ConcreteTypeLoc< UnqualTypeLoc, UnaryTransformTypeLoc, UnaryTransformType, UnaryTransformTypeLocInfo >, clang::ConcreteTypeLoc< UnqualTypeLoc, TypeOfExprTypeLoc, TypeOfExprType, TypeOfExprTypeLocInfo >, clang::ConcreteTypeLoc< UnqualTypeLoc, AttributedTypeLoc, AttributedType, AttributedLocInfo >, clang::ConcreteTypeLoc< UnqualTypeLoc, FunctionTypeLoc, FunctionType, FunctionLocInfo >, clang::ConcreteTypeLoc< UnqualTypeLoc, ParenTypeLoc, ParenType, ParenLocInfo >, clang::ConcreteTypeLoc< UnqualTypeLoc, DependentTemplateSpecializationTypeLoc, DependentTemplateSpecializationType, DependentTemplateSpecializationLocInfo >, clang::ConcreteTypeLoc< UnqualTypeLoc, ObjCObjectTypeLoc, ObjCObjectType, ObjCProtocolListLocInfo >, clang::ConcreteTypeLoc< UnqualTypeLoc, BuiltinTypeLoc, BuiltinType, BuiltinLocInfo >, clang::ConcreteTypeLoc< UnqualTypeLoc, PointerTypeLoc, PointerType, PointerLikeLocInfo >, clang::ConcreteTypeLoc< UnqualTypeLoc, AtomicTypeLoc, AtomicType, AtomicTypeLocInfo >, clang::ConcreteTypeLoc< UnqualTypeLoc, TypeOfTypeLoc, TypeOfType, TypeOfTypeLocInfo >, clang::ConcreteTypeLoc< UnqualTypeLoc, ArrayTypeLoc, ArrayType, ArrayLocInfo >, clang::ConcreteTypeLoc< UnqualTypeLoc, BlockPointerTypeLoc, BlockPointerType, PointerLikeLocInfo >, clang::ConcreteTypeLoc< UnqualTypeLoc, ObjCObjectPointerTypeLoc, ObjCObjectPointerType, PointerLikeLocInfo >, clang::ConcreteTypeLoc< UnqualTypeLoc, Derived, TypeClass, LocalData >, clang::ConcreteTypeLoc< UnqualTypeLoc, TypeSpecTypeLoc, Type, TypeSpecLocInfo >, clang::ConcreteTypeLoc< UnqualTypeLoc, MemberPointerTypeLoc, MemberPointerType, MemberPointerLocInfo >, clang::ConcreteTypeLoc< UnqualTypeLoc, ElaboratedTypeLoc, ElaboratedType, ElaboratedLocInfo >, clang::ConcreteTypeLoc< UnqualTypeLoc, ReferenceTypeLoc, ReferenceType, PointerLikeLocInfo >, and clang::UnqualTypeLoc.
Definition at line 111 of file TypeLoc.h.
References clang::QualType::getFromOpaquePtr(), clang::QualType::getTypePtr(), and Ty.
Referenced by clang::NestedNameSpecifierLocBuilder::Extend(), and clang::QualifiedTypeLoc::getUnqualifiedLoc().
UnqualTypeLoc clang::TypeLoc::getUnqualifiedLoc | ( | ) | const [inline] |
Skips past any qualifiers, if this is qualified.
Reimplemented in clang::QualifiedTypeLoc.
Definition at line 278 of file TypeLoc.h.
References getUnqualifiedLoc().
Referenced by clang::comments::DeclInfo::fill(), FormatFunctionParameter(), clang::Sema::GetTypeSourceInfoForDeclarator(), getUnqualifiedLoc(), and clang::RecursiveASTVisitor< FindSuperCallVisitor >::WalkUpFromUnqualTypeLoc().
TypeLoc clang::TypeLoc::IgnoreParens | ( | ) | const [inline] |
Definition at line 974 of file TypeLoc.h.
Referenced by clang::Sema::ActOnBlockArguments(), clang::Sema::CheckEquivalentExceptionSpec(), clang::Sema::CheckFunctionDeclaration(), clang::comments::DeclInfo::fill(), FormatFunctionParameter(), clang::Sema::getReturnTypeLoc(), clang::FunctionDecl::getReturnTypeSourceRange(), NeedsInstantiationAsFunctionType(), clang::Sema::SubstFunctionDeclType(), and clang::TemplateDeclInstantiator::SubstFunctionType().
void clang::TypeLoc::initialize | ( | ASTContext & | Context, |
SourceLocation | Loc | ||
) | const [inline] |
Initializes this to state that every location in this type is the given location.
This method exists to provide a simple transition for code that relies on location-less types.
Definition at line 159 of file TypeLoc.h.
Referenced by clang::ASTContext::getTrivialTypeSourceInfo().
void clang::TypeLoc::initializeFullCopy | ( | TypeLoc | Other | ) | const [inline] |
Initializes this by copying its information from another TypeLoc of the same type.
Definition at line 165 of file TypeLoc.h.
References getFullDataSize(), getOpaqueData(), and getType().
Referenced by clang::Sema::ActOnBlockArguments(), and FixInvalidVariablyModifiedTypeLoc().
void clang::TypeLoc::initializeFullCopy | ( | TypeLoc | Other, |
unsigned | Size | ||
) | const [inline] |
Initializes this by copying its information from another TypeLoc of the same type. The given size must be the full data size.
Definition at line 174 of file TypeLoc.h.
References getFullDataSize(), getOpaqueData(), and getType().
bool clang::TypeLoc::isNull | ( | ) | const [inline] |
Definition at line 95 of file TypeLoc.h.
References Ty.
Referenced by clang::ASTWriter::AddTypeLoc(), getBeginLoc(), getFullDataSizeForType(), clang::ASTReader::GetTypeSourceInfo(), and clang::RecursiveASTVisitor< Derived >::TraverseTypeLoc().
LLVM_EXPLICIT clang::TypeLoc::operator bool | ( | ) | const [inline] |
void* clang::TypeLoc::Data [protected] |
Definition at line 45 of file TypeLoc.h.
Referenced by clang::TemplateSpecializationTypeLoc::copy(), clang::ElaboratedTypeLoc::copy(), clang::DependentNameTypeLoc::copy(), clang::DependentTemplateSpecializationTypeLoc::copy(), getOpaqueData(), and clang::QualifiedTypeLoc::getUnqualifiedLoc().
const void* clang::TypeLoc::Ty [protected] |
Definition at line 44 of file TypeLoc.h.
Referenced by getType(), getTypePtr(), clang::UnqualTypeLoc::getTypePtr(), isNull(), and operator bool().