clang API Documentation
A reasonable base class for TypeLocs that correspond to types that are written as a type-specifier. More...
#include <TypeLoc.h>
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 |
A reasonable base class for TypeLocs that correspond to types that are written as a type-specifier.
anonymous enum |
SourceRange clang::TypeSpecTypeLoc::getLocalSourceRange | ( | ) | const [inline] |
Get the local source range.
Reimplemented from clang::TypeLoc.
Definition at line 466 of file TypeLoc.h.
References getNameLoc().
SourceLocation clang::TypeSpecTypeLoc::getNameLoc | ( | ) | const [inline] |
Definition at line 460 of file TypeLoc.h.
References clang::ConcreteTypeLoc< UnqualTypeLoc, TypeSpecTypeLoc, Type, TypeSpecLocInfo >::getLocalData(), and clang::TypeSpecLocInfo::NameLoc.
Referenced by getLocalSourceRange(), clang::ObjCInterfaceTypeLoc::getLocalSourceRange(), clang::DependentNameTypeLoc::getLocalSourceRange(), and clang::TagTypeLoc::isDefinition().
void clang::TypeSpecTypeLoc::initializeLocal | ( | ASTContext & | Context, |
SourceLocation | Loc | ||
) | [inline] |
Definition at line 469 of file TypeLoc.h.
References setNameLoc().
void clang::TypeSpecTypeLoc::setNameLoc | ( | SourceLocation | Loc | ) | [inline] |
Definition at line 463 of file TypeLoc.h.
References clang::ConcreteTypeLoc< UnqualTypeLoc, TypeSpecTypeLoc, Type, TypeSpecLocInfo >::getLocalData(), and clang::TypeSpecLocInfo::NameLoc.
Referenced by clang::Sema::ActOnCXXNestedNameSpecifierDecltype(), clang::Sema::ActOnPseudoDestructorExpr(), clang::Sema::BuildCXXNestedNameSpecifier(), buildNestedType(), clang::Sema::BuildQualifiedDeclarationNameExpr(), clang::Sema::getTypeName(), initializeLocal(), clang::ObjCInterfaceTypeLoc::initializeLocal(), and clang::Sema::performLambdaInitCaptureInitialization().
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 >.