[clang] [Clang] Preserve namespace identity for inline namespace redeclarations (PR #233862)

Vlad Serebrennikov via cfe-commits cfe-commits at lists.llvm.org
Wed Oct 28 09:58:55 PDT 2026


================

----------------
Endilll wrote:

Test cases in this file feel quite similar to `inline-namespace-redeclarations.cpp`. I see you're testing declaration matching here, and the better way to do that would be to use `-verify` mode instead of AST dump. Redefinition diagnostic can directly cover structs, and indirectly — their enclosing namespace, because if declaration matching between enclosing namespaces doesn't happen, you won't get the expected redefinition diagnostics.

https://github.com/llvm/llvm-project/pull/233862


More information about the cfe-commits mailing list