[llvm] [ADT] Deprecate the redirection from SmallSet to SmallPtrSet (PR #154891)

via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 22 13:04:57 PDT 2025


github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {clang-format}-->


:warning: C/C++ code formatter, clang-format found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
git-clang-format --diff HEAD~1 HEAD --extensions h -- llvm/include/llvm/ADT/SmallSet.h
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/llvm/include/llvm/ADT/SmallSet.h b/llvm/include/llvm/ADT/SmallSet.h
index a7be077fc..8cd2914f7 100644
--- a/llvm/include/llvm/ADT/SmallSet.h
+++ b/llvm/include/llvm/ADT/SmallSet.h
@@ -272,7 +272,7 @@ template <typename PointeeType, unsigned N>
 class SmallSet<PointeeType *, N> : public SmallPtrSet<PointeeType *, N> {
   using Base = SmallPtrSet<PointeeType *, N>;
 
-  public:
+public:
   // LLVM_DEPRECATED placed between "template" and "class" above won't work for
   // some reason.  Put a deprecation message on constructors instead.
   LLVM_DEPRECATED("Use SmallPtrSet instead", "SmallPtrSet")

``````````

</details>


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


More information about the llvm-commits mailing list