[clang-tools-extra] [clang-tidy] Add modernize-use-span-first-last check (PR #118074)
via cfe-commits
cfe-commits at lists.llvm.org
Fri Nov 29 01:24:46 PST 2024
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 056153f36eca184f81969f5cd5c8cd967c935f96 ec5a6b0ceb0fbbf03ea36a38fb627b25ab4e62de --extensions h,cpp -- clang-tools-extra/clang-tidy/modernize/UseSpanFirstLastCheck.cpp clang-tools-extra/clang-tidy/modernize/UseSpanFirstLastCheck.h clang-tools-extra/test/clang-tidy/checkers/modernize/modernize-subspan-conversion.cpp clang-tools-extra/clang-tidy/modernize/ModernizeTidyModule.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/clang-tools-extra/clang-tidy/modernize/ModernizeTidyModule.cpp b/clang-tools-extra/clang-tidy/modernize/ModernizeTidyModule.cpp
index 6fc5de5aad..d1778640bb 100644
--- a/clang-tools-extra/clang-tidy/modernize/ModernizeTidyModule.cpp
+++ b/clang-tools-extra/clang-tidy/modernize/ModernizeTidyModule.cpp
@@ -123,8 +123,8 @@ public:
CheckFactories.registerCheck<UseUncaughtExceptionsCheck>(
"modernize-use-uncaught-exceptions");
CheckFactories.registerCheck<UseUsingCheck>("modernize-use-using");
- CheckFactories.registerCheck<UseSpanFirstLastCheck>("modernize-use-span-first-last");
-
+ CheckFactories.registerCheck<UseSpanFirstLastCheck>(
+ "modernize-use-span-first-last");
}
};
``````````
</details>
https://github.com/llvm/llvm-project/pull/118074
More information about the cfe-commits
mailing list