[Lldb-commits] [lldb] [lldb] Support case-insensitive regex matches (PR #95350)

via lldb-commits lldb-commits at lists.llvm.org
Wed Jun 12 21:48:25 PDT 2024


github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {darker}-->


:warning: Python code formatter, darker found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
darker --check --diff -r 3fce14569fc3611eddca41db055143285244736a...a2a362aeaf3d091c04a2eaefc604962730aa483c lldb/test/API/lang/cpp/class_static/TestStaticVariables.py
``````````

</details>

<details>
<summary>
View the diff from darker here.
</summary>

``````````diff
--- TestStaticVariables.py	2024-06-13 04:44:06.000000 +0000
+++ TestStaticVariables.py	2024-06-13 04:48:00.279771 +0000
@@ -262,11 +262,13 @@
 
         self.assertTrue(found_a, "Regex search found A::g_points")
         self.assertTrue(found_aa, "Regex search found AA::g_points")
 
         # Regex lowercase should find both as well.
-        val_list = target.FindGlobalVariables("a::g_points", 10, lldb.eMatchTypeRegexInsensitive)
+        val_list = target.FindGlobalVariables(
+            "a::g_points", 10, lldb.eMatchTypeRegexInsensitive
+        )
         self.assertEqual(val_list.GetSize(), 2, "Found A & AA")
 
         # Normal search for full name should find one, but it looks like we don't match
         # on identifier boundaries here yet:
         val_list = target.FindGlobalVariables("A::g_points", 10, lldb.eMatchTypeNormal)

``````````

</details>


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


More information about the lldb-commits mailing list