[all-commits] [llvm/llvm-project] 46880f: [ADT] Add range constructors to *Set (#132623)

Kazu Hirata via All-commits all-commits at lists.llvm.org
Sun Mar 23 12:14:05 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 46880fe12bd004c9553b2f339b1374d5f054c839
      https://github.com/llvm/llvm-project/commit/46880fe12bd004c9553b2f339b1374d5f054c839
  Author: Kazu Hirata <kazu at google.com>
  Date:   2025-03-23 (Sun, 23 Mar 2025)

  Changed paths:
    M llvm/include/llvm/ADT/SetVector.h
    M llvm/include/llvm/ADT/SmallPtrSet.h
    M llvm/include/llvm/ADT/SmallSet.h
    M llvm/include/llvm/ADT/StringSet.h
    M llvm/unittests/ADT/SetVectorTest.cpp
    M llvm/unittests/ADT/SmallPtrSetTest.cpp
    M llvm/unittests/ADT/SmallSetTest.cpp
    M llvm/unittests/ADT/StringSetTest.cpp

  Log Message:
  -----------
  [ADT] Add range constructors to *Set (#132623)

DenseSet recently gained a range constructor:

  DenseSet<T> Dest(llvm::from_range, Src);

This patch adds the same signature to SetVector, SmallPtrSet,
SmallSet, and StringSet for consistency.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list