clang  7.0.0svn
Static Public Member Functions | Friends | List of all members
clang::SimpleVariableConstructionContext Class Reference

Represents construction into a simple local variable, eg. More...

#include "clang/Analysis/ConstructionContext.h"

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

Static Public Member Functions

static bool classof (const ConstructionContext *CC)
 
- Static Public Member Functions inherited from clang::VariableConstructionContext
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. More...
 

Friends

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, TemporaryObjectKind, SimpleReturnedValueKind, CXX17ElidedCopyReturnedValueKind,
  RETURNED_VALUE_BEGIN = SimpleReturnedValueKind, RETURNED_VALUE_END = CXX17ElidedCopyReturnedValueKind
}
 
- Public Member Functions inherited from clang::VariableConstructionContext
const DeclStmtgetDeclStmt () const
 
- Public Member Functions inherited from clang::ConstructionContext
Kind getKind () const
 
- Protected Member Functions inherited from clang::VariableConstructionContext
 VariableConstructionContext (ConstructionContext::Kind K, const DeclStmt *DS)
 
- Protected Member Functions inherited from clang::ConstructionContext
 ConstructionContext (Kind K)
 
- Protected Attributes inherited from clang::ConstructionContext
Kind K
 

Detailed Description

Represents construction into a simple local variable, eg.

T var(123);. If a variable has an initializer, eg. T var = makeT();, then the final elidable copy-constructor from makeT() into var would also be a simple variable constructor handled by this class.

Definition at line 167 of file ConstructionContext.h.

Member Function Documentation

◆ classof()

static bool clang::SimpleVariableConstructionContext::classof ( const ConstructionContext CC)
inlinestatic

Definition at line 175 of file ConstructionContext.h.

References clang::ConstructionContext::getKind().

Friends And Related Function Documentation

◆ ConstructionContext

friend class ConstructionContext
friend

Definition at line 168 of file ConstructionContext.h.


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