clang API Documentation
Represents the this expression in C++.
More...
#include <ExprCXX.h>


Public Member Functions | |
| CXXThisExpr (SourceLocation L, QualType Type, bool isImplicit) | |
| CXXThisExpr (EmptyShell Empty) | |
| SourceLocation | getLocation () const |
| void | setLocation (SourceLocation L) |
| SourceLocation | getLocStart () const LLVM_READONLY |
| SourceLocation | getLocEnd () const LLVM_READONLY |
| bool | isImplicit () const |
| void | setImplicit (bool I) |
| child_range | children () |
Static Public Member Functions | |
| static bool | classof (const Stmt *T) |
Represents the this expression in C++.
This 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 788 of file ExprCXX.h.
References clang::Stmt::getStmtClass().
| SourceLocation clang::CXXThisExpr::getLocation | ( | ) | const [inline] |
| SourceLocation clang::CXXThisExpr::getLocEnd | ( | ) | const [inline] |
Reimplemented from clang::Stmt.
| SourceLocation clang::CXXThisExpr::getLocStart | ( | ) | const [inline] |
Reimplemented from clang::Stmt.
| bool clang::CXXThisExpr::isImplicit | ( | ) | const [inline] |
| void clang::CXXThisExpr::setImplicit | ( | bool | I | ) | [inline] |
| void clang::CXXThisExpr::setLocation | ( | SourceLocation | L | ) | [inline] |