Commit 6efede7
committed
[ADT] Deprecate the redirection from SmallSet to SmallPtrSet (Take 2)
This patch deprecates the SmallSet specialization for pointer types,
which redirects to SmallPtrSet.
My previous attempt in #154891 broke downstream users. Adding
user-defined constructors with LLVM_DEPRECATED inadvertently caused
the compiler to delete the copy and move assignment operators.
This iteration sidesteps the "Rule of Five" issue entirely by
introducing an intermediate class, DeprecatedSmallSet. The
deprecation attribute is attached to this new class, and SmallSet
specialization inherits from it.1 parent 8b3d4bd commit 6efede7
1 file changed
+10
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
268 | 268 | | |
269 | 269 | | |
270 | 270 | | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
271 | 279 | | |
272 | | - | |
| 280 | + | |
| 281 | + | |
273 | 282 | | |
274 | 283 | | |
275 | 284 | | |
| |||
0 commit comments