clang
10.0.0git
|
#include "clang/AST/TypeLoc.h"
Public Member Functions | |
AutoTypeKeyword | getAutoKeyword () const |
bool | isConstrained () const |
const NestedNameSpecifierLoc & | getNestedNameSpecifierLoc () const |
void | setNestedNameSpecifierLoc (NestedNameSpecifierLoc NNS) |
SourceLocation | getTemplateKWLoc () const |
void | setTemplateKWLoc (SourceLocation Loc) |
SourceLocation | getConceptNameLoc () const |
void | setConceptNameLoc (SourceLocation Loc) |
NamedDecl * | getFoundDecl () const |
void | setFoundDecl (NamedDecl *D) |
ConceptDecl * | getNamedConcept () const |
DeclarationNameInfo | getConceptNameInfo () const |
bool | hasExplicitTemplateArgs () const |
SourceLocation | getLAngleLoc () const |
void | setLAngleLoc (SourceLocation Loc) |
SourceLocation | getRAngleLoc () const |
void | setRAngleLoc (SourceLocation Loc) |
unsigned | getNumArgs () const |
void | setArgLocInfo (unsigned i, TemplateArgumentLocInfo AI) |
TemplateArgumentLocInfo | getArgLocInfo (unsigned i) const |
TemplateArgumentLoc | getArgLoc (unsigned i) const |
SourceRange | getLocalSourceRange () const |
void | copy (AutoTypeLoc Loc) |
void | initializeLocal (ASTContext &Context, SourceLocation Loc) |
unsigned | getExtraLocalDataSize () const |
unsigned | getExtraLocalDataAlignment () const |
![]() | |
unsigned | getLocalDataAlignment () const |
unsigned | getLocalDataSize () const |
void | copyLocal (AutoTypeLoc other) |
TypeLoc | getNextTypeLoc () const |
const AutoType * | getTypePtr () const |
![]() | |
const DeducedType * | getTypePtr () const |
![]() | |
SourceLocation | getNameLoc () const |
void | setNameLoc (SourceLocation Loc) |
SourceRange | getLocalSourceRange () const |
void | initializeLocal (ASTContext &Context, SourceLocation Loc) |
![]() | |
unsigned | getLocalDataAlignment () const |
unsigned | getLocalDataSize () const |
void | copyLocal (TypeSpecTypeLoc other) |
TypeLoc | getNextTypeLoc () const |
const Type * | getTypePtr () const |
![]() | |
UnqualTypeLoc ()=default | |
UnqualTypeLoc (const Type *Ty, void *Data) | |
const Type * | getTypePtr () const |
TypeLocClass | getTypeLocClass () const |
![]() | |
TypeLoc ()=default | |
TypeLoc (QualType ty, void *opaqueData) | |
TypeLoc (const Type *ty, void *opaqueData) | |
template<typename T > | |
T | castAs () const |
Convert to the specified TypeLoc type, asserting that this TypeLoc is of the desired type. More... | |
template<typename T > | |
T | getAs () const |
Convert to the specified TypeLoc type, returning a null TypeLoc if this TypeLoc is not of the desired type. More... | |
template<typename T > | |
T | getAsAdjusted () const |
Convert to the specified TypeLoc type, returning a null TypeLoc if this TypeLoc is not of the desired type. More... | |
TypeLocClass | getTypeLocClass () const |
bool | isNull () const |
operator bool () const | |
QualType | getType () const |
Get the type for which this source info wrapper provides information. More... | |
const Type * | getTypePtr () const |
void * | getOpaqueData () const |
Get the pointer where source information is stored. More... | |
SourceLocation | getBeginLoc () const |
Get the begin source location. More... | |
SourceLocation | getEndLoc () const |
Get the end source location. More... | |
SourceRange | getSourceRange () const LLVM_READONLY |
Get the full source range. More... | |
SourceRange | getLocalSourceRange () const |
Get the local source range. More... | |
unsigned | getFullDataSize () const |
Returns the size of the type source info data block. More... | |
TypeLoc | getNextTypeLoc () const |
Get the next TypeLoc pointed by this TypeLoc, e.g for "int*" the TypeLoc is a PointerLoc and next TypeLoc is for "int". More... | |
UnqualTypeLoc | getUnqualifiedLoc () const |
Skips past any qualifiers, if this is qualified. More... | |
TypeLoc | IgnoreParens () const |
TypeLoc | findExplicitQualifierLoc () const |
Find a type with the location of an explicit type qualifier. More... | |
AutoTypeLoc | getContainedAutoTypeLoc () const |
Get the typeloc of an AutoType whose type will be deduced for a variable with an initializer of this type. More... | |
void | initialize (ASTContext &Context, SourceLocation Loc) const |
Initializes this to state that every location in this type is the given location. More... | |
void | initializeFullCopy (TypeLoc Other) |
Initializes this by copying its information from another TypeLoc of the same type. More... | |
void | initializeFullCopy (TypeLoc Other, unsigned Size) |
Initializes this by copying its information from another TypeLoc of the same type. More... | |
void | copy (TypeLoc other) |
Copies the other type loc into this one. More... | |
SourceLocation | findNullabilityLoc () const |
Find the location of the nullability specifier (__nonnull, __nullable, or __null_unspecifier), if there is one. More... | |
Additional Inherited Members | |
![]() | |
enum | { LocalDataSize = sizeof(TypeSpecLocInfo), LocalDataAlignment = alignof(TypeSpecLocInfo) } |
![]() | |
enum | TypeLocClass { Qualified } |
The kinds of TypeLocs. More... | |
![]() | |
static unsigned | getFullDataSizeForType (QualType Ty) |
Returns the size of type source info data block for the given type. More... | |
static unsigned | getLocalAlignmentForType (QualType Ty) |
Returns the alignment of type source info data block for the given type. More... | |
![]() | |
unsigned | getExtraLocalDataSize () const |
unsigned | getExtraLocalDataAlignment () const |
AutoTypeLocInfo * | 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 |
![]() | |
unsigned | getExtraLocalDataSize () const |
unsigned | getExtraLocalDataAlignment () const |
TypeSpecLocInfo * | 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 |
![]() | |
const void * | Ty = nullptr |
void * | Data = nullptr |
|
inline |
Definition at line 2044 of file TypeLoc.h.
References clang::TypeLoc::Data, clang::TypeLoc::getFullDataSize(), and memcpy().
Referenced by clang::Sema::DeduceTemplateArguments().
|
inline |
Definition at line 2026 of file TypeLoc.h.
References clang::TypeLoc::getTypePtr().
Referenced by clang::Sema::AttachTypeConstraint(), CheckDeducedPlaceholderConstraints(), and CopyTypeConstraintFromAutoType().
|
inline |
|
inline |
Definition at line 1948 of file TypeLoc.h.
References clang::TypeLoc::getTypePtr().
Referenced by clang::Sema::AttachTypeConstraint().
DeclarationNameInfo AutoTypeLoc::getConceptNameInfo | ( | ) | const |
Definition at line 594 of file TypeLoc.cpp.
Referenced by clang::Sema::AttachTypeConstraint(), and CopyTypeConstraintFromAutoType().
|
inline |
Definition at line 1972 of file TypeLoc.h.
Referenced by CheckDeducedPlaceholderConstraints().
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 1998 of file TypeLoc.h.
Referenced by clang::Sema::AttachTypeConstraint(), CheckDeducedPlaceholderConstraints(), and CopyTypeConstraintFromAutoType().
|
inline |
Definition at line 2031 of file TypeLoc.h.
Referenced by CheckDeducedPlaceholderConstraints().
|
inline |
Definition at line 1988 of file TypeLoc.h.
References clang::TypeLoc::getTypePtr().
Referenced by clang::Sema::AttachTypeConstraint(), and CopyTypeConstraintFromAutoType().
|
inline |
Definition at line 1956 of file TypeLoc.h.
Referenced by clang::Sema::AttachTypeConstraint(), and CopyTypeConstraintFromAutoType().
|
inline |
Definition at line 2014 of file TypeLoc.h.
References clang::TypeLoc::getTypePtr().
Referenced by clang::Sema::AttachTypeConstraint(), CheckDeducedPlaceholderConstraints(), CopyTypeConstraintFromAutoType(), and clang::TypeLocReader::VisitFunctionTypeLoc().
|
inline |
Definition at line 2006 of file TypeLoc.h.
Referenced by clang::Sema::AttachTypeConstraint(), CheckDeducedPlaceholderConstraints(), and CopyTypeConstraintFromAutoType().
|
inline |
|
inline |
Definition at line 1994 of file TypeLoc.h.
Referenced by CheckDeducedPlaceholderConstraints(), and CopyTypeConstraintFromAutoType().
void AutoTypeLoc::initializeLocal | ( | ASTContext & | Context, |
SourceLocation | Loc | ||
) |
Definition at line 599 of file TypeLoc.cpp.
References clang::ArrayTypeLoc::getElementLoc(), clang::MacroQualifiedTypeLoc::getInnerLoc(), clang::ParenTypeLoc::getInnerLoc(), clang::AttributedTypeLoc::getModifiedLoc(), clang::ElaboratedTypeLoc::getNamedTypeLoc(), clang::AdjustedTypeLoc::getOriginalLoc(), clang::PackExpansionTypeLoc::getPatternLoc(), clang::PointerLikeTypeLoc< Derived, TypeClass, LocalData >::getPointeeLoc(), clang::FunctionTypeLoc::getReturnLoc(), clang::QualifiedTypeLoc::getUnqualifiedLoc(), and clang::TemplateSpecializationTypeLoc::initializeArgLocs().
|
inline |
Definition at line 1952 of file TypeLoc.h.
References clang::TypeLoc::getTypePtr().
|
inline |
Definition at line 2018 of file TypeLoc.h.
Referenced by clang::TypeLocReader::VisitFunctionTypeLoc().
|
inline |
Definition at line 1976 of file TypeLoc.h.
Referenced by clang::TypeLocReader::VisitFunctionTypeLoc().
|
inline |
Definition at line 1984 of file TypeLoc.h.
Referenced by clang::TypeLocReader::VisitFunctionTypeLoc().
|
inline |
Definition at line 2002 of file TypeLoc.h.
Referenced by clang::TypeLocReader::VisitFunctionTypeLoc().
|
inline |
Definition at line 1960 of file TypeLoc.h.
Referenced by clang::TypeLocReader::VisitFunctionTypeLoc().
|
inline |
Definition at line 2010 of file TypeLoc.h.
Referenced by clang::TypeLocReader::VisitFunctionTypeLoc().
|
inline |
Definition at line 1968 of file TypeLoc.h.
Referenced by clang::TypeLocReader::VisitFunctionTypeLoc().