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 --
lldb/source/Plugins/Platform/Windows/PlatformWindows.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/Platform/Windows/PlatformWindows.cpp
b/lldb/source/Plugins/Platform/Windows/PlatformWindows.cpp
index 8868b497b..8e81c1de5 100644
--- a/lldb/source/Plugins/Platform/Windows/PlatformWindows.cpp
+++ b/lldb/source/Plugins/Platform/Windows/PlatformWindows.cpp
@@ -423,8 +423,8 @@ uint32_t PlatformWindows::DoLoadImage(Process *process,
// handle currently.
options.SetTrapExceptions(false);
options.SetTimeout(process->GetUtilityExpressionTimeout());
- options.SetOneThreadTimeout(
- std::min<std::chrono::microseconds>(5,
process->GetUtilityExpressionTimeout() / 2));
+ options.SetOneThreadTimeout(std::min<std::chrono::microseconds>(
+ 5, process->GetUtilityExpressionTimeout() / 2));
options.SetIsForUtilityExpr(true);
ExpressionResults result =
@@ -935,8 +935,8 @@ extern "C" {
// handle currently.
options.SetTrapExceptions(false);
options.SetTimeout(process->GetUtilityExpressionTimeout());
- options.SetOneThreadTimeout(
- std::min<std::chrono::microseconds>(5,
process->GetUtilityExpressionTimeout() / 2));
+ options.SetOneThreadTimeout(std::min<std::chrono::microseconds>(
+ 5, process->GetUtilityExpressionTimeout() / 2));
ExpressionResults result = UserExpression::Evaluate(
context, options, expression, kLoaderDecls, value);
``````````
</details>
https://github.com/llvm/llvm-project/pull/213010
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits