[llvm] [llvm-readobj] Fixes malformed json on JSON printed corefiles (PR #92835)
via llvm-commits
llvm-commits at lists.llvm.org
Mon May 20 15:51:23 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 50be0b1b967eeb479989ed26c13d17a53845dd1e 444feb5b9ac762cb59f42844eb56df8a236f04bc -- llvm/tools/llvm-readobj/ELFDumper.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/tools/llvm-readobj/ELFDumper.cpp b/llvm/tools/llvm-readobj/ELFDumper.cpp
index 4558dcdf62..d5f7ad3353 100644
--- a/llvm/tools/llvm-readobj/ELFDumper.cpp
+++ b/llvm/tools/llvm-readobj/ELFDumper.cpp
@@ -7841,7 +7841,9 @@ static bool printLLVMOMPOFFLOADNoteLLVMStyle(uint32_t NoteType,
return true;
}
-template <class ELFT> void LLVMELFDumper<ELFT>::printCoreNote(const CoreNote &Note, ScopedPrinter &W) const {
+template <class ELFT>
+void LLVMELFDumper<ELFT>::printCoreNote(const CoreNote &Note,
+ ScopedPrinter &W) const {
W.printNumber("Page Size", Note.PageSize);
for (const CoreFileMapping &Mapping : Note.Mappings) {
ListScope D(W, "Mapping");
@@ -7852,7 +7854,9 @@ template <class ELFT> void LLVMELFDumper<ELFT>::printCoreNote(const CoreNote &No
}
}
-template <class ELFT> void JSONELFDumper<ELFT>::printCoreNote(const CoreNote &Note, ScopedPrinter &W) const {
+template <class ELFT>
+void JSONELFDumper<ELFT>::printCoreNote(const CoreNote &Note,
+ ScopedPrinter &W) const {
W.printNumber("Page Size", Note.PageSize);
ListScope D(W, "Mappings");
for (const CoreFileMapping &Mapping : Note.Mappings) {
``````````
</details>
https://github.com/llvm/llvm-project/pull/92835
More information about the llvm-commits
mailing list