[Lldb-commits] [lldb] Support inline diagnostics in CommandReturnObject (PR #110901)
via lldb-commits
lldb-commits at lists.llvm.org
Fri Oct 4 18:02:07 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 99f527d2807b5a14dc7ee64d15405f09e95ee9f2 f59f186d66c96a4aefbebd58776f99dd294f47e8 --extensions h,cpp -- lldb/include/lldb/Utility/DiagnosticsRendering.h lldb/include/lldb/Expression/DiagnosticManager.h lldb/include/lldb/Interpreter/CommandReturnObject.h lldb/include/lldb/Utility/Status.h lldb/source/Commands/CommandObjectDWIMPrint.cpp lldb/source/Commands/CommandObjectExpression.cpp lldb/source/Interpreter/CommandInterpreter.cpp lldb/source/Interpreter/CommandReturnObject.cpp lldb/source/Utility/Status.cpp lldb/source/Utility/DiagnosticsRendering.cpp lldb/unittests/Utility/DiagnosticsRenderingTest.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/lldb/include/lldb/Interpreter/CommandReturnObject.h b/lldb/include/lldb/Interpreter/CommandReturnObject.h
index ef87342042..5f2e8c2ac9 100644
--- a/lldb/include/lldb/Interpreter/CommandReturnObject.h
+++ b/lldb/include/lldb/Interpreter/CommandReturnObject.h
@@ -10,9 +10,9 @@
#define LLDB_INTERPRETER_COMMANDRETURNOBJECT_H
#include "lldb/Host/StreamFile.h"
+#include "lldb/Utility/DiagnosticsRendering.h"
#include "lldb/Utility/StreamString.h"
#include "lldb/Utility/StreamTee.h"
-#include "lldb/Utility/DiagnosticsRendering.h"
#include "lldb/lldb-private.h"
#include "llvm/ADT/StringRef.h"
diff --git a/lldb/include/lldb/Utility/DiagnosticsRendering.h b/lldb/include/lldb/Utility/DiagnosticsRendering.h
index d17f889c35..037d3a8d97 100644
--- a/lldb/include/lldb/Utility/DiagnosticsRendering.h
+++ b/lldb/include/lldb/Utility/DiagnosticsRendering.h
@@ -66,9 +66,9 @@ public:
virtual llvm::ArrayRef<DiagnosticDetail> GetDetails() const;
static char ID;
};
-
+
const char *ExpressionResultAsCString(lldb::ExpressionResults result);
-
+
llvm::raw_ostream &PrintSeverity(Stream &stream, lldb::Severity severity);
void RenderDiagnosticDetails(Stream &stream,
diff --git a/lldb/source/Utility/DiagnosticsRendering.cpp b/lldb/source/Utility/DiagnosticsRendering.cpp
index 5c2066d75c..65376dced3 100644
--- a/lldb/source/Utility/DiagnosticsRendering.cpp
+++ b/lldb/source/Utility/DiagnosticsRendering.cpp
@@ -44,7 +44,7 @@ const char *ExpressionResultAsCString(ExpressionResults result) {
}
return "<unknown>";
}
-
+
llvm::raw_ostream &PrintSeverity(Stream &stream, lldb::Severity severity) {
llvm::HighlightColor color;
llvm::StringRef text;
``````````
</details>
https://github.com/llvm/llvm-project/pull/110901
More information about the lldb-commits
mailing list