[all-commits] [llvm/llvm-project] 29a456: [mlir] Use std::string::find with std::string_view...

Kazu Hirata via All-commits all-commits at lists.llvm.org
Tue May 13 07:13:35 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 29a45619f1f8f0e0f0edd4937cf31827d1a4c4d4
      https://github.com/llvm/llvm-project/commit/29a45619f1f8f0e0f0edd4937cf31827d1a4c4d4
  Author: Kazu Hirata <kazu at google.com>
  Date:   2025-05-13 (Tue, 13 May 2025)

  Changed paths:
    M mlir/lib/TableGen/Predicate.cpp

  Log Message:
  -----------
  [mlir] Use std::string::find with std::string_view (NFC) (#139683)

Starting with C++17, std::string::find accepts anything that can be
converted to std::string_view, including StringRef, allowing us to
avoid creating 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