[all-commits] [llvm/llvm-project] c4dfa0: [clang-tidy] Call StringMap::find without construc...

Kazu Hirata via All-commits all-commits at lists.llvm.org
Wed Nov 6 08:36:05 PST 2024


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

  Changed paths:
    M clang-tools-extra/clang-tidy/abseil/DurationRewriter.cpp

  Log Message:
  -----------
  [clang-tidy] Call StringMap::find without constructing std::string (NFC) (#115114)

StringMap::find takes StringRef, so we don't need to allocate
temporary instances 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