class ParenExpr

Declaration

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

Description

ParenExpr - This represents a parethesized expression, e.g. "(1)". This AST node is only formed if full location information is requested.

Declared at: clang/include/clang/AST/Expr.h:2112

Inherits from: Expr

Member Variables

private clang::SourceLocation L
private clang::SourceLocation R
private clang::Stmt* Val

Inherited from Stmt:

protected

Method Overview

  • public ParenExpr(clang::SourceLocation l, clang::SourceLocation r, clang::Expr * val)
  • public ParenExpr(clang::Stmt::EmptyShell Empty)
  • public clang::Stmt::child_range children()
  • public clang::Stmt::const_child_range children() const
  • public static bool classof(const clang::Stmt * T)
  • public clang::SourceLocation getBeginLoc() const
  • public clang::SourceLocation getEndLoc() const
  • public clang::SourceLocation getLParen() const
  • public clang::SourceLocation getRParen() const
  • public const clang::Expr * getSubExpr() const
  • public clang::Expr * getSubExpr()
  • public void setLParen(clang::SourceLocation Loc)
  • public void setRParen(clang::SourceLocation Loc)
  • public void setSubExpr(clang::Expr * E)

Inherited from Expr:

Inherited from ValueStmt:

Inherited from Stmt:

Methods

ParenExpr(clang::SourceLocation l,
          clang::SourceLocation r,
          clang::Expr* val)

Declared at: clang/include/clang/AST/Expr.h:2116

Parameters

clang::SourceLocation l
clang::SourceLocation r
clang::Expr* val

ParenExpr(clang::Stmt::EmptyShell Empty)

Description

Construct an empty parenthesized expression.

Declared at: clang/include/clang/AST/Expr.h:2124

Parameters

clang::Stmt::EmptyShell Empty

clang::Stmt::child_range children()

Declared at: clang/include/clang/AST/Expr.h:2147

clang::Stmt::const_child_range children() const

Declared at: clang/include/clang/AST/Expr.h:2148

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

Declared at: clang/include/clang/AST/Expr.h:2142

Parameters

const clang::Stmt* T

clang::SourceLocation getBeginLoc() const

Declared at: clang/include/clang/AST/Expr.h:2131

clang::SourceLocation getEndLoc() const

Declared at: clang/include/clang/AST/Expr.h:2132

clang::SourceLocation getLParen() const

Description

Get the location of the left parentheses '('.

Declared at: clang/include/clang/AST/Expr.h:2135

clang::SourceLocation getRParen() const

Description

Get the location of the right parentheses ')'.

Declared at: clang/include/clang/AST/Expr.h:2139

const clang::Expr* getSubExpr() const

Declared at: clang/include/clang/AST/Expr.h:2127

clang::Expr* getSubExpr()

Declared at: clang/include/clang/AST/Expr.h:2128

void setLParen(clang::SourceLocation Loc)

Declared at: clang/include/clang/AST/Expr.h:2136

Parameters

clang::SourceLocation Loc

void setRParen(clang::SourceLocation Loc)

Declared at: clang/include/clang/AST/Expr.h:2140

Parameters

clang::SourceLocation Loc

void setSubExpr(clang::Expr* E)

Declared at: clang/include/clang/AST/Expr.h:2129

Parameters

clang::Expr* E