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

Represents a call to a C++ constructor. More...

#include "clang/StaticAnalyzer/Core/PathSensitive/CallEvent.h"

Inheritance diagram for clang::CXXConstructorCall:
Inheritance graph
Collaboration diagram for clang::CXXConstructorCall:
Collaboration graph

Public Member Functions

virtual const CXXConstructExprgetOriginExpr () const
const CXXConstructorDeclgetDecl () const override
unsigned getNumArgs () const override
const ExprgetArgExpr (unsigned Index) const override
SVal getCXXThisVal () const
 Returns the value of the implicit 'this' object. More...
void getInitialStackFrameContents (const StackFrameContext *CalleeCtx, BindingsTy &Bindings) const override
Kind getKind () const override

Static Public Member Functions

static bool classof (const CallEvent *CA)

Protected Member Functions

 CXXConstructorCall (const CXXConstructExpr *CE, const MemRegion *Target, ProgramStateRef St, const LocationContext *LCtx)
 Creates a constructor call. More...
 CXXConstructorCall (const CXXConstructorCall &Other)
void cloneTo (void *Dest) const override
void getExtraInvalidatedValues (ValueList &Values, RegionAndSymbolInvalidationTraits *ETraits) const override


class CallEventManager

Detailed Description

Represents a call to a C++ constructor.

Example: T(1)

Definition at line 765 of file CallEvent.h.

Constructor & Destructor Documentation

◆ CXXConstructorCall() [1/2]

clang::CXXConstructorCall::CXXConstructorCall ( const CXXConstructExpr CE,
const MemRegion *  Target,
ProgramStateRef  St,
const LocationContext LCtx 

Creates a constructor call.

CEThe constructor expression as written in the source.
TargetThe region where the object should be constructed. If NULL, a new symbolic region will be used.
StThe path-sensitive state at this point in the program.
LCtxThe location context at this point in the program.

Definition at line 776 of file CallEvent.h.

◆ CXXConstructorCall() [2/2]

clang::CXXConstructorCall::CXXConstructorCall ( const CXXConstructorCall Other)

Definition at line 782 of file CallEvent.h.

Member Function Documentation

◆ classof()

static bool clang::CXXConstructorCall::classof ( const CallEvent CA)

Definition at line 811 of file CallEvent.h.

References clang::ento::CE_CXXConstructor.

◆ cloneTo()

void clang::CXXConstructorCall::cloneTo ( void *  Dest) const

Definition at line 783 of file CallEvent.h.

◆ getArgExpr()

const Expr* clang::CXXConstructorCall::getArgExpr ( unsigned  Index) const

Definition at line 799 of file CallEvent.h.

◆ getCXXThisVal()

SVal CXXConstructorCall::getCXXThisVal ( ) const

Returns the value of the implicit 'this' object.

Definition at line 667 of file CallEvent.cpp.

References clang::ento::CallEvent::Data.

◆ getDecl()

const CXXConstructorDecl* clang::CXXConstructorCall::getDecl ( ) const

Definition at line 793 of file CallEvent.h.

◆ getExtraInvalidatedValues()

void CXXConstructorCall::getExtraInvalidatedValues ( ValueList Values,
RegionAndSymbolInvalidationTraits ETraits 
) const

◆ getInitialStackFrameContents()

void CXXConstructorCall::getInitialStackFrameContents ( const StackFrameContext CalleeCtx,
BindingsTy &  Bindings 
) const

◆ getKind()

Kind clang::CXXConstructorCall::getKind ( ) const

Definition at line 809 of file CallEvent.h.

References clang::ento::CE_CXXConstructor.

◆ getNumArgs()

unsigned clang::CXXConstructorCall::getNumArgs ( ) const

Definition at line 797 of file CallEvent.h.

◆ getOriginExpr()

virtual const CXXConstructExpr* clang::CXXConstructorCall::getOriginExpr ( ) const

Definition at line 789 of file CallEvent.h.

References clang::ento::CallEvent::getOriginExpr().

Friends And Related Function Documentation

◆ CallEventManager

friend class CallEventManager

Definition at line 766 of file CallEvent.h.

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