[all-commits] [llvm/llvm-project] c7cdf3: [clang] Use 'starts_with' instead of 'startswith' ...

Jie Fu (傅杰) via All-commits all-commits at lists.llvm.org
Mon Dec 18 00:11:09 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c7cdf3cd5d748901e1370f1bfe803685ca658fb6
      https://github.com/llvm/llvm-project/commit/c7cdf3cd5d748901e1370f1bfe803685ca658fb6
  Author: Jie Fu <jiefu at tencent.com>
  Date:   2023-12-18 (Mon, 18 Dec 2023)

  Changed paths:
    M clang/lib/Driver/ToolChains/Gnu.cpp

  Log Message:
  -----------
  [clang] Use 'starts_with' instead of 'startswith' in Gnu.cpp (NFC)

llvm-project/clang/lib/Driver/ToolChains/Gnu.cpp:1757:14:
 error: 'startswith' is deprecated: Use starts_with instead [-Werror,-Wdeprecated-declarations]
 1757 |     if (Flag.startswith("!march=") || Flag.startswith("-march="))
      |              ^~~~~~~~~~
      |              starts_with




More information about the All-commits mailing list