[Lldb-commits] [lldb] [lldb] Trim and show embedded zeros in `charN_t` arrays (PR #195514)
via lldb-commits
lldb-commits at lists.llvm.org
Sun May 3 03:21:51 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 h,cpp -- lldb/include/lldb/DataFormatters/StringPrinter.h lldb/source/DataFormatters/StringPrinter.cpp lldb/source/Plugins/Language/CPlusPlus/CxxStringTypes.cpp lldb/test/API/lang/cpp/char1632_t/main.cpp lldb/test/API/lang/cpp/char8_t/main.cpp lldb/test/API/lang/cpp/wchar_t/main.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/lldb/test/API/lang/cpp/wchar_t/main.cpp b/lldb/test/API/lang/cpp/wchar_t/main.cpp
index 2b5fb675b..d32fa7082 100644
--- a/lldb/test/API/lang/cpp/wchar_t/main.cpp
+++ b/lldb/test/API/lang/cpp/wchar_t/main.cpp
@@ -23,8 +23,8 @@ int main (int argc, char const *argv[])
wchar_t wchar_zero = (wchar_t)0;
memcpy(array, array_source, 39 * sizeof(wchar_t));
- wchar_t aZero[32] = L"I\0have\0zeros";
- const wchar_t *cZero = L"I\0have\0zeros";
+ wchar_t aZero[32] = L"I\0have\0zeros";
+ const wchar_t *cZero = L"I\0have\0zeros";
- return 0; // break here
+ return 0; // break here
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/195514
More information about the lldb-commits
mailing list