[Lldb-commits] [lldb] [LLDB] Fix error returns in CastToBasicType and CastToEnumType in ValueObject. (PR #117401)
via lldb-commits
lldb-commits at lists.llvm.org
Fri Nov 22 15:46:08 PST 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 4ab5e90c9c52fcf9b4ed297c887b31219e41f7d8 b6051edba2a1ecae144ead48712fb511c204131a --extensions cpp -- lldb/source/ValueObject/ValueObject.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/lldb/source/ValueObject/ValueObject.cpp b/lldb/source/ValueObject/ValueObject.cpp
index 1093c4b665..af55379d47 100644
--- a/lldb/source/ValueObject/ValueObject.cpp
+++ b/lldb/source/ValueObject/ValueObject.cpp
@@ -3348,8 +3348,8 @@ lldb::ValueObjectSP ValueObject::CastToBasicType(CompilerType type) {
}
Status error = Status::FromErrorString("Unable to perform requested cast");
- return ValueObjectConstResult::Create(
- exe_ctx.GetBestExecutionContextScope(), error.Clone());
+ return ValueObjectConstResult::Create(exe_ctx.GetBestExecutionContextScope(),
+ error.Clone());
}
lldb::ValueObjectSP ValueObject::CastToEnumType(CompilerType type) {
@@ -3416,8 +3416,8 @@ lldb::ValueObjectSP ValueObject::CastToEnumType(CompilerType type) {
}
}
Status error = Status::FromErrorString("Cannot perform requested cast");
- return ValueObjectConstResult::Create(
- exe_ctx.GetBestExecutionContextScope(), error.Clone());
+ return ValueObjectConstResult::Create(exe_ctx.GetBestExecutionContextScope(),
+ error.Clone());
}
ValueObject::EvaluationPoint::EvaluationPoint() : m_mod_id(), m_exe_ctx_ref() {}
``````````
</details>
https://github.com/llvm/llvm-project/pull/117401
More information about the lldb-commits
mailing list