[Lldb-commits] [lldb] [lldb-dap] Add feature to remember last non-empty expression. (PR #107485)

via lldb-commits lldb-commits at lists.llvm.org
Thu Sep 12 11:00:08 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 247d3ea843cb20d8d75ec781cd603c8ececf8934 616017152f3f0611462e9863273754036b52f7eb --extensions cpp,h -- lldb/test/API/tools/lldb-dap/evaluate/main.cpp lldb/tools/lldb-dap/DAP.h lldb/tools/lldb-dap/LLDBUtils.cpp lldb/tools/lldb-dap/lldb-dap.cpp
``````````

</details>

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

``````````diff
diff --git a/lldb/tools/lldb-dap/lldb-dap.cpp b/lldb/tools/lldb-dap/lldb-dap.cpp
index 322899804b..19a65e6b32 100644
--- a/lldb/tools/lldb-dap/lldb-dap.cpp
+++ b/lldb/tools/lldb-dap/lldb-dap.cpp
@@ -1366,8 +1366,8 @@ void request_evaluate(const llvm::json::Object &request) {
 
   if (context == "repl" &&
       ((!expression.empty() &&
-       g_dap.DetectExpressionContext(frame, expression) ==
-       ExpressionContext::Command) ||
+        g_dap.DetectExpressionContext(frame, expression) ==
+            ExpressionContext::Command) ||
        (expression.empty() &&
         g_dap.last_expression_context == ExpressionContext::Command))) {
     // If the current expression is empty, and the last expression context was

``````````

</details>


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


More information about the lldb-commits mailing list