Issue 64712
Summary [Clang] Add the ability to deprecated namespace aliases
Labels enhancement, clang:frontend
Assignees
Reporter philnik777
    Currently, there is no way to deprecate namespace aliases with Clang. It would be great to make this possible, since that makes it a lot less problematic to rename namespaces.

```c++
namespace my_new_ns {
  struct S {};
}

[[deprecated]] namespace my_old_ns = my_new_ns;

my_old_ns::S a; // expected-warning {{my_old_ns is deprecated}}

my_new_ns::S b; // should not be diagnosed
```

_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to