clang
3.7.0
|
#include <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 |
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 391 of file TypeLoc.h.
Referenced by clang::ConcreteTypeLoc< UnqualTypeLoc, ReferenceTypeLoc, ReferenceType, PointerLikeLocInfo >::copyLocal().
|
inlineprotected |
Definition at line 380 of file TypeLoc.h.
Referenced by clang::ConcreteTypeLoc< UnqualTypeLoc, ReferenceTypeLoc, ReferenceType, PointerLikeLocInfo >::getLocalDataAlignment().
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
Definition at line 384 of file TypeLoc.h.
Referenced by clang::ConcreteTypeLoc< UnqualTypeLoc, ReferenceTypeLoc, ReferenceType, PointerLikeLocInfo >::copyLocal().
|
inline |
|
inline |
Definition at line 345 of file TypeLoc.h.
Referenced by clang::ConcreteTypeLoc< UnqualTypeLoc, ReferenceTypeLoc, ReferenceType, PointerLikeLocInfo >::copyLocal().
|
inline |
Definition at line 367 of file TypeLoc.h.
Referenced by clang::ConcreteTypeLoc< UnqualTypeLoc, ReferenceTypeLoc, ReferenceType, PointerLikeLocInfo >::getNextTypeLoc(), clang::ASTReader::GetTypeSourceInfo(), and clang::Sema::GetTypeSourceInfoForDeclarator().
|
inlineprotected |
Definition at line 398 of file TypeLoc.h.
Referenced by clang::ConcreteTypeLoc< UnqualTypeLoc, ReferenceTypeLoc, ReferenceType, PointerLikeLocInfo >::getInnerTypeLoc().
|
inline |
Definition at line 371 of file TypeLoc.h.
Referenced by FormatFunctionParameter(), clang::Sema::getTemplateArgumentPackExpansionPattern(), isEnableIf(), clang::TreeTransform< Derived >::TransformDependentTemplateSpecializationType(), clang::TreeTransform< Derived >::TransformFunctionTypeParams(), clang::TreeTransform< Derived >::TransformReferenceType(), and clang::TreeTransform< Derived >::TransformTemplateSpecializationType().
|
friend |
Definition at line 330 of file TypeLoc.h.
Referenced by clang::ConcreteTypeLoc< UnqualTypeLoc, ReferenceTypeLoc, ReferenceType, PointerLikeLocInfo >::getInnerTypeLoc().