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 cdd11d694a406a98a16d6265168ee2fbe1b6a87c 7960402faaeabeba610cc56cba04638e355563c8 --extensions cpp,h,c -- lldb/test/API/tools/lldb-dap/exception/cpp/main.cpp lldb/test/API/tools/lldb-dap/stackTrace/main.c lldb/tools/lldb-dap/DAP.cpp lldb/tools/lldb-dap/DAP.h lldb/tools/lldb-dap/lldb-dap.cpp lldb/test/API/tools/lldb-dap/exception/main.c `````````` </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 b5ac9b3236..9ba82008aa 100644 --- a/lldb/tools/lldb-dap/lldb-dap.cpp +++ b/lldb/tools/lldb-dap/lldb-dap.cpp @@ -3328,8 +3328,8 @@ void request_stackTrace(const llvm::json::Object &request) { // If we loaded all the frames, set the total frame to the current total, // otherwise use the totalFrames to indicate more data is available. - body.try_emplace("totalFrames", - startFrame + stackFrames.size() + (done ? 0 : StackPageSize)); + body.try_emplace("totalFrames", startFrame + stackFrames.size() + + (done ? 0 : StackPageSize)); } body.try_emplace("stackFrames", std::move(stackFrames)); response.try_emplace("body", std::move(body)); `````````` </details> https://github.com/llvm/llvm-project/pull/105905 _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits