clang API Documentation

Public Types | Public Member Functions | Friends
clang::TypeSpecTypeLoc Class Reference

A reasonable base class for TypeLocs that correspond to types that are written as a type-specifier. More...

#include <TypeLoc.h>

Inheritance diagram for clang::TypeSpecTypeLoc:
Inheritance graph
[legend]
Collaboration diagram for clang::TypeSpecTypeLoc:
Collaboration graph
[legend]

List of all members.

Public Types

enum  { LocalDataSize = sizeof(TypeSpecLocInfo), LocalDataAlignment = llvm::AlignOf<TypeSpecLocInfo>::Alignment }

Public Member Functions

SourceLocation getNameLoc () const
void setNameLoc (SourceLocation Loc)
SourceRange getLocalSourceRange () const
 Get the local source range.
void initializeLocal (ASTContext &Context, SourceLocation Loc)

Friends

class TypeLoc

Detailed Description

A reasonable base class for TypeLocs that correspond to types that are written as a type-specifier.

Definition at line 452 of file TypeLoc.h.


Member Enumeration Documentation

anonymous enum
Enumerator:
LocalDataSize 
LocalDataAlignment 

Definition at line 457 of file TypeLoc.h.


Member Function Documentation

Get the local source range.

Reimplemented from clang::TypeLoc.

Definition at line 466 of file TypeLoc.h.

References getNameLoc().

void clang::TypeSpecTypeLoc::initializeLocal ( ASTContext Context,
SourceLocation  Loc 
) [inline]

Definition at line 469 of file TypeLoc.h.

References setNameLoc().


Friends And Related Function Documentation

friend class TypeLoc [friend]

Reimplemented from clang::ConcreteTypeLoc< UnqualTypeLoc, TypeSpecTypeLoc, Type, TypeSpecLocInfo >.

Reimplemented in clang::InheritingConcreteTypeLoc< TypeSpecTypeLoc, TagTypeLoc, TagType >, clang::InheritingConcreteTypeLoc< TypeSpecTypeLoc, SubstTemplateTypeParmTypeLoc, SubstTemplateTypeParmType >, 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< TypeSpecTypeLoc, ComplexTypeLoc, ComplexType >, clang::InheritingConcreteTypeLoc< TypeSpecTypeLoc, VectorTypeLoc, VectorType >, clang::InheritingConcreteTypeLoc< TypeSpecTypeLoc, AutoTypeLoc, AutoType >, clang::InheritingConcreteTypeLoc< TypeSpecTypeLoc, TypedefTypeLoc, TypedefType >, and clang::InheritingConcreteTypeLoc< TypeSpecTypeLoc, DecltypeTypeLoc, DecltypeType >.

Definition at line 474 of file TypeLoc.h.


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