[all-commits] [llvm/llvm-project] 65c807: [lldb][TypeSystemClang] Allow transparent lookup t...

Michael Buch via All-commits all-commits at lists.llvm.org
Mon Jul 1 08:22:19 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 65c807e69545ec23c1a258f66f744874531c7d26
      https://github.com/llvm/llvm-project/commit/65c807e69545ec23c1a258f66f744874531c7d26
  Author: Michael Buch <michaelbuch12 at gmail.com>
  Date:   2024-07-01 (Mon, 01 Jul 2024)

  Changed paths:
    M lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.cpp
    M lldb/test/API/lang/cpp/namespace/TestNamespace.py
    M lldb/test/API/lang/cpp/namespace/main.cpp

  Log Message:
  -----------
  [lldb][TypeSystemClang] Allow transparent lookup through anonymous namespaces (#97275)

This patch allows expressions to reference entities in anonymous
namespaces. Previously this would have resulted in:
```
(lldb) expr foo::FooAnonymousVar
error: <user expression 0>:1:6: no member named 'FooAnonymousVar' in namespace 'foo'
    1 | foo::FooAnonymousVar
      | ~~~~~^
```

We already allow such lookups through inline namespaces, and for the
purposes of lookup, anonymous namespaces shouldn't behave any different.

Fixes https://github.com/llvm/llvm-project/issues/96963.



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