clang  3.9.0
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 <CallEvent.h>

Inheritance diagram for clang::CXXConstructorCall:
[legend]
Collaboration diagram for clang::CXXConstructorCall:
[legend]

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
 

Friends

class CallEventManager
 

Detailed Description

Represents a call to a C++ constructor.

Example: T(1)

Definition at line 776 of file CallEvent.h.

Constructor & Destructor Documentation

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

Creates a constructor call.

Parameters
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 787 of file CallEvent.h.

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

Definition at line 793 of file CallEvent.h.

Member Function Documentation

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

Definition at line 822 of file CallEvent.h.

References clang::ento::CE_CXXConstructor.

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

Definition at line 794 of file CallEvent.h.

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

Definition at line 810 of file CallEvent.h.

SVal CXXConstructorCall::getCXXThisVal ( ) const

Returns the value of the implicit 'this' object.

Definition at line 633 of file CallEvent.cpp.

Referenced by mayInlineCallKind().

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

Definition at line 804 of file CallEvent.h.

Referenced by mayInlineCallKind().

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

Definition at line 639 of file CallEvent.cpp.

void CXXConstructorCall::getInitialStackFrameContents ( const StackFrameContext CalleeCtx,
BindingsTy &  Bindings 
) const
override
Kind clang::CXXConstructorCall::getKind ( ) const
inlineoverride

Definition at line 820 of file CallEvent.h.

References clang::ento::CE_CXXConstructor.

unsigned clang::CXXConstructorCall::getNumArgs ( ) const
inlineoverride

Definition at line 808 of file CallEvent.h.

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

Definition at line 800 of file CallEvent.h.

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

Referenced by mayInlineCallKind().

Friends And Related Function Documentation

friend class CallEventManager
friend

Definition at line 777 of file CallEvent.h.


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