clang API Documentation
Wrapper for source info for functions. More...
#include <TypeLoc.h>
Public Member Functions | |
SourceLocation | getLocalRangeBegin () const |
void | setLocalRangeBegin (SourceLocation L) |
SourceLocation | getLocalRangeEnd () const |
void | setLocalRangeEnd (SourceLocation L) |
SourceLocation | getLParenLoc () const |
void | setLParenLoc (SourceLocation Loc) |
SourceLocation | getRParenLoc () const |
void | setRParenLoc (SourceLocation Loc) |
SourceRange | getParensRange () const |
ArrayRef< ParmVarDecl * > | getParams () const |
ParmVarDecl ** | getParmArray () const |
unsigned | getNumParams () const |
ParmVarDecl * | getParam (unsigned i) const |
void | setParam (unsigned i, ParmVarDecl *VD) |
TypeLoc | getReturnLoc () const |
SourceRange | getLocalSourceRange () const |
Get the local source range. | |
void | initializeLocal (ASTContext &Context, SourceLocation Loc) |
unsigned | getExtraLocalDataSize () const |
Returns the size of the type source info data block that is specific to this type. | |
unsigned | getExtraLocalDataAlignment () const |
QualType | getInnerType () const |
unsigned clang::FunctionTypeLoc::getExtraLocalDataAlignment | ( | ) | const [inline] |
unsigned clang::FunctionTypeLoc::getExtraLocalDataSize | ( | ) | const [inline] |
Returns the size of the type source info data block that is specific to this type.
Reimplemented from clang::ConcreteTypeLoc< UnqualTypeLoc, FunctionTypeLoc, FunctionType, FunctionLocInfo >.
QualType clang::FunctionTypeLoc::getInnerType | ( | ) | const [inline] |
Reimplemented from clang::ConcreteTypeLoc< UnqualTypeLoc, FunctionTypeLoc, FunctionType, FunctionLocInfo >.
Definition at line 1254 of file TypeLoc.h.
References clang::ConcreteTypeLoc< UnqualTypeLoc, TypeSpecTypeLoc, Type, TypeSpecLocInfo >::getTypePtr().
SourceLocation clang::FunctionTypeLoc::getLocalRangeBegin | ( | ) | const [inline] |
Definition at line 1178 of file TypeLoc.h.
References clang::ConcreteTypeLoc< UnqualTypeLoc, TypeSpecTypeLoc, Type, TypeSpecLocInfo >::getLocalData().
Referenced by clang::TreeTransform< Derived >::TransformFunctionProtoType().
SourceLocation clang::FunctionTypeLoc::getLocalRangeEnd | ( | ) | const [inline] |
Definition at line 1185 of file TypeLoc.h.
References clang::ConcreteTypeLoc< UnqualTypeLoc, TypeSpecTypeLoc, Type, TypeSpecLocInfo >::getLocalData().
Referenced by clang::TreeTransform< Derived >::TransformFunctionProtoType().
SourceRange clang::FunctionTypeLoc::getLocalSourceRange | ( | ) | const [inline] |
Get the local source range.
Reimplemented from clang::TypeLoc.
SourceLocation clang::FunctionTypeLoc::getLParenLoc | ( | ) | const [inline] |
Definition at line 1192 of file TypeLoc.h.
References clang::ConcreteTypeLoc< UnqualTypeLoc, TypeSpecTypeLoc, Type, TypeSpecLocInfo >::getLocalData().
Referenced by clang::TreeTransform< Derived >::TransformFunctionProtoType().
unsigned clang::FunctionTypeLoc::getNumParams | ( | ) | const [inline] |
Definition at line 1219 of file TypeLoc.h.
References clang::ConcreteTypeLoc< UnqualTypeLoc, TypeSpecTypeLoc, Type, TypeSpecLocInfo >::getTypePtr().
Referenced by FormatFunctionParameter(), NeedsInstantiationAsFunctionType(), clang::TreeTransform< Derived >::TransformFunctionProtoType(), and clang::TypeLocReader::VisitFunctionTypeLoc().
ParmVarDecl* clang::FunctionTypeLoc::getParam | ( | unsigned | i | ) | const [inline] |
Definition at line 1224 of file TypeLoc.h.
Referenced by FormatFunctionParameter(), NeedsInstantiationAsFunctionType(), and clang::TemplateDeclInstantiator::SubstFunctionType().
ArrayRef<ParmVarDecl *> clang::FunctionTypeLoc::getParams | ( | ) | const [inline] |
SourceRange clang::FunctionTypeLoc::getParensRange | ( | ) | const [inline] |
ParmVarDecl** clang::FunctionTypeLoc::getParmArray | ( | ) | const [inline] |
Definition at line 1215 of file TypeLoc.h.
References clang::ConcreteTypeLoc< UnqualTypeLoc, TypeSpecTypeLoc, Type, TypeSpecLocInfo >::getExtraLocalData().
Referenced by clang::TreeTransform< Derived >::TransformFunctionProtoType().
TypeLoc clang::FunctionTypeLoc::getReturnLoc | ( | ) | const [inline] |
Definition at line 1227 of file TypeLoc.h.
References clang::ConcreteTypeLoc< UnqualTypeLoc, TypeSpecTypeLoc, Type, TypeSpecLocInfo >::getInnerTypeLoc().
Referenced by addFunctionPointerConversion(), clang::Sema::checkThisInStaticMemberFunctionType(), clang::FunctionDecl::getReturnTypeSourceRange(), and clang::TreeTransform< Derived >::TransformFunctionProtoType().
SourceLocation clang::FunctionTypeLoc::getRParenLoc | ( | ) | const [inline] |
Definition at line 1199 of file TypeLoc.h.
References clang::ConcreteTypeLoc< UnqualTypeLoc, TypeSpecTypeLoc, Type, TypeSpecLocInfo >::getLocalData().
Referenced by clang::TreeTransform< Derived >::TransformFunctionProtoType().
void clang::FunctionTypeLoc::initializeLocal | ( | ASTContext & | Context, |
SourceLocation | Loc | ||
) | [inline] |
void clang::FunctionTypeLoc::setLocalRangeBegin | ( | SourceLocation | L | ) | [inline] |
Definition at line 1181 of file TypeLoc.h.
References clang::ConcreteTypeLoc< UnqualTypeLoc, TypeSpecTypeLoc, Type, TypeSpecLocInfo >::getLocalData().
Referenced by clang::TreeTransform< Derived >::TransformFunctionProtoType(), and clang::TypeLocReader::VisitFunctionTypeLoc().
void clang::FunctionTypeLoc::setLocalRangeEnd | ( | SourceLocation | L | ) | [inline] |
Definition at line 1188 of file TypeLoc.h.
References clang::ConcreteTypeLoc< UnqualTypeLoc, TypeSpecTypeLoc, Type, TypeSpecLocInfo >::getLocalData().
Referenced by clang::TreeTransform< Derived >::TransformFunctionProtoType(), and clang::TypeLocReader::VisitFunctionTypeLoc().
void clang::FunctionTypeLoc::setLParenLoc | ( | SourceLocation | Loc | ) | [inline] |
Definition at line 1195 of file TypeLoc.h.
References clang::ConcreteTypeLoc< UnqualTypeLoc, TypeSpecTypeLoc, Type, TypeSpecLocInfo >::getLocalData().
Referenced by clang::TreeTransform< Derived >::TransformFunctionProtoType(), and clang::TypeLocReader::VisitFunctionTypeLoc().
void clang::FunctionTypeLoc::setParam | ( | unsigned | i, |
ParmVarDecl * | VD | ||
) | [inline] |
Definition at line 1225 of file TypeLoc.h.
Referenced by clang::TreeTransform< Derived >::TransformFunctionProtoType(), and clang::TypeLocReader::VisitFunctionTypeLoc().
void clang::FunctionTypeLoc::setRParenLoc | ( | SourceLocation | Loc | ) | [inline] |
Definition at line 1202 of file TypeLoc.h.
References clang::ConcreteTypeLoc< UnqualTypeLoc, TypeSpecTypeLoc, Type, TypeSpecLocInfo >::getLocalData().
Referenced by clang::TreeTransform< Derived >::TransformFunctionProtoType(), and clang::TypeLocReader::VisitFunctionTypeLoc().