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 241fe83704476f81e3438e32b6d988ea123e624d 
4fe831e0bb779a3bda255033e475dcf3979daa61 -- 
lldb/test/API/tools/lldb-dap/variables/main.cpp 
lldb/tools/lldb-dap/JSONUtils.cpp
``````````

</details>

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

``````````diff
diff --git a/lldb/tools/lldb-dap/JSONUtils.cpp 
b/lldb/tools/lldb-dap/JSONUtils.cpp
index c33387a506..88f9df20b4 100644
--- a/lldb/tools/lldb-dap/JSONUtils.cpp
+++ b/lldb/tools/lldb-dap/JSONUtils.cpp
@@ -140,7 +140,8 @@ static std::string GetDescriptionTrimmed(lldb::SBValue 
&value) {
   value.GetDescription(stream);
   const char *description = stream.GetData();
   size_t length = stream.GetSize();
-  if (length > 0 && (description[length-1] == '\n' || description[length-1] == 
'\r')) {
+  if (length > 0 &&
+      (description[length - 1] == '\n' || description[length - 1] == '\r')) {
     --length;
   }
   return std::string(description, length);
@@ -199,7 +200,6 @@ TryCreateAutoSummaryForContainer(lldb::SBValue &v) {
       else
         os << separator << name << ":" << desc;
       separator = ", ";
-
     }
   }
   os << "}";

``````````

</details>


https://github.com/llvm/llvm-project/pull/77026
_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to