[all-commits] [llvm/llvm-project] ec2da0: [ADT] Use data() and size() within StringRef (NFC)...

Kazu Hirata via All-commits all-commits at lists.llvm.org
Fri Oct 25 19:38:17 PDT 2024


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

  Changed paths:
    M llvm/include/llvm/ADT/StringRef.h
    M llvm/lib/Support/StringRef.cpp

  Log Message:
  -----------
  [ADT] Use data() and size() within StringRef (NFC) (#113657)

This patch uses data() and size() within StringRef instead of Data and
Length.  This makes it easier to replace Data and Length with
std::string_view in the future, which in turn allows us to forward
most of StringRef functions to the counterparts in std::string_view.



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