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


Public Member Functions | |
| CXXTemporaryObjectExpr (ASTContext &C, CXXConstructorDecl *Cons, TypeSourceInfo *Type, Expr **Args, unsigned NumArgs, SourceRange parenRange, bool HadMultipleCandidates, bool ZeroInitialization=false) | |
| CXXTemporaryObjectExpr (EmptyShell Empty) | |
| TypeSourceInfo * | getTypeSourceInfo () const |
| SourceRange | getSourceRange () const LLVM_READONLY |
Static Public Member Functions | |
| static bool | classof (const Stmt *T) |
| static bool | classof (const CXXTemporaryObjectExpr *) |
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:
struct X { X(int, float); } X create_X() { return X(1, 3.14f); // creates a CXXTemporaryObjectExpr };
| CXXTemporaryObjectExpr::CXXTemporaryObjectExpr | ( | ASTContext & | C, |
| CXXConstructorDecl * | Cons, | ||
| TypeSourceInfo * | Type, | ||
| Expr ** | Args, | ||
| unsigned | NumArgs, | ||
| SourceRange | parenRange, | ||
| bool | HadMultipleCandidates, | ||
| bool | ZeroInitialization = false |
||
| ) |
Definition at line 681 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.
| static bool clang::CXXTemporaryObjectExpr::classof | ( | const CXXTemporaryObjectExpr * | ) | [inline, static] |
| SourceRange CXXTemporaryObjectExpr::getSourceRange | ( | ) | const |
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::CXXConstructExpr.
Definition at line 698 of file ExprCXX.cpp.
References clang::SourceRange::getEnd(), and clang::CXXConstructExpr::getParenRange().
| TypeSourceInfo* clang::CXXTemporaryObjectExpr::getTypeSourceInfo | ( | ) | const [inline] |
friend class ASTStmtReader [friend] |
Reimplemented from clang::CXXConstructExpr.