[clang-tools-extra] [clang-tidy][abseil-string-find-startswith] Add string_view to default string-like classes (PR #72283)
via cfe-commits
cfe-commits at lists.llvm.org
Tue Nov 14 08:50:56 PST 2023
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff 57dd23bc0a2f7b4f7b68162923b3267c1f303de9 6854521facebbe13368b8638ade0c8636dcf9941 -- clang-tools-extra/clang-tidy/abseil/StringFindStartswithCheck.cpp clang-tools-extra/test/clang-tidy/checkers/abseil/string-find-startswith.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/clang-tools-extra/clang-tidy/abseil/StringFindStartswithCheck.cpp b/clang-tools-extra/clang-tidy/abseil/StringFindStartswithCheck.cpp
index 31b5c3d995..d0527cba22 100644
--- a/clang-tools-extra/clang-tidy/abseil/StringFindStartswithCheck.cpp
+++ b/clang-tools-extra/clang-tidy/abseil/StringFindStartswithCheck.cpp
@@ -19,7 +19,8 @@ using namespace clang::ast_matchers;
namespace clang::tidy::abseil {
-const auto DefaultStringLikeClasses = "::std::basic_string; ::std::basic_string_view";
+const auto DefaultStringLikeClasses =
+ "::std::basic_string; ::std::basic_string_view";
StringFindStartswithCheck::StringFindStartswithCheck(StringRef Name,
ClangTidyContext *Context)
``````````
</details>
https://github.com/llvm/llvm-project/pull/72283
More information about the cfe-commits
mailing list