[Lldb-commits] [PATCH] D76964: Fix an issue where the IgnoreName function was not allowing "Class" to be looked up inside a namespace or other class.

Greg Clayton via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Fri Mar 27 18:12:58 PDT 2020


clayborg created this revision.
clayborg added reviewers: jingham, aprantl, JDevlieghere.
Herald added a project: LLDB.
Herald added a subscriber: lldb-commits.

Objective C may or may not be enabled when running expressions. There was code that was no allowing "Class" or "id" to be looked up in expressions, but it was preventing these names from being able to be looked up in a namespace or class context. This fixes the issue by passing the namespace_decl along and testing it to make sure we only stop ones at the root namespace level.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D76964

Files:
  lldb/source/Plugins/ExpressionParser/Clang/ClangASTSource.cpp
  lldb/source/Plugins/ExpressionParser/Clang/ClangASTSource.h
  lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionDeclMap.cpp
  lldb/test/API/commands/expression/ignore/Makefile
  lldb/test/API/commands/expression/ignore/TestIgnoreName.py
  lldb/test/API/commands/expression/ignore/main.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D76964.253269.patch
Type: text/x-patch
Size: 6006 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20200328/088e70c3/attachment.bin>


More information about the lldb-commits mailing list