[Lldb-commits] [lldb] [lldb][test] Add tests for target.max-string-summary-length setting (PR #77920)
via lldb-commits
lldb-commits at lists.llvm.org
Fri Jan 12 04:54:12 PST 2024
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 786cf76f434d2691878067dedb8b1eb99472810b 4de3716b55a22dc8b7dda621889089f390026739 -- lldb/test/API/functionalities/data-formatter/data-formatter-advanced/main.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/lldb/test/API/functionalities/data-formatter/data-formatter-advanced/main.cpp b/lldb/test/API/functionalities/data-formatter/data-formatter-advanced/main.cpp
index c78f381b8e..9d12ca30f9 100644
--- a/lldb/test/API/functionalities/data-formatter/data-formatter-advanced/main.cpp
+++ b/lldb/test/API/functionalities/data-formatter/data-formatter-advanced/main.cpp
@@ -1,6 +1,6 @@
+#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
-#include <stdint.h>
#include <string>
struct i_am_cool
@@ -166,18 +166,16 @@ int main (int argc, const char * argv[])
VeryLong a_long_guy;
- std::string some_string =
- "012345678901234567890123456789"
- "012345678901234567890123456789"
- "012345678901234567890123456789"
- "012345678901234567890123456789";
- char const* some_cstring = some_string.c_str();
+ std::string some_string = "012345678901234567890123456789"
+ "012345678901234567890123456789"
+ "012345678901234567890123456789"
+ "012345678901234567890123456789";
+ char const *some_cstring = some_string.c_str();
+
+ char const some_carr[] = "012345678901234567890123456789"
+ "012345678901234567890123456789"
+ "012345678901234567890123456789"
+ "012345678901234567890123456789";
- char const some_carr[] =
- "012345678901234567890123456789"
- "012345678901234567890123456789"
- "012345678901234567890123456789"
- "012345678901234567890123456789";
-
return 0; // Set break point at this line.
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/77920
More information about the lldb-commits
mailing list