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 770fd3856660fea6cbaa78d9cb1f03cc92611783 
1a56ae6f27778750b8c7761e2630476833a061b8 -- clang/lib/AST/Type.cpp 
clang/lib/CodeGen/CGCall.cpp clang/lib/CodeGen/CodeGenFunction.cpp 
clang/lib/Sema/SemaChecking.cpp clang/lib/Sema/SemaInit.cpp 
clang/lib/Sema/SemaOverload.cpp clang/lib/Sema/SemaType.cpp 
clang/test/SemaCXX/nullability.cpp
``````````

</details>

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

``````````diff
diff --git a/clang/lib/Sema/SemaInit.cpp b/clang/lib/Sema/SemaInit.cpp
index eea63c2e57..45278fd53e 100644
--- a/clang/lib/Sema/SemaInit.cpp
+++ b/clang/lib/Sema/SemaInit.cpp
@@ -7052,8 +7052,8 @@ PerformConstructorInitialization(Sema &S,
 
   // A smart pointer constructed from a null pointer is almost certainly null.
   if (NumArgs == 1 && !Kind.isExplicitCast())
-    S.diagnoseNullableToNonnullConversion(Entity.getType(), 
Args.front()->getType(),
-                                          Kind.getLocation());
+    S.diagnoseNullableToNonnullConversion(
+        Entity.getType(), Args.front()->getType(), Kind.getLocation());
 
   // Determine the arguments required to actually perform the constructor
   // call.

``````````

</details>


https://github.com/llvm/llvm-project/pull/82705
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to