clang API Documentation
ArraySubscriptExpr - [C99 6.5.2.1] Array Subscripting. More...
#include <Expr.h>


Public Member Functions | |
| ArraySubscriptExpr (Expr *lhs, Expr *rhs, QualType t, ExprValueKind VK, ExprObjectKind OK, SourceLocation rbracketloc) | |
| ArraySubscriptExpr (EmptyShell Shell) | |
| Create an empty array subscript expression. | |
| Expr * | getLHS () |
| const Expr * | getLHS () const |
| void | setLHS (Expr *E) |
| Expr * | getRHS () |
| const Expr * | getRHS () const |
| void | setRHS (Expr *E) |
| Expr * | getBase () |
| const Expr * | getBase () const |
| Expr * | getIdx () |
| const Expr * | getIdx () const |
| SourceLocation | getLocStart () const LLVM_READONLY |
| SourceLocation | getLocEnd () const LLVM_READONLY |
| SourceLocation | getRBracketLoc () const |
| void | setRBracketLoc (SourceLocation L) |
| SourceLocation | getExprLoc () const LLVM_READONLY |
| child_range | children () |
Static Public Member Functions | |
| static bool | classof (const Stmt *T) |
ArraySubscriptExpr - [C99 6.5.2.1] Array Subscripting.
| clang::ArraySubscriptExpr::ArraySubscriptExpr | ( | Expr * | lhs, |
| Expr * | rhs, | ||
| QualType | t, | ||
| ExprValueKind | VK, | ||
| ExprObjectKind | OK, | ||
| SourceLocation | rbracketloc | ||
| ) | [inline] |
| clang::ArraySubscriptExpr::ArraySubscriptExpr | ( | EmptyShell | Shell | ) | [inline, explicit] |
| child_range clang::ArraySubscriptExpr::children | ( | ) | [inline] |
Reimplemented from clang::Stmt.
| static bool clang::ArraySubscriptExpr::classof | ( | const Stmt * | T | ) | [inline, static] |
Reimplemented from clang::Expr.
Definition at line 2137 of file Expr.h.
References clang::Stmt::getStmtClass().
| Expr* clang::ArraySubscriptExpr::getBase | ( | ) | [inline] |
Definition at line 2109 of file Expr.h.
References getLHS(), getRHS(), clang::Expr::getType(), and clang::Type::isIntegerType().
Referenced by clang::CodeGen::CodeGenFunction::EmitArraySubscriptExpr(), getExprLoc(), clang::ento::ExprEngine::ProcessInitializer(), and clang::ento::ExprEngine::VisitLvalArraySubscriptExpr().
| const Expr* clang::ArraySubscriptExpr::getBase | ( | ) | const [inline] |
Definition at line 2113 of file Expr.h.
References getLHS(), getRHS(), clang::Expr::getType(), and clang::Type::isIntegerType().
| SourceLocation clang::ArraySubscriptExpr::getExprLoc | ( | ) | const [inline] |
getExprLoc - Return the preferred location for the arrow when diagnosing a problem with a generic expression.
Reimplemented from clang::Expr.
Definition at line 2133 of file Expr.h.
References getBase(), and clang::Expr::getExprLoc().
| Expr* clang::ArraySubscriptExpr::getIdx | ( | ) | [inline] |
Definition at line 2117 of file Expr.h.
References getLHS(), getRHS(), clang::Expr::getType(), and clang::Type::isIntegerType().
Referenced by clang::CodeGen::CodeGenFunction::EmitArraySubscriptExpr(), and clang::ento::ExprEngine::VisitLvalArraySubscriptExpr().
| const Expr* clang::ArraySubscriptExpr::getIdx | ( | ) | const [inline] |
Definition at line 2121 of file Expr.h.
References getLHS(), getRHS(), clang::Expr::getType(), and clang::Type::isIntegerType().
| Expr* clang::ArraySubscriptExpr::getLHS | ( | ) | [inline] |
An array access can be written A[4] or 4[A] (both are equivalent).
Definition at line 2101 of file Expr.h.
Referenced by getBase(), getIdx(), getLocStart(), and GetUnreachableLoc().
| const Expr* clang::ArraySubscriptExpr::getLHS | ( | ) | const [inline] |
| SourceLocation clang::ArraySubscriptExpr::getLocEnd | ( | ) | const [inline] |
Reimplemented from clang::Stmt.
| SourceLocation clang::ArraySubscriptExpr::getLocStart | ( | ) | const [inline] |
Reimplemented from clang::Stmt.
Definition at line 2125 of file Expr.h.
References getLHS(), and clang::Stmt::getLocStart().
| SourceLocation clang::ArraySubscriptExpr::getRBracketLoc | ( | ) | const [inline] |
Definition at line 2130 of file Expr.h.
Referenced by GetUnreachableLoc().
| Expr* clang::ArraySubscriptExpr::getRHS | ( | ) | [inline] |
Definition at line 2105 of file Expr.h.
Referenced by getBase(), getIdx(), and GetUnreachableLoc().
| const Expr* clang::ArraySubscriptExpr::getRHS | ( | ) | const [inline] |
| void clang::ArraySubscriptExpr::setLHS | ( | Expr * | E | ) | [inline] |
| void clang::ArraySubscriptExpr::setRBracketLoc | ( | SourceLocation | L | ) | [inline] |
| void clang::ArraySubscriptExpr::setRHS | ( | Expr * | E | ) | [inline] |