[llvm] [ADT] Deprecate the redirection from SmallSet to SmallPtrSet (PR #154891)
Yanzuo Liu via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 22 18:00:42 PDT 2025
zwuis wrote:
> ```cpp
> [[deprecated]] struct S1 {} var1; // `var1` is deprecated
> struct [[deprecated]] S2 {} var2; // `S2` is deprecated
> ```
Did you try
```cpp
template <typename PointeeType, unsigned N>
class LLVM_DEPRECATED("...", "...") SmallSet<PointeeType*, N> : public SmallPtrSet<PointeeType*, N> {};
```
https://github.com/llvm/llvm-project/pull/154891
More information about the llvm-commits
mailing list