1 //===-- ClangExpressionUtil.cpp -------------------------------------------===//
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
9 #include "ClangExpressionUtil.h"
11 #include "lldb/Core/ValueObject.h"
12 #include "lldb/Target/StackFrame.h"
13 #include "lldb/Utility/ConstString.h"
15 namespace lldb_private
{
16 namespace ClangExpressionUtil
{
17 lldb::ValueObjectSP
GetLambdaValueObject(StackFrame
*frame
) {
20 if (auto this_val_sp
= frame
->FindVariable(ConstString("this")))
21 if (this_val_sp
->GetChildMemberWithName("this"))
26 } // namespace ClangExpressionUtil
27 } // namespace lldb_private