clang API Documentation

Public Member Functions | Static Public Member Functions | Friends
clang::CXXTemporaryObjectExpr Class Reference

Represents a C++ functional cast expression that builds a temporary object. More...

#include <ExprCXX.h>

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

List of all members.

Public Member Functions

 CXXTemporaryObjectExpr (const ASTContext &C, CXXConstructorDecl *Cons, TypeSourceInfo *Type, ArrayRef< Expr * > Args, SourceRange ParenOrBraceRange, bool HadMultipleCandidates, bool ListInitialization, bool StdInitListInitialization, bool ZeroInitialization)
 CXXTemporaryObjectExpr (EmptyShell Empty)
TypeSourceInfogetTypeSourceInfo () const
SourceLocation getLocStart () const LLVM_READONLY
SourceLocation getLocEnd () const LLVM_READONLY

Static Public Member Functions

static bool classof (const Stmt *T)

Friends

class ASTStmtReader

Detailed Description

Represents a C++ functional cast expression that builds a temporary object.

This expression type represents a C++ "functional" cast (C++[expr.type.conv]) with N != 1 arguments that invokes a constructor to build a temporary object. With N == 1 arguments the functional cast expression will be represented by CXXFunctionalCastExpr. Example:

 struct X { X(int, float); }

 X create_X() {
   return X(1, 3.14f); // creates a CXXTemporaryObjectExpr
 };

Definition at line 1288 of file ExprCXX.h.


Constructor & Destructor Documentation

CXXTemporaryObjectExpr::CXXTemporaryObjectExpr ( const ASTContext C,
CXXConstructorDecl Cons,
TypeSourceInfo Type,
ArrayRef< Expr * >  Args,
SourceRange  ParenOrBraceRange,
bool  HadMultipleCandidates,
bool  ListInitialization,
bool  StdInitListInitialization,
bool  ZeroInitialization 
)

Definition at line 802 of file ExprCXX.cpp.

Definition at line 1300 of file ExprCXX.h.


Member Function Documentation

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

Reimplemented from clang::CXXConstructExpr.

Definition at line 1308 of file ExprCXX.h.

Reimplemented from clang::CXXConstructExpr.

Definition at line 823 of file ExprCXX.cpp.

Definition at line 1303 of file ExprCXX.h.


Friends And Related Function Documentation

friend class ASTStmtReader [friend]

Reimplemented from clang::CXXConstructExpr.

Definition at line 1312 of file ExprCXX.h.


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