[Lldb-commits] [lldb] [LLDB] Add Lexer (with tests) for DIL (Data Inspection Language). (PR #123521)

via lldb-commits lldb-commits at lists.llvm.org
Sun Jan 19 09:29:37 PST 2025


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 23a239267e8a1d20ed10d3545feaf2a2bb70b085 61a2607a70d90688d395321e846a3be58ccbebcb --extensions h,cpp -- lldb/include/lldb/ValueObject/DILLexer.h lldb/source/ValueObject/DILLexer.cpp lldb/unittests/ValueObject/DILLexerTests.cpp
``````````

</details>

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

``````````diff
diff --git a/lldb/unittests/ValueObject/DILLexerTests.cpp b/lldb/unittests/ValueObject/DILLexerTests.cpp
index ec6ff86b64..11fc5f94fe 100644
--- a/lldb/unittests/ValueObject/DILLexerTests.cpp
+++ b/lldb/unittests/ValueObject/DILLexerTests.cpp
@@ -142,28 +142,10 @@ TEST(DILLexerTests, MultiTokenLexTest) {
 
 TEST(DILLexerTests, IdentifiersTest) {
   std::vector<std::string> valid_identifiers = {
-    "$My_name1",
-    "$pc",
-    "abcd",
-    "ab cd",
-    "_",
-    "_a",
-    "_a_",
-    "a_b",
-    "this",
-    "self",
-    "a",
-    "MyName"
-  };
+      "$My_name1", "$pc", "abcd", "ab cd", "_", "_a",
+      "_a_",       "a_b", "this", "self",  "a", "MyName"};
   std::vector<std::string> invalid_identifiers = {
-    "234",
-    "2a",
-    "2",
-    "$",
-    "1MyName",
-    "",
-    "namespace"
-  };
+      "234", "2a", "2", "$", "1MyName", "", "namespace"};
 
   // Verify that all of the valid identifiers come out as identifier tokens.
   for (auto str : valid_identifiers) {

``````````

</details>


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


More information about the lldb-commits mailing list