[clang] The real option name and not the alias used is displayed in msgs when using a config file (PR #107613)
via cfe-commits
cfe-commits at lists.llvm.org
Fri Sep 6 10:21:05 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 c08f80e348ed84e4372d4a8687dfcaaa2df813aa fb0aff395cafb42efb10b0fbda36d32ede25aad3 --extensions cpp,c -- clang/lib/Driver/Driver.cpp clang/test/Driver/arm-execute-only.c
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/clang/lib/Driver/Driver.cpp b/clang/lib/Driver/Driver.cpp
index e4604f4e3e..5e2675db65 100644
--- a/clang/lib/Driver/Driver.cpp
+++ b/clang/lib/Driver/Driver.cpp
@@ -1001,8 +1001,8 @@ static void appendOneArg(InputArgList &Args, const Arg *Opt,
if (Opt->getAlias()) {
const Arg *Alias = Opt->getAlias();
unsigned Index = Args.MakeIndex(Alias->getSpelling());
- auto AliasCopy = std::make_unique<Arg>(Alias->getOption(), Args.getArgString(Index),
- Index, BaseArg);
+ auto AliasCopy = std::make_unique<Arg>(
+ Alias->getOption(), Args.getArgString(Index), Index, BaseArg);
AliasCopy->getValues() = Alias->getValues();
AliasCopy->setOwnsValues(false);
if (Alias->isClaimed())
``````````
</details>
https://github.com/llvm/llvm-project/pull/107613
More information about the cfe-commits
mailing list