clang API Documentation
#include <ExprCXX.h>


Public Member Functions | |
| CXXThisExpr (SourceLocation L, QualType Type, bool isImplicit) | |
| CXXThisExpr (EmptyShell Empty) | |
| SourceLocation | getLocation () const |
| void | setLocation (SourceLocation L) |
| SourceRange | getSourceRange () const |
| bool | isImplicit () const |
| void | setImplicit (bool I) |
| child_range | children () |
Static Public Member Functions | |
| static bool | classof (const Stmt *T) |
| static bool | classof (const CXXThisExpr *) |
CXXThisExpr - Represents the "this" expression in C++, which is a pointer to the object on which the current member function is executing (C++ [expr.prim]p3). Example:
class Foo { public: void bar(); void test() { this->bar(); } };
| clang::CXXThisExpr::CXXThisExpr | ( | SourceLocation | L, |
| QualType | Type, | ||
| bool | isImplicit | ||
| ) | [inline] |
| clang::CXXThisExpr::CXXThisExpr | ( | EmptyShell | Empty | ) | [inline] |
| child_range clang::CXXThisExpr::children | ( | ) | [inline] |
Reimplemented from clang::Stmt.
| static bool clang::CXXThisExpr::classof | ( | const Stmt * | T | ) | [inline, static] |
Reimplemented from clang::Expr.
Definition at line 575 of file ExprCXX.h.
References clang::Stmt::getStmtClass().
| static bool clang::CXXThisExpr::classof | ( | const CXXThisExpr * | ) | [inline, static] |
| SourceLocation clang::CXXThisExpr::getLocation | ( | ) | const [inline] |
| SourceRange clang::CXXThisExpr::getSourceRange | ( | ) | const [inline] |
SourceLocation tokens are not useful in isolation - they are low level value objects created/interpreted by SourceManager. We assume AST clients will have a pointer to the respective SourceManager.
Reimplemented from clang::Stmt.
| void clang::CXXThisExpr::setLocation | ( | SourceLocation | L | ) | [inline] |