[all-commits] [llvm/llvm-project] 5287a9: [mlir] Prefer StringRef::substr to slice (NFC) (#1...

Kazu Hirata via All-commits all-commits at lists.llvm.org
Sun Oct 27 07:28:48 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5287a9b3456fe7aefa24c8da95ef265b8dba875b
      https://github.com/llvm/llvm-project/commit/5287a9b3456fe7aefa24c8da95ef265b8dba875b
  Author: Kazu Hirata <kazu at google.com>
  Date:   2024-10-27 (Sun, 27 Oct 2024)

  Changed paths:
    M mlir/include/mlir/Support/IndentedOstream.h
    M mlir/lib/Query/QueryParser.cpp

  Log Message:
  -----------
  [mlir] Prefer StringRef::substr to slice (NFC) (#113788)

I'm planning to migrate StringRef to std::string_view
eventually.  Since std::string_view does not have slice, this patch
migrates:

  slice(0, N)                to  substr(0, N)
  slice(N, StringRef::npos)  to  substr(N)



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