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 bcb64e13172c9b894be03ccefcf967e99949b32a
87f0b7326e5d05e5d61d2596a1bfbc63aa7d6935 --extensions cpp,h --
lldb/tools/lldb-dap/Breakpoint.cpp lldb/tools/lldb-dap/Breakpoint.h
lldb/tools/lldb-dap/BreakpointBase.cpp lldb/tools/lldb-dap/BreakpointBase.h
lldb/tools/lldb-dap/DAP.cpp lldb/tools/lldb-dap/DAPForward.h
lldb/tools/lldb-dap/ExceptionBreakpoint.cpp
lldb/tools/lldb-dap/ExceptionBreakpoint.h
lldb/tools/lldb-dap/FunctionBreakpoint.cpp
lldb/tools/lldb-dap/FunctionBreakpoint.h
lldb/tools/lldb-dap/InstructionBreakpoint.cpp
lldb/tools/lldb-dap/InstructionBreakpoint.h lldb/tools/lldb-dap/JSONUtils.cpp
lldb/tools/lldb-dap/JSONUtils.h lldb/tools/lldb-dap/SourceBreakpoint.cpp
lldb/tools/lldb-dap/SourceBreakpoint.h lldb/tools/lldb-dap/Watchpoint.cpp
lldb/tools/lldb-dap/Watchpoint.h 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/DAP.cpp b/lldb/tools/lldb-dap/DAP.cpp
index 9921e15e1e..647e28080b 100644
--- a/lldb/tools/lldb-dap/DAP.cpp
+++ b/lldb/tools/lldb-dap/DAP.cpp
@@ -80,10 +80,10 @@ void DAP::PopulateExceptionBreakpoints() {
lldb::eLanguageTypeC_plus_plus);
}
if (lldb::SBDebugger::SupportsLanguage(lldb::eLanguageTypeObjC)) {
- exception_breakpoints->emplace_back(*this, "objc_catch", "Objective-C
Catch",
- lldb::eLanguageTypeObjC);
- exception_breakpoints->emplace_back(*this, "objc_throw", "Objective-C
Throw",
- lldb::eLanguageTypeObjC);
+ exception_breakpoints->emplace_back(
+ *this, "objc_catch", "Objective-C Catch", lldb::eLanguageTypeObjC);
+ exception_breakpoints->emplace_back(
+ *this, "objc_throw", "Objective-C Throw", lldb::eLanguageTypeObjC);
}
if (lldb::SBDebugger::SupportsLanguage(lldb::eLanguageTypeSwift)) {
exception_breakpoints->emplace_back(*this, "swift_catch", "Swift Catch",
@@ -118,8 +118,8 @@ void DAP::PopulateExceptionBreakpoints() {
std::string throw_keyword =
raw_throw_keyword ? raw_throw_keyword : "throw";
- exception_breakpoints->emplace_back(*this,
- raw_lang_name + "_" + throw_keyword,
+ exception_breakpoints->emplace_back(
+ *this, raw_lang_name + "_" + throw_keyword,
capitalized_lang_name + " " + capitalize(throw_keyword), lang);
}
@@ -129,8 +129,8 @@ void DAP::PopulateExceptionBreakpoints() {
std::string catch_keyword =
raw_catch_keyword ? raw_catch_keyword : "catch";
- exception_breakpoints->emplace_back(*this,
- raw_lang_name + "_" + catch_keyword,
+ exception_breakpoints->emplace_back(
+ *this, raw_lang_name + "_" + catch_keyword,
capitalized_lang_name + " " + capitalize(catch_keyword), lang);
}
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/115208
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits