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) |
| bool | getTrailingReturn () const |
| void | setTrailingReturn (bool Trailing) |
| ArrayRef< ParmVarDecl * > | getParams () const |
| ParmVarDecl ** | getParmArray () const |
| unsigned | getNumArgs () const |
| ParmVarDecl * | getArg (unsigned i) const |
| void | setArg (unsigned i, ParmVarDecl *VD) |
| TypeLoc | getResultLoc () 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. | |
| QualType | getInnerType () const |
| ParmVarDecl* clang::FunctionTypeLoc::getArg | ( | unsigned | i | ) | const [inline] |
Definition at line 1108 of file TypeLoc.h.
Referenced by FormatFunctionParameter(), NeedsInstantiationAsFunctionType(), and clang::TemplateDeclInstantiator::SubstFunctionType().
| 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 1133 of file TypeLoc.h.
References clang::ConcreteTypeLoc< UnqualTypeLoc, TypeSpecTypeLoc, Type, TypeSpecLocInfo >::getTypePtr().
| SourceLocation clang::FunctionTypeLoc::getLocalRangeBegin | ( | ) | const [inline] |
Definition at line 1073 of file TypeLoc.h.
References clang::ConcreteTypeLoc< UnqualTypeLoc, TypeSpecTypeLoc, Type, TypeSpecLocInfo >::getLocalData().
| SourceLocation clang::FunctionTypeLoc::getLocalRangeEnd | ( | ) | const [inline] |
Definition at line 1080 of file TypeLoc.h.
References clang::ConcreteTypeLoc< UnqualTypeLoc, TypeSpecTypeLoc, Type, TypeSpecLocInfo >::getLocalData().
| SourceRange clang::FunctionTypeLoc::getLocalSourceRange | ( | ) | const [inline] |
Get the local source range.
Reimplemented from clang::TypeLoc.
| unsigned clang::FunctionTypeLoc::getNumArgs | ( | ) | const [inline] |
Definition at line 1103 of file TypeLoc.h.
References clang::ConcreteTypeLoc< UnqualTypeLoc, TypeSpecTypeLoc, Type, TypeSpecLocInfo >::getTypePtr().
Referenced by clang::Sema::ActOnStartOfLambdaDefinition(), FormatFunctionParameter(), NeedsInstantiationAsFunctionType(), clang::TemplateDeclInstantiator::SubstFunctionType(), and clang::TypeLocReader::VisitFunctionTypeLoc().
| ArrayRef<ParmVarDecl *> clang::FunctionTypeLoc::getParams | ( | ) | const [inline] |
| ParmVarDecl** clang::FunctionTypeLoc::getParmArray | ( | ) | const [inline] |
Definition at line 1099 of file TypeLoc.h.
References clang::ConcreteTypeLoc< UnqualTypeLoc, TypeSpecTypeLoc, Type, TypeSpecLocInfo >::getExtraLocalData().
Referenced by clang::Sema::ActOnStartOfLambdaDefinition().
| TypeLoc clang::FunctionTypeLoc::getResultLoc | ( | ) | const [inline] |
Definition at line 1111 of file TypeLoc.h.
References clang::ConcreteTypeLoc< UnqualTypeLoc, TypeSpecTypeLoc, Type, TypeSpecLocInfo >::getInnerTypeLoc().
Referenced by clang::Sema::checkThisInStaticMemberFunctionType().
| bool clang::FunctionTypeLoc::getTrailingReturn | ( | ) | const [inline] |
Definition at line 1087 of file TypeLoc.h.
References clang::ConcreteTypeLoc< UnqualTypeLoc, TypeSpecTypeLoc, Type, TypeSpecLocInfo >::getLocalData().
| void clang::FunctionTypeLoc::initializeLocal | ( | ASTContext & | Context, |
| SourceLocation | Loc | ||
| ) | [inline] |
| void clang::FunctionTypeLoc::setArg | ( | unsigned | i, |
| ParmVarDecl * | VD | ||
| ) | [inline] |
Definition at line 1109 of file TypeLoc.h.
Referenced by clang::TypeLocReader::VisitFunctionTypeLoc().
| void clang::FunctionTypeLoc::setLocalRangeBegin | ( | SourceLocation | L | ) | [inline] |
Definition at line 1076 of file TypeLoc.h.
References clang::ConcreteTypeLoc< UnqualTypeLoc, TypeSpecTypeLoc, Type, TypeSpecLocInfo >::getLocalData().
Referenced by clang::TypeLocReader::VisitFunctionTypeLoc().
| void clang::FunctionTypeLoc::setLocalRangeEnd | ( | SourceLocation | L | ) | [inline] |
Definition at line 1083 of file TypeLoc.h.
References clang::ConcreteTypeLoc< UnqualTypeLoc, TypeSpecTypeLoc, Type, TypeSpecLocInfo >::getLocalData().
Referenced by clang::TypeLocReader::VisitFunctionTypeLoc().
| void clang::FunctionTypeLoc::setTrailingReturn | ( | bool | Trailing | ) | [inline] |
Definition at line 1090 of file TypeLoc.h.
References clang::ConcreteTypeLoc< UnqualTypeLoc, TypeSpecTypeLoc, Type, TypeSpecLocInfo >::getLocalData().
Referenced by clang::TypeLocReader::VisitFunctionTypeLoc().