clang API Documentation

Public Member Functions | Static Public Member Functions
clang::CXXThisExpr Class Reference

#include <ExprCXX.h>

Inheritance diagram for clang::CXXThisExpr:
Inheritance graph
[legend]
Collaboration diagram for clang::CXXThisExpr:
Collaboration graph
[legend]

List of all members.

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 *)

Detailed Description

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(); }
 };

Definition at line 551 of file ExprCXX.h.


Constructor & Destructor Documentation

clang::CXXThisExpr::CXXThisExpr ( SourceLocation  L,
QualType  Type,
bool  isImplicit 
) [inline]

Definition at line 556 of file ExprCXX.h.

clang::CXXThisExpr::CXXThisExpr ( EmptyShell  Empty) [inline]

Definition at line 565 of file ExprCXX.h.


Member Function Documentation

child_range clang::CXXThisExpr::children ( ) [inline]

Reimplemented from clang::Stmt.

Definition at line 581 of file ExprCXX.h.

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]

Definition at line 578 of file ExprCXX.h.

SourceLocation clang::CXXThisExpr::getLocation ( ) const [inline]

Definition at line 567 of file ExprCXX.h.

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.

Definition at line 570 of file ExprCXX.h.

bool clang::CXXThisExpr::isImplicit ( ) const [inline]

Definition at line 572 of file ExprCXX.h.

void clang::CXXThisExpr::setImplicit ( bool  I) [inline]

Definition at line 573 of file ExprCXX.h.

void clang::CXXThisExpr::setLocation ( SourceLocation  L) [inline]

Definition at line 568 of file ExprCXX.h.


The documentation for this class was generated from the following file: