[all-commits] [llvm/llvm-project] c714f9: [InstallAPI] Call DenseMap::find without construct...

Kazu Hirata via All-commits all-commits at lists.llvm.org
Thu Nov 7 10:54:57 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c714f928b2f9ab3dd481f272a2aa72b83fd0562e
      https://github.com/llvm/llvm-project/commit/c714f928b2f9ab3dd481f272a2aa72b83fd0562e
  Author: Kazu Hirata <kazu at google.com>
  Date:   2024-11-07 (Thu, 07 Nov 2024)

  Changed paths:
    M clang/lib/InstallAPI/Frontend.cpp

  Log Message:
  -----------
  [InstallAPI] Call DenseMap::find without constructing std::string (NFC) (#115260)

KnownIncludes is of DenseMap<StringRef, HeaderType>, so we don't need
to allocate a temporary instance of std::string.



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