clang 20.0.0git
|
Represents a temporary object that is being immediately returned from a function by value, eg. More...
#include "clang/Analysis/ConstructionContext.h"
Public Member Functions | |
const CXXBindTemporaryExpr * | getCXXBindTemporaryExpr () const |
Public Member Functions inherited from clang::ReturnedValueConstructionContext | |
const ReturnStmt * | getReturnStmt () const |
Public Member Functions inherited from clang::ConstructionContext | |
Kind | getKind () const |
virtual const ArrayInitLoopExpr * | getArrayInitLoop () const |
virtual | ~ConstructionContext ()=default |
Static Public Member Functions | |
static bool | classof (const ConstructionContext *CC) |
Static Public Member Functions inherited from clang::ReturnedValueConstructionContext | |
static bool | classof (const ConstructionContext *CC) |
Static Public Member Functions inherited from clang::ConstructionContext | |
static const ConstructionContext * | createFromLayers (BumpVectorContext &C, const ConstructionContextLayer *TopLayer) |
Consume the construction context layer, together with its parent layers, and wrap it up into a complete construction context. | |
Friends | |
class | ConstructionContext |
Represents a temporary object that is being immediately returned from a function by value, eg.
return t; or return T(123); in C++17. In C++17 there is not going to be an elidable copy constructor at the return site. However, the usual temporary-related bureaucracy (CXXBindTemporaryExpr, MaterializeTemporaryExpr) is normally located in the caller function's AST. Note that if the object has trivial destructor, then this code is indistinguishable from a simple returned value constructor on the AST level; in this case we provide a simple returned value construction context.
Definition at line 629 of file ConstructionContext.h.
|
inlinestatic |
Definition at line 646 of file ConstructionContext.h.
References clang::ConstructionContext::CXX17ElidedCopyReturnedValueKind, and clang::ConstructionContext::getKind().
|
inline |
Definition at line 644 of file ConstructionContext.h.
|
friend |
Definition at line 633 of file ConstructionContext.h.