clang
17.0.0git
|
A metaprogramming base class for TypeLoc classes which correspond to a particular Type subclass. More...
#include "clang/AST/TypeLoc.h"
Classes | |
struct | HasNoInnerType |
Public Member Functions | |
unsigned | getLocalDataAlignment () const |
unsigned | getLocalDataSize () const |
void | copyLocal (Derived other) |
TypeLoc | getNextTypeLoc () const |
const TypeClass * | getTypePtr () const |
Protected Member Functions | |
unsigned | getExtraLocalDataSize () const |
unsigned | getExtraLocalDataAlignment () const |
LocalData * | getLocalData () const |
void * | getExtraLocalData () const |
Gets a pointer past the Info structure; useful for classes with local data that can't be captured in the Info (e.g. More... | |
void * | getNonLocalData () const |
HasNoInnerType | getInnerType () const |
TypeLoc | getInnerTypeLoc () const |
Friends | |
class | TypeLoc |
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.
Base | a class from which to derive |
Derived | the class deriving from this one |
TypeClass | the concrete Type subclass associated with this location type |
LocalData | the structure type of local location data for this type |
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.
|
inline |
|
inlineprotected |
Gets a pointer past the Info structure; useful for classes with local data that can't be captured in the Info (e.g.
because it's of variable size).
Definition at line 429 of file TypeLoc.h.
Referenced by clang::ConcreteTypeLoc< UnqualTypeLoc, Derived, TypeClass, PointerLikeLocInfo >::copyLocal().
|
inlineprotected |
Definition at line 418 of file TypeLoc.h.
Referenced by clang::ConcreteTypeLoc< UnqualTypeLoc, Derived, TypeClass, PointerLikeLocInfo >::getLocalDataAlignment().
|
inlineprotected |
Definition at line 414 of file TypeLoc.h.
Referenced by clang::ConcreteTypeLoc< UnqualTypeLoc, Derived, TypeClass, PointerLikeLocInfo >::copyLocal().
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
Definition at line 422 of file TypeLoc.h.
Referenced by clang::ConcreteTypeLoc< UnqualTypeLoc, Derived, TypeClass, PointerLikeLocInfo >::copyLocal().
|
inline |
Definition at line 378 of file TypeLoc.h.
Referenced by clang::ElaboratedTypeLoc::getLocalDataAlignment().
|
inline |
Definition at line 383 of file TypeLoc.h.
Referenced by clang::ConcreteTypeLoc< UnqualTypeLoc, Derived, TypeClass, PointerLikeLocInfo >::copyLocal(), and clang::ElaboratedTypeLoc::getLocalDataSize().
|
inline |
Definition at line 405 of file TypeLoc.h.
Referenced by clang::ConcreteTypeLoc< UnqualTypeLoc, Derived, TypeClass, PointerLikeLocInfo >::getNextTypeLoc().
|
inlineprotected |
Definition at line 436 of file TypeLoc.h.
Referenced by clang::ConcreteTypeLoc< UnqualTypeLoc, Derived, TypeClass, PointerLikeLocInfo >::getInnerTypeLoc().
|
inline |
Definition at line 409 of file TypeLoc.h.
Referenced by clang::comments::DeclInfo::fill(), fillAttributedTypeLoc(), clang::Sema::getTemplateArgumentPackExpansionPattern(), isEnableIf(), clang::TreeTransform< EnsureImmediateInvocationInDefaultArgs >::TransformDependentTemplateSpecializationType(), clang::TreeTransform< EnsureImmediateInvocationInDefaultArgs >::TransformFunctionTypeParams(), clang::TreeTransform< EnsureImmediateInvocationInDefaultArgs >::TransformReferenceType(), and clang::TreeTransform< EnsureImmediateInvocationInDefaultArgs >::TransformTemplateSpecializationType().
|
friend |
Definition at line 362 of file TypeLoc.h.
Referenced by clang::ConcreteTypeLoc< UnqualTypeLoc, Derived, TypeClass, PointerLikeLocInfo >::getInnerTypeLoc().