clang API Documentation
Wrapper for source info for arrays. More...
#include <TypeLoc.h>
Public Member Functions | |
SourceLocation | getLBracketLoc () const |
void | setLBracketLoc (SourceLocation Loc) |
SourceLocation | getRBracketLoc () const |
void | setRBracketLoc (SourceLocation Loc) |
SourceRange | getBracketsRange () const |
Expr * | getSizeExpr () const |
void | setSizeExpr (Expr *Size) |
TypeLoc | getElementLoc () const |
SourceRange | getLocalSourceRange () const |
Get the local source range. | |
void | initializeLocal (ASTContext &Context, SourceLocation Loc) |
QualType | getInnerType () const |
SourceRange clang::ArrayTypeLoc::getBracketsRange | ( | ) | const [inline] |
TypeLoc clang::ArrayTypeLoc::getElementLoc | ( | ) | const [inline] |
Definition at line 1306 of file TypeLoc.h.
References clang::ConcreteTypeLoc< UnqualTypeLoc, TypeSpecTypeLoc, Type, TypeSpecLocInfo >::getInnerTypeLoc().
Referenced by FixInvalidVariablyModifiedTypeLoc().
QualType clang::ArrayTypeLoc::getInnerType | ( | ) | const [inline] |
Reimplemented from clang::ConcreteTypeLoc< UnqualTypeLoc, ArrayTypeLoc, ArrayType, ArrayLocInfo >.
Definition at line 1320 of file TypeLoc.h.
References clang::ConcreteTypeLoc< UnqualTypeLoc, TypeSpecTypeLoc, Type, TypeSpecLocInfo >::getTypePtr().
SourceLocation clang::ArrayTypeLoc::getLBracketLoc | ( | ) | const [inline] |
Definition at line 1281 of file TypeLoc.h.
References clang::ConcreteTypeLoc< UnqualTypeLoc, TypeSpecTypeLoc, Type, TypeSpecLocInfo >::getLocalData().
Referenced by FixInvalidVariablyModifiedTypeLoc().
SourceRange clang::ArrayTypeLoc::getLocalSourceRange | ( | ) | const [inline] |
Get the local source range.
Reimplemented from clang::TypeLoc.
SourceLocation clang::ArrayTypeLoc::getRBracketLoc | ( | ) | const [inline] |
Definition at line 1288 of file TypeLoc.h.
References clang::ConcreteTypeLoc< UnqualTypeLoc, TypeSpecTypeLoc, Type, TypeSpecLocInfo >::getLocalData().
Referenced by FixInvalidVariablyModifiedTypeLoc().
Expr* clang::ArrayTypeLoc::getSizeExpr | ( | ) | const [inline] |
Definition at line 1299 of file TypeLoc.h.
References clang::ConcreteTypeLoc< UnqualTypeLoc, TypeSpecTypeLoc, Type, TypeSpecLocInfo >::getLocalData().
Referenced by FixInvalidVariablyModifiedTypeLoc().
void clang::ArrayTypeLoc::initializeLocal | ( | ASTContext & | Context, |
SourceLocation | Loc | ||
) | [inline] |
void clang::ArrayTypeLoc::setLBracketLoc | ( | SourceLocation | Loc | ) | [inline] |
Definition at line 1284 of file TypeLoc.h.
References clang::ConcreteTypeLoc< UnqualTypeLoc, TypeSpecTypeLoc, Type, TypeSpecLocInfo >::getLocalData().
Referenced by clang::TypeLocReader::VisitArrayTypeLoc().
void clang::ArrayTypeLoc::setRBracketLoc | ( | SourceLocation | Loc | ) | [inline] |
Definition at line 1291 of file TypeLoc.h.
References clang::ConcreteTypeLoc< UnqualTypeLoc, TypeSpecTypeLoc, Type, TypeSpecLocInfo >::getLocalData().
Referenced by clang::TypeLocReader::VisitArrayTypeLoc().
void clang::ArrayTypeLoc::setSizeExpr | ( | Expr * | Size | ) | [inline] |
Definition at line 1302 of file TypeLoc.h.
References clang::ConcreteTypeLoc< UnqualTypeLoc, TypeSpecTypeLoc, Type, TypeSpecLocInfo >::getLocalData().
Referenced by clang::TypeLocReader::VisitArrayTypeLoc().