[all-commits] [llvm/llvm-project] dabc90: [clangd] Use starts_with instead of startswith in ...
Jie Fu (傅杰) via All-commits
all-commits at lists.llvm.org
Fri Jan 12 00:19:05 PST 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: dabc9018ee856dee672fb1035fd3eb1bb39bd7a6
https://github.com/llvm/llvm-project/commit/dabc9018ee856dee672fb1035fd3eb1bb39bd7a6
Author: Jie Fu <jiefu at tencent.com>
Date: 2024-01-12 (Fri, 12 Jan 2024)
Changed paths:
M clang-tools-extra/clangd/CompileCommands.cpp
Log Message:
-----------
[clangd] Use starts_with instead of startswith in CompileCommands.cpp (NFC)
llvm-project/clang-tools-extra/clangd/CompileCommands.cpp:324:52:
error: 'startswith' is deprecated: Use starts_with instead [-Werror,-Wdeprecated-declarations]
324 | Cmd, [&](llvm::StringRef Arg) { return Arg.startswith(Flag); });
| ^~~~~~~~~~
| starts_with
More information about the All-commits
mailing list