[Lldb-commits] [lldb] [lldb][test] TestDataFormatterLibcxxStringSimulator.py: add new padding layout (PR #108169)

via lldb-commits lldb-commits at lists.llvm.org
Wed Sep 11 01:37:41 PDT 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 19f604edfc015b35999b3b95e94f18389e4b392d fd093d23400fc48b013cafceafc009fcb5f2142c --extensions cpp -- lldb/test/API/functionalities/data-formatter/data-formatter-stl/libcxx-simulators/string/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-stl/libcxx-simulators/string/main.cpp b/lldb/test/API/functionalities/data-formatter/data-formatter-stl/libcxx-simulators/string/main.cpp
index 84d21b5dd5..74ec6f04ce 100644
--- a/lldb/test/API/functionalities/data-formatter/data-formatter-stl/libcxx-simulators/string/main.cpp
+++ b/lldb/test/API/functionalities/data-formatter/data-formatter-stl/libcxx-simulators/string/main.cpp
@@ -45,14 +45,12 @@ template <class _CharT, size_t = sizeof(_CharT)> struct __padding {
 };
 
 template <class _CharT> struct __padding<_CharT, 1> {};
-#else // !SUBCLASS_PADDING
-template <size_t _PaddingSize>
-struct __padding {
+#else  // !SUBCLASS_PADDING
+template <size_t _PaddingSize> struct __padding {
   char __padding_[_PaddingSize];
 };
 
-template <>
-struct __padding<0> {};
+template <> struct __padding<0> {};
 #endif // SUBCLASS_PADDING
 #endif // ALTERNATE_LAYOUT
 

``````````

</details>


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


More information about the lldb-commits mailing list