[lld] [LLD] [COFF] Print a warning when using /dependentloadflag without load config (PR #117400)

via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 2 16:15:36 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 1fd8d3fea53e6e4573cdce55bd38ef0a7813a442 c69accc6ef981106637faeeef071646fbd0121f8 --extensions cpp -- lld/COFF/Writer.cpp
``````````

</details>

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

``````````diff
diff --git a/lld/COFF/Writer.cpp b/lld/COFF/Writer.cpp
index 110724c1a1..e4ac50351a 100644
--- a/lld/COFF/Writer.cpp
+++ b/lld/COFF/Writer.cpp
@@ -2608,7 +2608,8 @@ void Writer::prepareLoadConfig() {
     if (ctx.config.guardCF != GuardCFLevel::Off)
       warn("Control Flow Guard is enabled but '_load_config_used' is missing");
     if (ctx.config.dependentLoadFlags)
-        warn("_load_config_used not found, /dependentloadflag will have no effect");
+      warn("_load_config_used not found, /dependentloadflag will have no "
+           "effect");
     return;
   }
 

``````````

</details>


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


More information about the llvm-commits mailing list