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. | |
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 |
Definition at line 396 of file TypeLoc.h.
References clang::ConcreteTypeLoc< Base, Derived, TypeClass, LocalData >::getExtraLocalData(), clang::ConcreteTypeLoc< Base, Derived, TypeClass, LocalData >::getExtraLocalDataSize(), clang::ConcreteTypeLoc< Base, Derived, TypeClass, LocalData >::getLocalData(), clang::ConcreteTypeLoc< Base, Derived, TypeClass, LocalData >::getLocalDataSize(), and memcpy().
|
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 434 of file TypeLoc.h.
Referenced by clang::ConcreteTypeLoc< Base, Derived, TypeClass, LocalData >::copyLocal().
|
inlineprotected |
Definition at line 423 of file TypeLoc.h.
Referenced by clang::ConcreteTypeLoc< Base, Derived, TypeClass, LocalData >::getLocalDataAlignment().
|
inlineprotected |
Definition at line 419 of file TypeLoc.h.
Referenced by clang::ConcreteTypeLoc< Base, Derived, TypeClass, LocalData >::copyLocal().
|
inlineprotected |
Definition at line 449 of file TypeLoc.h.
Referenced by clang::ConcreteTypeLoc< Base, Derived, TypeClass, LocalData >::getInnerTypeLoc(), and clang::ConcreteTypeLoc< Base, Derived, TypeClass, LocalData >::getNextTypeLoc().
|
inlineprotected |
Definition at line 451 of file TypeLoc.h.
References clang::ConcreteTypeLoc< Base, Derived, TypeClass, LocalData >::getInnerType(), clang::ConcreteTypeLoc< Base, Derived, TypeClass, LocalData >::getNonLocalData(), and clang::ConcreteTypeLoc< Base, Derived, TypeClass, LocalData >::TypeLoc.
Referenced by clang::PointerLikeTypeLoc< Derived, TypeClass, LocalData >::getPointeeLoc().
|
inlineprotected |
Definition at line 427 of file TypeLoc.h.
Referenced by clang::ConcreteTypeLoc< Base, Derived, TypeClass, LocalData >::copyLocal(), clang::MemberPointerTypeLoc::getClassTInfo(), clang::TypeofLikeTypeLoc< Derived, TypeClass, LocalData >::getLParenLoc(), clang::TypeofLikeTypeLoc< Derived, TypeClass, LocalData >::getRParenLoc(), clang::PointerLikeTypeLoc< Derived, TypeClass, LocalData >::getSigilLoc(), clang::TypeofLikeTypeLoc< Derived, TypeClass, LocalData >::getTypeofLoc(), clang::TypeOfTypeLoc::getUnmodifiedTInfo(), clang::TypeOfTypeLoc::initializeLocal(), clang::MemberPointerTypeLoc::setClassTInfo(), clang::TypeofLikeTypeLoc< Derived, TypeClass, LocalData >::setLParenLoc(), clang::TypeofLikeTypeLoc< Derived, TypeClass, LocalData >::setRParenLoc(), clang::PointerLikeTypeLoc< Derived, TypeClass, LocalData >::setSigilLoc(), clang::TypeofLikeTypeLoc< Derived, TypeClass, LocalData >::setTypeofLoc(), and clang::TypeOfTypeLoc::setUnmodifiedTInfo().
|
inline |
Definition at line 383 of file TypeLoc.h.
References clang::ConcreteTypeLoc< Base, Derived, TypeClass, LocalData >::getExtraLocalDataAlignment().
Referenced by clang::ElaboratedTypeLoc::getLocalDataAlignment().
|
inline |
Definition at line 388 of file TypeLoc.h.
Referenced by clang::ConcreteTypeLoc< Base, Derived, TypeClass, LocalData >::copyLocal(), and clang::ElaboratedTypeLoc::getLocalDataSize().
|
inline |
Definition at line 410 of file TypeLoc.h.
References clang::ConcreteTypeLoc< Base, Derived, TypeClass, LocalData >::getInnerType(), and clang::ConcreteTypeLoc< Base, Derived, TypeClass, LocalData >::getNextTypeLoc().
Referenced by clang::ConcreteTypeLoc< Base, Derived, TypeClass, LocalData >::getNextTypeLoc(), and GetTypeSourceInfoForDeclarator().
|
inlineprotected |
Definition at line 441 of file TypeLoc.h.
Referenced by clang::ConcreteTypeLoc< Base, Derived, TypeClass, LocalData >::getInnerTypeLoc().
|
inline |
Definition at line 414 of file TypeLoc.h.
Referenced by AddObjCProperties(), clang::comments::DeclInfo::fill(), fillAttributedTypeLoc(), clang::MemberPointerTypeLoc::getClass(), clang::PointerLikeTypeLoc< Derived, TypeClass, LocalData >::getInnerType(), clang::ReferenceTypeLoc::getInnerType(), clang::Sema::getTemplateArgumentPackExpansionPattern(), GetTypeSourceInfoForDeclarator(), clang::TypeOfExprTypeLoc::getUnderlyingExpr(), clang::TypeOfTypeLoc::getUnmodifiedType(), isEnableIf(), clang::TreeTransform< Derived >::TransformDependentTemplateSpecializationType(), clang::TreeTransform< Derived >::TransformFunctionTypeParams(), clang::TreeTransform< Derived >::TransformReferenceType(), and clang::TreeTransform< Derived >::TransformTemplateSpecializationType().
|
friend |
Definition at line 367 of file TypeLoc.h.
Referenced by clang::ConcreteTypeLoc< Base, Derived, TypeClass, LocalData >::getInnerTypeLoc().