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 3bb25636414ee5b5eaf99c0bdcc191052c9d7ffb 
b8252ed88a15cda147b2f62329a9369130a8d694 -- 
clang/test/CodeGen/constexpr-c23-internal-linkage.c clang/lib/AST/Decl.cpp
``````````

</details>

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

``````````diff
diff --git a/clang/lib/AST/Decl.cpp b/clang/lib/AST/Decl.cpp
index 470b5b9b2f..490c4a2fc5 100644
--- a/clang/lib/AST/Decl.cpp
+++ b/clang/lib/AST/Decl.cpp
@@ -626,8 +626,8 @@ LinkageComputer::getLVForNamespaceScopeDecl(const NamedDecl 
*D,
 
     // C23 6.2.2p3
     // If the declaration of a file scope identifier for
-    // an object contains any of the storage-class specifiers static or 
constexpr
-    // then the identifier has internal linkage.
+    // an object contains any of the storage-class specifiers static or
+    // constexpr then the identifier has internal linkage.
     return LinkageInfo::internal();
   }
 

``````````

</details>


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

Reply via email to