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,c --
clang/test/CodeGen/mllvm-mc-target-options.c clang/lib/CodeGen/BackendUtil.cpp
clang/tools/driver/cc1as_main.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/clang/tools/driver/cc1as_main.cpp
b/clang/tools/driver/cc1as_main.cpp
index 0792a37b2..f034c3b53 100644
--- a/clang/tools/driver/cc1as_main.cpp
+++ b/clang/tools/driver/cc1as_main.cpp
@@ -471,10 +471,10 @@ static bool ExecuteAssemblerImpl(AssemblerInvocation
&Opts,
assert(MRI && "Unable to create target register info!");
// Seed the MC layer with any machine-code options supplied via -mllvm (for
- // example -large-eh-encoding). The cc1as flag-derived settings below
overwrite
- // whatever they cover, so -mllvm only contributes MC options that have no
- // dedicated cc1as flag. Absent any -mllvm flags this is equivalent to a
- // default-constructed MCTargetOptions.
+ // example -large-eh-encoding). The cc1as flag-derived settings below
+ // overwrite whatever they cover, so -mllvm only contributes MC options that
+ // have no dedicated cc1as flag. Absent any -mllvm flags this is equivalent
to
+ // a default-constructed MCTargetOptions.
MCTargetOptions MCOptions = mc::InitMCTargetOptionsFromFlags();
MCOptions.MCRelaxAll = Opts.RelaxAll;
MCOptions.EmitDwarfUnwind = Opts.EmitDwarfUnwind;
``````````
</details>
https://github.com/llvm/llvm-project/pull/210087
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits