[all-commits] [llvm/llvm-project] c6c394: [clang] Use *Set::insert_range (NFC) (#132507)

Kazu Hirata via All-commits all-commits at lists.llvm.org
Sat Mar 22 08:07:00 PDT 2025


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

  Changed paths:
    M clang/include/clang/StaticAnalyzer/Core/PathSensitive/ExplodedGraph.h
    M clang/lib/AST/RecordLayoutBuilder.cpp
    M clang/lib/Analysis/UnsafeBufferUsage.cpp
    M clang/lib/Driver/Multilib.cpp
    M clang/lib/Sema/SemaAttr.cpp
    M clang/lib/Sema/SemaDeclCXX.cpp
    M clang/lib/Sema/SemaExpr.cpp
    M clang/lib/Serialization/ASTReaderInternals.h
    M clang/lib/Serialization/MultiOnDiskHashTable.h
    M clang/lib/StaticAnalyzer/Frontend/CheckerRegistry.cpp
    M clang/tools/libclang/Indexing.cpp
    M clang/unittests/Analysis/FlowSensitive/TypeErasedDataflowAnalysisTest.cpp
    M clang/utils/TableGen/NeonEmitter.cpp

  Log Message:
  -----------
  [clang] Use *Set::insert_range (NFC) (#132507)

DenseSet, SmallPtrSet, SmallSet, SetVector, and StringSet recently
gained C++23-style insert_range.  This patch replaces:

  Dest.insert(Src.begin(), Src.end());

with:

  Dest.insert_range(Src);

This patch does not touch custom begin like succ_begin for now.



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