[lld] [LLD][MINGW] Add `--undefined-glob` flag support (PR #109866)

via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 24 14:13:54 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 d7dd31e41791d71ad81af9cc4e7a26b26d4cb27e a979b40cd5b1cd272fd33c15e2a75dc272a124b9 --extensions cpp -- lld/MinGW/Driver.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/lld/MinGW/Driver.cpp b/lld/MinGW/Driver.cpp
index ec16cf374e..553698d4f5 100644
--- a/lld/MinGW/Driver.cpp
+++ b/lld/MinGW/Driver.cpp
@@ -514,7 +514,7 @@ bool link(ArrayRef<const char *> argsArr, llvm::raw_ostream &stdoutOS,
 
   for (auto *a : args.filtered(OPT_require_defined))
     add("-include:" + StringRef(a->getValue()));
-  for (auto *a: args.filtered(OPT_undefined_glob))
+  for (auto *a : args.filtered(OPT_undefined_glob))
     add("-includeglob:" + StringRef(a->getValue()));
   for (auto *a : args.filtered(OPT_undefined))
     add("-includeoptional:" + StringRef(a->getValue()));

``````````

</details>


https://github.com/llvm/llvm-project/pull/109866


More information about the llvm-commits mailing list