clang API Documentation

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

Represents the this expression in C++. More...

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

Detailed Description

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

Definition at line 763 of file ExprCXX.h.


Constructor & Destructor Documentation

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

Definition at line 768 of file ExprCXX.h.

Definition at line 777 of file ExprCXX.h.


Member Function Documentation

Reimplemented from clang::Stmt.

Definition at line 793 of file ExprCXX.h.

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().

Definition at line 779 of file ExprCXX.h.

Reimplemented from clang::Stmt.

Definition at line 783 of file ExprCXX.h.

Reimplemented from clang::Stmt.

Definition at line 782 of file ExprCXX.h.

Definition at line 785 of file ExprCXX.h.

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

Definition at line 786 of file ExprCXX.h.

Definition at line 780 of file ExprCXX.h.


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