Cppcheck
Public Member Functions | Public Attributes | List of all members
Lambda Struct Reference

Public Member Functions

 Lambda (const Token *tok)
 
std::vector< const Token * > getCaptures () const
 
bool isLambda () const
 

Public Attributes

const Tokencapture {}
 
const Tokenarguments {}
 
const TokenreturnTok {}
 
const TokenbodyTok {}
 
std::unordered_map< const Variable *, std::pair< const Token *, LifetimeCapture > > explicitCaptures
 
LifetimeCapture implicitCapture = LifetimeCapture::Undefined
 

Detailed Description

Definition at line 4829 of file valueflow.cpp.

Constructor & Destructor Documentation

◆ Lambda()

Lambda::Lambda ( const Token tok)
inlineexplicit

Member Function Documentation

◆ getCaptures()

std::vector<const Token*> Lambda::getCaptures ( ) const
inline

Definition at line 4873 of file valueflow.cpp.

References capture, and getArguments().

Referenced by Lambda().

◆ isLambda()

bool Lambda::isLambda ( ) const
inline

Definition at line 4877 of file valueflow.cpp.

References bodyTok, and capture.

Referenced by valueFlowLifetime().

Member Data Documentation

◆ arguments

const Token* Lambda::arguments {}

Definition at line 4867 of file valueflow.cpp.

Referenced by Lambda().

◆ bodyTok

const Token* Lambda::bodyTok {}

Definition at line 4869 of file valueflow.cpp.

Referenced by isLambda(), Lambda(), and valueFlowLifetime().

◆ capture

const Token* Lambda::capture {}

Definition at line 4866 of file valueflow.cpp.

Referenced by getCaptures(), isLambda(), and Lambda().

◆ explicitCaptures

std::unordered_map<const Variable*, std::pair<const Token*, LifetimeCapture> > Lambda::explicitCaptures

Definition at line 4870 of file valueflow.cpp.

Referenced by Lambda(), and valueFlowLifetime().

◆ implicitCapture

LifetimeCapture Lambda::implicitCapture = LifetimeCapture::Undefined

Definition at line 4871 of file valueflow.cpp.

Referenced by Lambda(), and valueFlowLifetime().

◆ returnTok

const Token* Lambda::returnTok {}

Definition at line 4868 of file valueflow.cpp.

Referenced by Lambda().


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