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 origin/main HEAD --extensions cpp,h --
lldb/include/lldb/API/SBExpressionOptions.h lldb/include/lldb/Target/Target.h
lldb/source/API/SBExpressionOptions.cpp
lldb/unittests/Expression/ExpressionTest.cpp --diff_from_common_commit
``````````
:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/lldb/include/lldb/API/SBExpressionOptions.h
b/lldb/include/lldb/API/SBExpressionOptions.h
index 6f7bd53d6..f0a37589f 100644
--- a/lldb/include/lldb/API/SBExpressionOptions.h
+++ b/lldb/include/lldb/API/SBExpressionOptions.h
@@ -109,7 +109,7 @@ public:
void SetAllowJIT(bool allow);
bool GetLanguageOptionAsBoolean(const char *option_name) const;
-
+
void SetLanguageOption(const char *option_name, bool value);
protected:
diff --git a/lldb/include/lldb/Target/Target.h
b/lldb/include/lldb/Target/Target.h
index 2583c1496..67581e745 100644
--- a/lldb/include/lldb/Target/Target.h
+++ b/lldb/include/lldb/Target/Target.h
@@ -308,7 +308,8 @@ private:
class EvaluateExpressionOptions {
public:
- EvaluateExpressionOptions() :
m_language_options_sp(std::make_shared<StructuredData::Dictionary>()) {}
+ EvaluateExpressionOptions()
+ : m_language_options_sp(std::make_shared<StructuredData::Dictionary>())
{}
// MSVC has a bug here that reports C4268: 'const' static/global data
// initialized with compiler generated default constructor fills the object
@@ -505,13 +506,13 @@ public:
private:
const StructuredData::Dictionary &GetLanguageOptions() const {
- assert (m_language_options_sp);
+ assert(m_language_options_sp);
return *m_language_options_sp;
}
StructuredData::Dictionary &GetLanguageOptions() {
- assert (m_language_options_sp);
+ assert(m_language_options_sp);
return *m_language_options_sp;
}
diff --git a/lldb/source/API/SBExpressionOptions.cpp
b/lldb/source/API/SBExpressionOptions.cpp
index e28c7ebfd..98a55733f 100644
--- a/lldb/source/API/SBExpressionOptions.cpp
+++ b/lldb/source/API/SBExpressionOptions.cpp
@@ -256,17 +256,19 @@ void SBExpressionOptions::SetAllowJIT(bool allow) {
: eExecutionPolicyNever);
}
-bool SBExpressionOptions::GetLanguageOptionAsBoolean(const char *option_name)
const {
+bool SBExpressionOptions::GetLanguageOptionAsBoolean(
+ const char *option_name) const {
LLDB_INSTRUMENT_VA(this, option_name);
return m_opaque_up->GetLanguageOptionAsBoolean(option_name);
}
-void SBExpressionOptions::SetLanguageOption(const char *option_name, bool
value) {
+void SBExpressionOptions::SetLanguageOption(const char *option_name,
+ bool value) {
LLDB_INSTRUMENT_VA(this, option_name, value);
m_opaque_up->SetLanguageOption(option_name, value);
- }
+}
EvaluateExpressionOptions *SBExpressionOptions::get() const {
return m_opaque_up.get();
diff --git a/lldb/unittests/Expression/ExpressionTest.cpp
b/lldb/unittests/Expression/ExpressionTest.cpp
index 4201516df..8bf8b20bc 100644
--- a/lldb/unittests/Expression/ExpressionTest.cpp
+++ b/lldb/unittests/Expression/ExpressionTest.cpp
@@ -10,8 +10,8 @@
#include "gtest/gtest.h"
#include "TestingSupport/TestUtilities.h"
-#include "lldb/Target/Target.h"
#include "lldb/Expression/Expression.h"
+#include "lldb/Target/Target.h"
#include "llvm/Testing/Support/Error.h"
using namespace lldb_private;
``````````
</details>
https://github.com/llvm/llvm-project/pull/179208
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits