clang 19.0.0git
Public Member Functions | Static Public Member Functions | Friends | List of all members
clang::NewAllocatedObjectConstructionContext Class Reference

Represents immediate initialization of memory allocated by operator new, eg. More...

#include "clang/Analysis/ConstructionContext.h"

Inheritance diagram for clang::NewAllocatedObjectConstructionContext:
Inheritance graph

Public Member Functions

const CXXNewExprgetCXXNewExpr () const
- Public Member Functions inherited from clang::ConstructionContext
Kind getKind () const
virtual const ArrayInitLoopExprgetArrayInitLoop () const
virtual ~ConstructionContext ()=default

Static Public Member Functions

static bool classof (const ConstructionContext *CC)
- Static Public Member Functions inherited from clang::ConstructionContext
static const ConstructionContextcreateFromLayers (BumpVectorContext &C, const ConstructionContextLayer *TopLayer)
 Consume the construction context layer, together with its parent layers, and wrap it up into a complete construction context.


class ConstructionContext

Additional Inherited Members

- Public Types inherited from clang::ConstructionContext
enum  Kind {
  SimpleVariableKind , CXX17ElidedCopyVariableKind , VARIABLE_BEGIN = SimpleVariableKind , VARIABLE_END = CXX17ElidedCopyVariableKind ,
  SimpleConstructorInitializerKind , CXX17ElidedCopyConstructorInitializerKind , INITIALIZER_BEGIN = SimpleConstructorInitializerKind , INITIALIZER_END = CXX17ElidedCopyConstructorInitializerKind ,
  NewAllocatedObjectKind , SimpleTemporaryObjectKind , ElidedTemporaryObjectKind , TEMPORARY_BEGIN = SimpleTemporaryObjectKind ,
  TEMPORARY_END = ElidedTemporaryObjectKind , SimpleReturnedValueKind , CXX17ElidedCopyReturnedValueKind , RETURNED_VALUE_BEGIN = SimpleReturnedValueKind ,
  RETURNED_VALUE_END = CXX17ElidedCopyReturnedValueKind , ArgumentKind , LambdaCaptureKind
- Protected Member Functions inherited from clang::ConstructionContext
 ConstructionContext (Kind K)
- Protected Attributes inherited from clang::ConstructionContext
Kind K

Detailed Description

Represents immediate initialization of memory allocated by operator new, eg.

new T(123);.

Definition at line 463 of file ConstructionContext.h.

Member Function Documentation

◆ classof()

static bool clang::NewAllocatedObjectConstructionContext::classof ( const ConstructionContext CC)

◆ getCXXNewExpr()

const CXXNewExpr * clang::NewAllocatedObjectConstructionContext::getCXXNewExpr ( ) const

Definition at line 475 of file ConstructionContext.h.

Friends And Related Function Documentation

◆ ConstructionContext

friend class ConstructionContext

Definition at line 466 of file ConstructionContext.h.

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