clang API Documentation

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

#include <Expr.h>

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

List of all members.

Public Member Functions

 ImaginaryLiteral (Expr *val, QualType Ty)
 ImaginaryLiteral (EmptyShell Empty)
 Build an empty imaginary literal.
const ExprgetSubExpr () const
ExprgetSubExpr ()
void setSubExpr (Expr *E)
SourceRange getSourceRange () const LLVM_READONLY
child_range children ()

Static Public Member Functions

static bool classof (const Stmt *T)
static bool classof (const ImaginaryLiteral *)

Detailed Description

ImaginaryLiteral - We support imaginary integer and floating point literals, like "1.0i". We represent these as a wrapper around FloatingLiteral and IntegerLiteral classes. Instances of this class always have a Complex type whose element type matches the subexpression.

Definition at line 1288 of file Expr.h.


Constructor & Destructor Documentation

clang::ImaginaryLiteral::ImaginaryLiteral ( Expr val,
QualType  Ty 
) [inline]

Definition at line 1291 of file Expr.h.

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

Build an empty imaginary literal.

Definition at line 1297 of file Expr.h.


Member Function Documentation

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

Reimplemented from clang::Stmt.

Definition at line 1311 of file Expr.h.

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

Reimplemented from clang::Expr.

Definition at line 1305 of file Expr.h.

References clang::Stmt::getStmtClass().

static bool clang::ImaginaryLiteral::classof ( const ImaginaryLiteral ) [inline, static]

Definition at line 1308 of file Expr.h.

SourceRange clang::ImaginaryLiteral::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 1304 of file Expr.h.

References clang::Stmt::getSourceRange().

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

Definition at line 1300 of file Expr.h.

Expr* clang::ImaginaryLiteral::getSubExpr ( ) [inline]

Definition at line 1301 of file Expr.h.

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

Definition at line 1302 of file Expr.h.


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