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,cpp --
clang/lib/Driver/ToolChains/Arch/RISCV.cpp
clang/test/Driver/riscv-mtune-tune-features.c --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/lib/Driver/ToolChains/Arch/RISCV.cpp
b/clang/lib/Driver/ToolChains/Arch/RISCV.cpp
index a1bf62f80..5af6b8f7e 100644
--- a/clang/lib/Driver/ToolChains/Arch/RISCV.cpp
+++ b/clang/lib/Driver/ToolChains/Arch/RISCV.cpp
@@ -410,7 +410,7 @@ riscv::getRISCVTuneCPU(const Driver &D, const
llvm::opt::ArgList &Args,
auto Idx = TuneCPU.find(':');
if (Idx != StringRef::npos) {
if (!Args.hasFlag(options::OPT_mexperimental_mtune_syntax,
- options::OPT_mno_experimental_mtune_syntax, false)) {
+ options::OPT_mno_experimental_mtune_syntax, false)) {
// Only print this diagnostics if it's used for retrieving tune features
// to avoid printing the same error message multiple times.
if (TuneFeatures)
``````````
</details>
https://github.com/llvm/llvm-project/pull/215855
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits