[all-commits] [llvm/llvm-project] 11efcc: [flang] Use StringRef::{starts, ends}_with (NFC)

Kazu Hirata via All-commits all-commits at lists.llvm.org
Wed Dec 13 23:49:09 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 11efccea8f96c64b893d527523b2bfe8b0734ebd
      https://github.com/llvm/llvm-project/commit/11efccea8f96c64b893d527523b2bfe8b0734ebd
  Author: Kazu Hirata <kazu at google.com>
  Date:   2023-12-13 (Wed, 13 Dec 2023)

  Changed paths:
    M flang/include/flang/Optimizer/Dialect/FIRType.h
    M flang/lib/Frontend/CompilerInstance.cpp
    M flang/lib/FrontendTool/ExecuteCompilerInvocation.cpp
    M flang/lib/Lower/PFTBuilder.cpp
    M flang/lib/Optimizer/Builder/IntrinsicCall.cpp
    M flang/lib/Optimizer/Dialect/Support/KindMapping.cpp
    M flang/lib/Optimizer/Support/InternalNames.cpp
    M flang/lib/Optimizer/Transforms/SimplifyIntrinsics.cpp
    M flang/lib/Parser/source.cpp
    M flang/tools/flang-driver/driver.cpp
    M flang/unittests/Frontend/CompilerInstanceTest.cpp
    M flang/unittests/Frontend/FrontendActionTest.cpp

  Log Message:
  -----------
  [flang] Use StringRef::{starts,ends}_with (NFC)

This patch replaces uses of StringRef::{starts,ends}with with
StringRef::{starts,ends}_with for consistency with
std::{string,string_view}::{starts,ends}_with in C++20.

I'm planning to deprecate and eventually remove
StringRef::{starts,ends}with.




More information about the All-commits mailing list