[clang] [llvm] [clang][DebugInfo] Allow function-local statics to be scoped within a lexical block (PR #213153)

via cfe-commits cfe-commits at lists.llvm.org
Fri Jul 31 08:25:29 PDT 2026


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 origin/main HEAD --extensions cpp,c -- clang/test/DebugInfo/X86/debug-info-static-locals.cpp clang/test/DebugInfo/X86/debug-info-thread-locals.cpp cross-project-tests/debuginfo-tests/dexter-tests/static-locals-in-lb.c clang/lib/CodeGen/CGDebugInfo.cpp --diff_from_common_commit
``````````

:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:

</details>

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

``````````diff
diff --git a/cross-project-tests/debuginfo-tests/dexter-tests/static-locals-in-lb.c b/cross-project-tests/debuginfo-tests/dexter-tests/static-locals-in-lb.c
index d93d61707..7206041f1 100644
--- a/cross-project-tests/debuginfo-tests/dexter-tests/static-locals-in-lb.c
+++ b/cross-project-tests/debuginfo-tests/dexter-tests/static-locals-in-lb.c
@@ -1,5 +1,5 @@
-// This test case verifies that function-local static variables with the same name
-// declared in different lexical blocks are read correctly in the debugger.
+// This test case verifies that function-local static variables with the same
+// name declared in different lexical blocks are read correctly in the debugger.
 // REQUIRES: lldb
 // UNSUPPORTED: system-windows
 //

``````````

</details>


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


More information about the cfe-commits mailing list