[clang] [C] Update -Wimplicit-void-ptr-cast for null pointer constants (PR #138271)

via cfe-commits cfe-commits at lists.llvm.org
Fri May 2 06:21:06 PDT 2025


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 HEAD~1 HEAD --extensions c,cpp -- clang/lib/Sema/SemaExpr.cpp clang/test/Sema/implicit-void-ptr-cast.c
``````````

</details>

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

``````````diff
diff --git a/clang/lib/Sema/SemaExpr.cpp b/clang/lib/Sema/SemaExpr.cpp
index bea75f944..6cb4ddffd 100644
--- a/clang/lib/Sema/SemaExpr.cpp
+++ b/clang/lib/Sema/SemaExpr.cpp
@@ -9849,7 +9849,6 @@ AssignConvertType Sema::CheckSingleAssignmentConstraints(QualType LHSType,
         }
       }
 
-
       if (ConvertRHS)
         RHS = ImpCastExprToType(RHS.get(), LHSType, Kind, VK_PRValue, &Path);
     }

``````````

</details>


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


More information about the cfe-commits mailing list