[Lldb-commits] [lldb] [lldb][ClangModulesDeclVendor] Print Clang module loading errors to expression log instead of console (PR #166964)
via lldb-commits
lldb-commits at lists.llvm.org
Fri Nov 7 08:43:58 PST 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 origin/main HEAD --extensions h,cpp -- lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionParser.cpp lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionSourceCode.cpp lldb/source/Plugins/ExpressionParser/Clang/ClangModulesDeclVendor.cpp lldb/source/Plugins/ExpressionParser/Clang/ClangModulesDeclVendor.h lldb/source/Plugins/ExpressionParser/Clang/ClangUserExpression.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/source/Plugins/ExpressionParser/Clang/ClangUserExpression.cpp b/lldb/source/Plugins/ExpressionParser/Clang/ClangUserExpression.cpp
index 59135964b..7228b2b12 100644
--- a/lldb/source/Plugins/ExpressionParser/Clang/ClangUserExpression.cpp
+++ b/lldb/source/Plugins/ExpressionParser/Clang/ClangUserExpression.cpp
@@ -379,10 +379,9 @@ static void SetupDeclVendor(ExecutionContext &exe_ctx, Target *target,
if (!err)
return;
- llvm::handleAllErrors(
- std::move(err), [](const llvm::StringError &e) {
- LLDB_LOG(GetLog(LLDBLog::Expressions), "{0}", e.getMessage());
- });
+ llvm::handleAllErrors(std::move(err), [](const llvm::StringError &e) {
+ LLDB_LOG(GetLog(LLDBLog::Expressions), "{0}", e.getMessage());
+ });
}
ClangExpressionSourceCode::WrapKind ClangUserExpression::GetWrapKind() const {
``````````
</details>
https://github.com/llvm/llvm-project/pull/166964
More information about the lldb-commits
mailing list