[clang-tools-extra] [clang-tidy]Add new check bugprone-casting-through-void (PR #69465)

via cfe-commits cfe-commits at lists.llvm.org
Wed Oct 18 09:42:05 PDT 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 5a600c23f9e01f58bac09a8fad096e194fc90ae2 e073d026aa7e12720af1d1760b8c49e22ae970d8 -- clang-tools-extra/clang-tidy/bugprone/CastingThroughVoidCheck.cpp clang-tools-extra/clang-tidy/bugprone/CastingThroughVoidCheck.h clang-tools-extra/test/clang-tidy/checkers/bugprone/casting-through-void.cpp clang-tools-extra/clang-tidy/bugprone/BugproneTidyModule.cpp clang/include/clang/ASTMatchers/ASTMatchers.h
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/clang-tools-extra/clang-tidy/bugprone/CastingThroughVoidCheck.h b/clang-tools-extra/clang-tidy/bugprone/CastingThroughVoidCheck.h
index 86ed84275006..3cafd4a56ce6 100644
--- a/clang-tools-extra/clang-tidy/bugprone/CastingThroughVoidCheck.h
+++ b/clang-tools-extra/clang-tidy/bugprone/CastingThroughVoidCheck.h
@@ -13,8 +13,8 @@
 
 namespace clang::tidy::bugprone {
 
-/// A check detects unsafe or redundant two-step casting operations involving ``void*``.
-/// For the user-facing documentation see:
+/// A check detects unsafe or redundant two-step casting operations involving
+/// ``void*``. For the user-facing documentation see:
 /// http://clang.llvm.org/extra/clang-tidy/checks/bugprone/casting-through-void.html
 class CastingThroughVoidCheck : public ClangTidyCheck {
 public:

``````````

</details>


https://github.com/llvm/llvm-project/pull/69465


More information about the cfe-commits mailing list