[clang] [clang][DebugInfo] Emit global variable definitions for static data members with constant initializers (PR #70639)

via cfe-commits cfe-commits at lists.llvm.org
Mon Oct 30 03:04:55 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 a902ca66428164b4f11dedf1c551393add511271 e3ae0862dd834ca54a096b3154bbbcc5a627014f -- clang/test/CodeGenCXX/debug-info-static-inline-member.cpp clang/lib/CodeGen/CGDebugInfo.cpp clang/lib/CodeGen/CGDebugInfo.h clang/test/CodeGenCXX/debug-info-class.cpp
``````````

</details>

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

``````````diff
diff --git a/clang/lib/CodeGen/CGDebugInfo.cpp b/clang/lib/CodeGen/CGDebugInfo.cpp
index 8b85fb03c05f..53a82e53fb29 100644
--- a/clang/lib/CodeGen/CGDebugInfo.cpp
+++ b/clang/lib/CodeGen/CGDebugInfo.cpp
@@ -5901,7 +5901,7 @@ void CGDebugInfo::finalize() {
   }
 
   for (auto const *VD : StaticDataMemberDefinitionsToEmit) {
-    assert (VD->isStaticDataMember());
+    assert(VD->isStaticDataMember());
 
     if (auto It = DeclCache.find(VD); It != DeclCache.end())
       continue;

``````````

</details>


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


More information about the cfe-commits mailing list