class AdjustedTypeLoc
Declaration
class AdjustedTypeLoc : public ConcreteTypeLoc { /* full declaration omitted */ };
Description
A metaprogramming base class for TypeLoc classes which correspond to a particular Type subclass. It is accepted for a single TypeLoc class to correspond to multiple Type classes. TypeLocs with non-constant amounts of local data should override getExtraLocalDataSize(); getExtraLocalData() will then point to this extra memory. TypeLocs with an inner type should define QualType getInnerType() const and getInnerTypeLoc() will then point to this inner type's location data. A word about hierarchies: this template is not designed to be derived from multiple times in a hierarchy. It is also not designed to be used for classes where subtypes might provide different amounts of source information. It should be subclassed only at the deepest portion of the hierarchy where all children have identical source information; if that's an abstract type, then further descendents should inherit from InheritingConcreteTypeLoc instead.
Declared at: clang/include/clang/AST/TypeLoc.h:1191
Inherits from: ConcreteTypeLoc
Method Overview
- public clang::QualType getInnerType() const
- public unsigned int getLocalDataSize() const
- public clang::SourceRange getLocalSourceRange() const
- public clang::TypeLoc getOriginalLoc() const
- public void initializeLocal(clang::ASTContext & Context, clang::SourceLocation Loc)
Methods
¶clang::QualType getInnerType() const
clang::QualType getInnerType() const
Declared at: clang/include/clang/AST/TypeLoc.h:1202
¶unsigned int getLocalDataSize() const
unsigned int getLocalDataSize() const
Declared at: clang/include/clang/AST/TypeLoc.h:1210
¶clang::SourceRange getLocalSourceRange() const
clang::SourceRange getLocalSourceRange() const
Declared at: clang/include/clang/AST/TypeLoc.h:1208
¶clang::TypeLoc getOriginalLoc() const
clang::TypeLoc getOriginalLoc() const
Declared at: clang/include/clang/AST/TypeLoc.h:1194
¶void initializeLocal(clang::ASTContext& Context,
clang::SourceLocation Loc)
void initializeLocal(clang::ASTContext& Context,
clang::SourceLocation Loc)
Declared at: clang/include/clang/AST/TypeLoc.h:1198
Parameters
- clang::ASTContext& Context
- clang::SourceLocation Loc