clang  6.0.0svn
Public Member Functions | List of all members
clang::ento::RuntimeDefinition Class Reference

Defines the runtime definition of the called function. More...

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

Public Member Functions

 RuntimeDefinition ()
 
 RuntimeDefinition (const Decl *InD)
 
 RuntimeDefinition (const Decl *InD, const MemRegion *InR)
 
const DeclgetDecl ()
 
bool mayHaveOtherDefinitions ()
 Check if the definition we have is precise. More...
 
const MemRegiongetDispatchRegion ()
 When other definitions are possible, returns the region whose runtime type determines the method definition. More...
 

Detailed Description

Defines the runtime definition of the called function.

Encapsulates the information we have about which Decl will be used when the call is executed on the given path. When dealing with dynamic dispatch, the information is based on DynamicTypeInfo and might not be precise.

Definition at line 104 of file CallEvent.h.

Constructor & Destructor Documentation

◆ RuntimeDefinition() [1/3]

clang::ento::RuntimeDefinition::RuntimeDefinition ( )
inline

Definition at line 116 of file CallEvent.h.

◆ RuntimeDefinition() [2/3]

clang::ento::RuntimeDefinition::RuntimeDefinition ( const Decl InD)
inline

Definition at line 117 of file CallEvent.h.

◆ RuntimeDefinition() [3/3]

clang::ento::RuntimeDefinition::RuntimeDefinition ( const Decl InD,
const MemRegion InR 
)
inline

Definition at line 118 of file CallEvent.h.

Member Function Documentation

◆ getDecl()

const Decl* clang::ento::RuntimeDefinition::getDecl ( )
inline

Definition at line 119 of file CallEvent.h.

◆ getDispatchRegion()

const MemRegion* clang::ento::RuntimeDefinition::getDispatchRegion ( )
inline

When other definitions are possible, returns the region whose runtime type determines the method definition.

Definition at line 128 of file CallEvent.h.

◆ mayHaveOtherDefinitions()

bool clang::ento::RuntimeDefinition::mayHaveOtherDefinitions ( )
inline

Check if the definition we have is precise.

If not, it is possible that the call dispatches to another definition at execution time.

Definition at line 124 of file CallEvent.h.


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