[Lldb-commits] [PATCH] D52247: Refactor FindVariable() core functionality into StackFrame out of SBFrame

Davide Italiano via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Tue Sep 18 14:26:36 PDT 2018


davide accepted this revision.
davide added a comment.
This revision is now accepted and ready to land.

LGTM modulo minor.



================
Comment at: source/Target/StackFrame.cpp:1733-1738
+    if (sc.block->AppendVariables(
+            can_create, get_parent_variables, stop_if_block_is_inlined_function,
+            [this](Variable *v) { return v->IsInScope(this); },
+            &variable_list)) {
+      var_sp = variable_list.FindVariable(ConstString(name));
+    }
----------------
This is fairly unreadable IMHO. If I were you, I would hoist the lambda out.


https://reviews.llvm.org/D52247





More information about the lldb-commits mailing list