class CXXThisExpr

Declaration

class CXXThisExpr : public Expr { /* full declaration omitted */ };

Description

Represents the \c this expression in C++. This is a pointer to the object on which the current member function is executing (C++ [expr.prim]p3). Example:

Declared at: clang/include/clang/AST/ExprCXX.h:1142

Inherits from: Expr

Member Variables

Inherited from Stmt:

protected

Method Overview

Inherited from Expr:

Inherited from ValueStmt:

Inherited from Stmt:

Methods

CXXThisExpr(clang::SourceLocation L,
            clang::QualType Ty,
            bool IsImplicit)

Declared at: clang/include/clang/AST/ExprCXX.h:1144

Parameters

clang::SourceLocation L
clang::QualType Ty
bool IsImplicit

CXXThisExpr(clang::Stmt::EmptyShell Empty)

Declared at: clang/include/clang/AST/ExprCXX.h:1151

Parameters

clang::Stmt::EmptyShell Empty

clang::Stmt::child_range children()

Declared at: clang/include/clang/AST/ExprCXX.h:1167

clang::Stmt::const_child_range children() const

Declared at: clang/include/clang/AST/ExprCXX.h:1171

static bool classof(const clang::Stmt* T)

Declared at: clang/include/clang/AST/ExprCXX.h:1162

Parameters

const clang::Stmt* T

clang::SourceLocation getBeginLoc() const

Declared at: clang/include/clang/AST/ExprCXX.h:1156

clang::SourceLocation getEndLoc() const

Declared at: clang/include/clang/AST/ExprCXX.h:1157

clang::SourceLocation getLocation() const

Declared at: clang/include/clang/AST/ExprCXX.h:1153

bool isImplicit() const

Declared at: clang/include/clang/AST/ExprCXX.h:1159

void setImplicit(bool I)

Declared at: clang/include/clang/AST/ExprCXX.h:1160

Parameters

bool I

void setLocation(clang::SourceLocation L)

Declared at: clang/include/clang/AST/ExprCXX.h:1154

Parameters

clang::SourceLocation L