clang 20.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 404 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 442 of file TypeLoc.h.
Referenced by clang::ConcreteTypeLoc< Base, Derived, TypeClass, LocalData >::copyLocal().
|
inlineprotected |
Definition at line 431 of file TypeLoc.h.
Referenced by clang::ConcreteTypeLoc< Base, Derived, TypeClass, LocalData >::getLocalDataAlignment().
|
inlineprotected |
Definition at line 427 of file TypeLoc.h.
Referenced by clang::ConcreteTypeLoc< Base, Derived, TypeClass, LocalData >::copyLocal().
|
inlineprotected |
Definition at line 457 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 459 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 435 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 390 of file TypeLoc.h.
References clang::ConcreteTypeLoc< Base, Derived, TypeClass, LocalData >::getExtraLocalDataAlignment().
Referenced by clang::ElaboratedTypeLoc::getLocalDataAlignment(), and clang::ConcreteTypeLoc< Base, Derived, TypeClass, LocalData >::getLocalDataSize().
|
inline |
Definition at line 395 of file TypeLoc.h.
References clang::ConcreteTypeLoc< Base, Derived, TypeClass, LocalData >::getLocalDataAlignment().
Referenced by clang::ConcreteTypeLoc< Base, Derived, TypeClass, LocalData >::copyLocal(), and clang::ElaboratedTypeLoc::getLocalDataSize().
|
inline |
Definition at line 418 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 449 of file TypeLoc.h.
Referenced by clang::ConcreteTypeLoc< Base, Derived, TypeClass, LocalData >::getInnerTypeLoc().
|
inline |
Definition at line 422 of file TypeLoc.h.
Referenced by clang::Sema::ActOnTypeName(), AddObjCProperties(), clang::comments::DeclInfo::fill(), fillAttributedTypeLoc(), fillHLSLAttributedResourceTypeLoc(), 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 374 of file TypeLoc.h.
Referenced by clang::ConcreteTypeLoc< Base, Derived, TypeClass, LocalData >::getInnerTypeLoc().