[llvm] [llvm] Prefer StringRef::substr(0, N) to slice(0, N) (NFC) (PR #113793)

via llvm-commits llvm-commits at lists.llvm.org
Sun Oct 27 02:14:54 PDT 2024


cor3ntin wrote:

> I'm planning to migrate StringRef to std::string_view eventually.

Has there been a discussion / RFC ? The benefit seems extremely low, if not negative (given that stringref is a non template class and doesn't have the char_traits nonsense)

https://github.com/llvm/llvm-project/pull/113793


More information about the llvm-commits mailing list