clang API Documentation

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

#include <Expr.h>

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

List of all members.

Public Member Functions

 ParenExpr (SourceLocation l, SourceLocation r, Expr *val)
 ParenExpr (EmptyShell Empty)
 Construct an empty parenthesized expression.
const ExprgetSubExpr () const
ExprgetSubExpr ()
void setSubExpr (Expr *E)
SourceLocation getLocStart () const LLVM_READONLY
SourceLocation getLocEnd () const LLVM_READONLY
SourceLocation getLParen () const
 Get the location of the left parentheses '('.
void setLParen (SourceLocation Loc)
SourceLocation getRParen () const
 Get the location of the right parentheses ')'.
void setRParen (SourceLocation Loc)
child_range children ()

Static Public Member Functions

static bool classof (const Stmt *T)

Detailed Description

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

Definition at line 1613 of file Expr.h.


Constructor & Destructor Documentation

Definition at line 1617 of file Expr.h.

clang::ParenExpr::ParenExpr ( EmptyShell  Empty) [inline, explicit]

Construct an empty parenthesized expression.

Definition at line 1626 of file Expr.h.


Member Function Documentation

Reimplemented from clang::Stmt.

Definition at line 1649 of file Expr.h.

static bool clang::ParenExpr::classof ( const Stmt T) [inline, static]

Reimplemented from clang::Expr.

Definition at line 1644 of file Expr.h.

References clang::Stmt::getStmtClass().

Reimplemented from clang::Stmt.

Definition at line 1634 of file Expr.h.

Reimplemented from clang::Stmt.

Definition at line 1633 of file Expr.h.

Referenced by clang::Sema::DiagnoseEqualityWithExtraParens().

Get the location of the left parentheses '('.

Definition at line 1637 of file Expr.h.

Referenced by clang::TreeTransform< Derived >::TransformParenDependentScopeDeclRefExpr(), and clang::ASTNodeImporter::VisitParenExpr().

Get the location of the right parentheses ')'.

Definition at line 1641 of file Expr.h.

Referenced by clang::TreeTransform< Derived >::TransformParenDependentScopeDeclRefExpr(), and clang::ASTNodeImporter::VisitParenExpr().

const Expr* clang::ParenExpr::getSubExpr ( ) const [inline]

Definition at line 1629 of file Expr.h.

Referenced by clang::Sema::ActOnCastExpr(), and clang::ASTNodeImporter::VisitParenExpr().

Definition at line 1630 of file Expr.h.

Definition at line 1638 of file Expr.h.

Definition at line 1642 of file Expr.h.

void clang::ParenExpr::setSubExpr ( Expr E) [inline]

Definition at line 1631 of file Expr.h.


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