[Lldb-commits] [lldb] [lldb][test] Expect underlying types for typedefs with PDB in five tests (PR #238170)

via lldb-commits lldb-commits at lists.llvm.org
Mon Nov 2 16:57:25 PST 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 c -- lldb/test/API/commands/expression/int128/main.c lldb/test/API/commands/expression/urem-sign/main.c --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/lldb/test/API/commands/expression/int128/main.c b/lldb/test/API/commands/expression/int128/main.c
index 87a48510f..f35c4c11a 100644
--- a/lldb/test/API/commands/expression/int128/main.c
+++ b/lldb/test/API/commands/expression/int128/main.c
@@ -2,8 +2,9 @@ int main(void)
 {
     __int128_t n = 1;
     n = n + n;
-    return n; //%int128 = "__int128" if self.getDebugInfo() == "pdb" else "__int128_t"
-              //%self.expect("expression n", substrs=['(%s) $0 = 2' % int128])
-              //%self.expect("expression n + 6", substrs=['(%s) $1 = 8' % int128])
-              //%self.expect("expression n + n", substrs=['(%s) $2 = 4' % int128])
+    return n; //%int128 = "__int128" if self.getDebugInfo() == "pdb" else
+              //"__int128_t" %self.expect("expression n", substrs=['(%s) $0 = 2'
+              //% int128]) %self.expect("expression n + 6", substrs=['(%s) $1 =
+              //8' % int128]) %self.expect("expression n + n", substrs=['(%s) $2
+              //= 4' % int128])
 }
diff --git a/lldb/test/API/commands/expression/urem-sign/main.c b/lldb/test/API/commands/expression/urem-sign/main.c
index ccec0cb3e..c694daa7f 100644
--- a/lldb/test/API/commands/expression/urem-sign/main.c
+++ b/lldb/test/API/commands/expression/urem-sign/main.c
@@ -11,7 +11,9 @@ void func_1(void)
   l_19.f2 = 419;
   uint32_t l_4037 = 4294967295UL;
   // With PDB, the variables have the underlying type of the typedef.
-  l_19.f2 = g_463; //%self.expect("expr ((l_4037 % (-(g_463))) | l_19.f2)", substrs=['(%s) $0 = 358717883' % ("unsigned int" if self.getDebugInfo() == "pdb" else "uint32_t")])
+  l_19.f2 = g_463; //%self.expect("expr ((l_4037 % (-(g_463))) | l_19.f2)",
+                   //substrs=['(%s) $0 = 358717883' % ("unsigned int" if
+                   //self.getDebugInfo() == "pdb" else "uint32_t")])
 }
 int main()
 {

``````````

</details>


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


More information about the lldb-commits mailing list