[Lldb-commits] [PATCH] D59960: Fix for ambiguous lookup in expressions between local variable and namespace

Shafik Yaghmour via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Thu Mar 28 14:06:33 PDT 2019


shafik created this revision.
shafik added reviewers: jingham, teemperor.
Herald added a subscriber: jdoerfert.

In an Objective-C context a local variable and namespace can cause an ambiguous name lookup when used in an expression. The solution involves mimicking the existing C++ solution which is to add local using declarations for local variables. This causes a different type of lookup to be used which eliminates the namespace during acceptable results filtering.


https://reviews.llvm.org/D59960

Files:
  packages/Python/lldbsuite/test/expression_command/namespace_local_var_same_name/Makefile
  packages/Python/lldbsuite/test/expression_command/namespace_local_var_same_name/TestNamespaceLocalVarSameName.py
  packages/Python/lldbsuite/test/expression_command/namespace_local_var_same_name/main.mm
  packages/Python/lldbsuite/test/expression_command/namespace_local_var_same_name/util.mm
  source/Expression/ExpressionSourceCode.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D59960.192712.patch
Type: text/x-patch
Size: 4052 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20190328/3f9cea98/attachment.bin>


More information about the lldb-commits mailing list