[clang] [flang] [clang][driver] Use $ prefix with config file options to have them added after all of the command line options (PR #117573)
via cfe-commits
cfe-commits at lists.llvm.org
Fri Dec 6 14:21:00 PST 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 691e55643daa3470ff19b02a55e3e2503d2de0c9 537a1c6529410d2a8411b39f0072ef5c60ee865d --extensions c,cpp,h -- clang/include/clang/Driver/Driver.h clang/lib/Driver/Driver.cpp clang/test/Driver/config-file.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 7d192c15a9..92cc9805d0 100644
--- a/clang/lib/Driver/Driver.cpp
+++ b/clang/lib/Driver/Driver.cpp
@@ -1272,8 +1272,8 @@ Compilation *Driver::BuildCompilation(ArrayRef<const char *> ArgList) {
bool HasConfigFileTail = !ContainsError && CfgOptionsTail;
// All arguments, from both config file and command line.
- InputArgList Args = HasConfigFileHead ? std::move(*CfgOptionsHead)
- : std::move(*CLOptions);
+ InputArgList Args =
+ HasConfigFileHead ? std::move(*CfgOptionsHead) : std::move(*CLOptions);
if (HasConfigFileHead)
for (auto *Opt : *CLOptions)
``````````
</details>
https://github.com/llvm/llvm-project/pull/117573
More information about the cfe-commits
mailing list