clang API Documentation
Represents a C++ functional cast expression that builds a temporary object. More...
#include <ExprCXX.h>


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) | |
| TypeSourceInfo * | getTypeSourceInfo () const |
| SourceLocation | getLocStart () const LLVM_READONLY |
| SourceLocation | getLocEnd () const LLVM_READONLY |
Static Public Member Functions | |
| static bool | classof (const Stmt *T) |
Friends | |
| class | ASTStmtReader |
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:
| 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.
| clang::CXXTemporaryObjectExpr::CXXTemporaryObjectExpr | ( | EmptyShell | Empty | ) | [inline, explicit] |
| static bool clang::CXXTemporaryObjectExpr::classof | ( | const Stmt * | T | ) | [inline, static] |
Reimplemented from clang::CXXConstructExpr.
Reimplemented from clang::CXXConstructExpr.
Definition at line 827 of file ExprCXX.cpp.
References clang::CXXConstructExpr::getArg(), clang::SourceRange::getEnd(), clang::CXXConstructExpr::getNumArgs(), clang::CXXConstructExpr::getParenOrBraceRange(), and clang::SourceLocation::isInvalid().
Reimplemented from clang::CXXConstructExpr.
Definition at line 823 of file ExprCXX.cpp.
| TypeSourceInfo* clang::CXXTemporaryObjectExpr::getTypeSourceInfo | ( | ) | const [inline] |
friend class ASTStmtReader [friend] |
Reimplemented from clang::CXXConstructExpr.