[llvm] [ADT] Use range-based for loops in SmallPtrSet.h (NFC) (PR #152821)

Shilei Tian via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 8 20:54:31 PDT 2025


================
@@ -147,17 +148,23 @@ class SmallPtrSetImplBase : public DebugEpochBase {
     return isSmall() ? CurArray + NumNonEmpty : CurArray + CurArraySize;
   }
 
+  iterator_range<const void **> smallBuckets() {
----------------
shiltian wrote:

Being picky here: I'd call it `small_buckets` here, because `smallBuckets` appear to conform with LLVM standard but it doesn't really, as `small` is not a verb.

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


More information about the llvm-commits mailing list