[all-commits] [llvm/llvm-project] 30f524: [lldb][Modules] Make decls from submodules visible...

Michael Buch via All-commits all-commits at lists.llvm.org
Fri Jun 6 09:17:22 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 30f524090542d07067234c292c15d4a4129b4aea
      https://github.com/llvm/llvm-project/commit/30f524090542d07067234c292c15d4a4129b4aea
  Author: Michael Buch <michaelbuch12 at gmail.com>
  Date:   2025-06-06 (Fri, 06 Jun 2025)

  Changed paths:
    M lldb/source/Plugins/ExpressionParser/Clang/ClangModulesDeclVendor.cpp
    M lldb/test/API/lang/cpp/decl-from-submodule/TestDeclFromSubmodule.py

  Log Message:
  -----------
  [lldb][Modules] Make decls from submodules visible for name lookup (#143098)

This patch ensures we can find decls in submodules during expression
evaluation. Previously, submodules would have all their decls marked as
`Hidden`. When Clang asked LLDB for decls, it would see them in the
submodule but `clang::Sema` would reject them because they weren't
`Visible` (specifically, `getAcceptableDecl` would fail during
`CppNameLookup`). Here we just mark the submodule as visible to work
around this problem.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list