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 c,h,cpp --
clang/lib/Driver/ToolChains/WebAssembly.cpp clang/test/Driver/wasm-toolchain.c
lld/wasm/Config.h lld/wasm/Driver.cpp lld/wasm/Relocations.cpp
lld/wasm/SyntheticSections.cpp lld/wasm/Writer.cpp
llvm/lib/Target/WebAssembly/WebAssemblySubtarget.cpp
llvm/lib/Target/WebAssembly/WebAssemblySubtarget.h
llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.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/lld/wasm/Config.h b/lld/wasm/Config.h
index 517789b2d..f2f1b895f 100644
--- a/lld/wasm/Config.h
+++ b/lld/wasm/Config.h
@@ -136,9 +136,7 @@ struct Config {
std::optional<std::vector<std::string>> extraFeatures;
llvm::SmallVector<uint8_t, 0> buildIdVector;
- bool isMultithreaded() const {
- return sharedMemory || cooperativeThreading;
- }
+ bool isMultithreaded() const { return sharedMemory || cooperativeThreading; }
};
// The Ctx object hold all other (non-configuration) global state.
diff --git a/lld/wasm/Driver.cpp b/lld/wasm/Driver.cpp
index 90c60da81..16a55b13a 100644
--- a/lld/wasm/Driver.cpp
+++ b/lld/wasm/Driver.cpp
@@ -561,8 +561,7 @@ static void readConfigs(opt::InputArgList &args) {
ctx.arg.soName = args.getLastArgValue(OPT_soname);
ctx.arg.importTable = args.hasArg(OPT_import_table);
ctx.arg.importUndefined = args.hasArg(OPT_import_undefined);
- ctx.arg.cooperativeThreading =
- args.hasArg(OPT_cooperative_threading);
+ ctx.arg.cooperativeThreading = args.hasArg(OPT_cooperative_threading);
;
ctx.arg.ltoo = args::getInteger(args, OPT_lto_O, 2);
if (ctx.arg.ltoo > 3)
@@ -759,8 +758,7 @@ static void setConfigs() {
}
if (ctx.arg.cooperativeThreading) {
if (ctx.arg.sharedMemory)
- error(
- "--cooperative-threading is incompatible with --shared-memory");
+ error("--cooperative-threading is incompatible with --shared-memory");
ctx.arg.libcallThreadContext = true;
}
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/200855
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits