[lld] [lld][ELF] Enable link script to support absolute path matching (PR #156353)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 22 03:10:41 PDT 2025
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 -- lld/ELF/InputFiles.cpp lld/ELF/LinkerScript.h
``````````
: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/lld/ELF/InputFiles.cpp b/lld/ELF/InputFiles.cpp
index db73b5f49..341c502f7 100644
--- a/lld/ELF/InputFiles.cpp
+++ b/lld/ELF/InputFiles.cpp
@@ -30,8 +30,8 @@
#include "llvm/Support/Path.h"
#include "llvm/Support/TimeProfiler.h"
#include "llvm/Support/raw_ostream.h"
-#include <optional>
#include <filesystem>
+#include <optional>
using namespace llvm;
using namespace llvm::ELF;
``````````
</details>
https://github.com/llvm/llvm-project/pull/156353
More information about the llvm-commits
mailing list