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 h,cpp,c --
clang/test/CodeGen/SystemZ/zos-ppa1-name.c clang/test/Driver/zos-ppa1-name.c
clang/include/clang/Basic/LangOptions.h clang/lib/CodeGen/Targets/SystemZ.cpp
clang/lib/Driver/ToolChains/ZOS.cpp clang/lib/Frontend/CompilerInvocation.cpp
llvm/lib/Target/SystemZ/SystemZAsmPrinter.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/lib/Driver/ToolChains/ZOS.cpp
b/clang/lib/Driver/ToolChains/ZOS.cpp
index bc4ff08e6..107f150fa 100644
--- a/clang/lib/Driver/ToolChains/ZOS.cpp
+++ b/clang/lib/Driver/ToolChains/ZOS.cpp
@@ -50,7 +50,8 @@ void ZOS::addClangTargetOptions(const ArgList &DriverArgs,
options::OPT_fno_sized_deallocation))
CC1Args.push_back("-fno-sized-deallocation");
- DriverArgs.AddLastArg(CC1Args, options::OPT_mzos_ppa1_name,
options::OPT_mno_zos_ppa1_name);
+ DriverArgs.AddLastArg(CC1Args, options::OPT_mzos_ppa1_name,
+ options::OPT_mno_zos_ppa1_name);
}
void zos::Assembler::ConstructJob(Compilation &C, const JobAction &JA,
diff --git a/clang/lib/Frontend/CompilerInvocation.cpp
b/clang/lib/Frontend/CompilerInvocation.cpp
index 5afe8487a..b84b082a8 100644
--- a/clang/lib/Frontend/CompilerInvocation.cpp
+++ b/clang/lib/Frontend/CompilerInvocation.cpp
@@ -4247,8 +4247,8 @@ bool CompilerInvocation::ParseLangArgs(LangOptions &Opts,
ArgList &Args,
Opts.IgnoreXCOFFVisibility = 1;
if (T.isOSzOS()) {
- if (const Arg *A = Args.getLastArg(OPT_mzos_ppa1_name,
- OPT_mno_zos_ppa1_name)) {
+ if (const Arg *A =
+ Args.getLastArg(OPT_mzos_ppa1_name, OPT_mno_zos_ppa1_name)) {
if (A->getOption().matches(OPT_mzos_ppa1_name))
Opts.setZOSPPA1Name(LangOptions::ZOSPPA1NameKind::Emit);
else
``````````
</details>
https://github.com/llvm/llvm-project/pull/207416
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits