[all-commits] [llvm/llvm-project] 1c2093: [ADT] Make StringRef std::string_view conversion o...

Luke Lau via All-commits all-commits at lists.llvm.org
Wed Jan 10 10:22:54 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1c209322e462c1d1675cc4b9947712dcceac93b5
      https://github.com/llvm/llvm-project/commit/1c209322e462c1d1675cc4b9947712dcceac93b5
  Author: Luke Lau <luke at igalia.com>
  Date:   2024-01-11 (Thu, 11 Jan 2024)

  Changed paths:
    M llvm/include/llvm/ADT/StringRef.h
    M llvm/unittests/ADT/StringRefTest.cpp

  Log Message:
  -----------
  [ADT] Make StringRef std::string_view conversion operator constexpr. NFC (#77506)

This would allow us to compare StringRefs via std::string_view, avoiding
having
to make the existing StringRef compare machinery constexpr for now.




More information about the All-commits mailing list