[clang-tools-extra] [clang-tidy] Add `readability-redundant-tag` check (PR #210007)

Yanzuo Liu via cfe-commits cfe-commits at lists.llvm.org
Fri Jul 17 10:06:55 PDT 2026


zwuis wrote:

Please add more tests. E.g.

- Hidden in inner scope.

```cpp
struct S {};
namespace NS1 {
int S;
namespace NS2 {
using T = struct S;
}
}
```

- Involving using declarations.

```cpp
namespace NS {
struct S {};
}
using NS::S;
using T = struct S;
// `S` is not 'hidden' in this example.
// Just to tell using declarations should be considered.
```

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


More information about the cfe-commits mailing list