[all-commits] [llvm/llvm-project] 64046e: [Driver] Use a range constructor of StringSet (NFC...

Kazu Hirata via All-commits all-commits at lists.llvm.org
Wed Mar 26 20:54:29 PDT 2025


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

  Changed paths:
    M clang/lib/Driver/Job.cpp
    M clang/lib/Driver/Multilib.cpp

  Log Message:
  -----------
  [Driver] Use a range constructor of StringSet (NFC) (#133201)

This patch uses a range constructor to collapse:

  llvm::StringSet<> Dest;
  for (const auto &S : Src)
    Dest.insert(S);

down to:

  llvm::StringSet<> Dest(llvm::from_range, Src);



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