[clang] [llvm] [WebAssembly] Sort target features (NFC) (PR #90777)

via cfe-commits cfe-commits at lists.llvm.org
Wed May 1 14:02:52 PDT 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 a1c12794226ffde0a84c96b9188a266eafd85fb3 b9fd03c2740fe924c0ea49bb78c9898412364105 -- clang/lib/Basic/Targets/WebAssembly.cpp clang/lib/Basic/Targets/WebAssembly.h clang/test/Driver/wasm-features.c llvm/lib/Target/WebAssembly/WebAssemblySubtarget.h
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/clang/lib/Basic/Targets/WebAssembly.cpp b/clang/lib/Basic/Targets/WebAssembly.cpp
index a363478680..b9c1f3c0f0 100644
--- a/clang/lib/Basic/Targets/WebAssembly.cpp
+++ b/clang/lib/Basic/Targets/WebAssembly.cpp
@@ -88,7 +88,7 @@ void WebAssemblyTargetInfo::getTargetDefines(const LangOptions &Opts,
     Builder.defineMacro("__wasm_half_precision__");
   if (HasMultivalue)
     Builder.defineMacro("__wasm_multivalue__");
- if (HasMutableGlobals)
+  if (HasMutableGlobals)
     Builder.defineMacro("__wasm_mutable_globals__");
   if (HasNontrappingFPToInt)
     Builder.defineMacro("__wasm_nontrapping_fptoint__");

``````````

</details>


https://github.com/llvm/llvm-project/pull/90777


More information about the cfe-commits mailing list