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/Arch/LoongArch.cpp lld/ELF/InputSection.cpp lld/ELF/Relocations.cpp
lld/ELF/Relocations.h --diff_from_common_commit
``````````
: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/InputSection.cpp b/lld/ELF/InputSection.cpp
index 3b0fab234..c68934fe5 100644
--- a/lld/ELF/InputSection.cpp
+++ b/lld/ELF/InputSection.cpp
@@ -728,9 +728,10 @@ static Relocation *getLoongArchPCAddHi20(Ctx &ctx,
const Defined *d = cast<Defined>(sym);
if (!d->section) {
- Err(ctx) << loSec->getLocation(loReloc.offset)
- << ": R_LARCH_*PCADD_LO12 relocation points to an absolute
symbol: "
- << sym->getName();
+ Err(ctx)
+ << loSec->getLocation(loReloc.offset)
+ << ": R_LARCH_*PCADD_LO12 relocation points to an absolute symbol: "
+ << sym->getName();
return nullptr;
}
InputSection *hiSec = cast<InputSection>(d->section);
``````````
</details>
https://github.com/llvm/llvm-project/pull/172618
_______________________________________________
llvm-branch-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits