LLDB mainline
Functions
lldb_private::ClangExpressionUtil Namespace Reference

Functions

lldb::ValueObjectSP GetLambdaValueObject (StackFrame *frame)
 Returns a ValueObject for the lambda class in the current frame.
 

Function Documentation

◆ GetLambdaValueObject()

lldb::ValueObjectSP lldb_private::ClangExpressionUtil::GetLambdaValueObject ( StackFrame frame)

Returns a ValueObject for the lambda class in the current frame.

To represent a lambda, Clang generates an artificial class whose members are the captures and whose operator() is the lambda implementation. If we capture a 'this' pointer, the artifical class will contain a member variable named 'this'.

This method returns the 'this' pointer to the artificial lambda class if a real 'this' was captured. Otherwise, returns nullptr.

Definition at line 17 of file ClangExpressionUtil.cpp.

References lldb_private::StackFrame::FindVariable().

Referenced by lldb_private::ClangExpressionDeclMap::LookupLocalVariable().