[Lldb-commits] [lldb] [lldb][breakpoint] Grey out disabled breakpoints (PR #91404)
via lldb-commits
lldb-commits at lists.llvm.org
Mon Jun 16 09:24:22 PDT 2025
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 HEAD~1 HEAD --extensions cpp,h -- lldb/include/lldb/Core/Debugger.h lldb/source/Breakpoint/Breakpoint.cpp lldb/source/Core/Debugger.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/lldb/source/Breakpoint/Breakpoint.cpp b/lldb/source/Breakpoint/Breakpoint.cpp
index c2d3f4d23..c5cb14b0b 100644
--- a/lldb/source/Breakpoint/Breakpoint.cpp
+++ b/lldb/source/Breakpoint/Breakpoint.cpp
@@ -841,11 +841,12 @@ void Breakpoint::GetDescription(Stream *s, lldb::DescriptionLevel level,
assert(s != nullptr);
// Grey out any disabled breakpoints in the list of breakpoints.
- const bool highlight_disabled = !IsEnabled() && s->AsRawOstream().colors_enabled();
+ const bool highlight_disabled =
+ !IsEnabled() && s->AsRawOstream().colors_enabled();
if (highlight_disabled)
- s->Printf("%s", ansi::FormatAnsiTerminalCodes(
- GetTarget().GetDebugger().GetDisabledAnsiPrefix())
- .c_str());
+ s->Printf("%s", ansi::FormatAnsiTerminalCodes(
+ GetTarget().GetDebugger().GetDisabledAnsiPrefix())
+ .c_str());
if (!m_kind_description.empty()) {
if (level == eDescriptionLevelBrief) {
``````````
</details>
https://github.com/llvm/llvm-project/pull/91404
More information about the lldb-commits
mailing list