[all-commits] [llvm/llvm-project] 71eebe: [llvm] Prefer StringRef::substr to StringRef::slic...
Kazu Hirata via All-commits
all-commits at lists.llvm.org
Tue Aug 27 06:46:42 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 71eebe9daaf5d2068606640a6040775020bc36e9
https://github.com/llvm/llvm-project/commit/71eebe9daaf5d2068606640a6040775020bc36e9
Author: Kazu Hirata <kazu at google.com>
Date: 2024-08-27 (Tue, 27 Aug 2024)
Changed paths:
M llvm/lib/MC/MCParser/AsmParser.cpp
M llvm/lib/MC/MCParser/MasmParser.cpp
M llvm/lib/Object/COFFObjectFile.cpp
M llvm/lib/Object/MachOObjectFile.cpp
M llvm/lib/Target/X86/AsmParser/X86AsmParser.cpp
M llvm/utils/TableGen/AsmMatcherEmitter.cpp
Log Message:
-----------
[llvm] Prefer StringRef::substr to StringRef::slice (NFC) (#106190)
S.substr(N, M) is simpler than S.slice(N, N + M). Also, substr is
probably better recognizable than slice thanks to
std::string_view::substr.
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