[llvm] [llvm][yaml2obj] Modify section header overriding timing (PR #130942)

via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 17 04:26:10 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 553da9634dc4bae215e6c850d2de3186d09f9da5 052b1a0327571b24e91d1da3efffe67f61fdd3cf --extensions cpp -- llvm/lib/ObjectYAML/ELFEmitter.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/lib/ObjectYAML/ELFEmitter.cpp b/llvm/lib/ObjectYAML/ELFEmitter.cpp
index e616e710db..1d7b9bfe48 100644
--- a/llvm/lib/ObjectYAML/ELFEmitter.cpp
+++ b/llvm/lib/ObjectYAML/ELFEmitter.cpp
@@ -206,7 +206,7 @@ template <class ELFT> class ELFState {
   NameToIdxMap DynSymN2I;
   ELFYAML::Object &Doc;
 
-  std::vector<std::pair<Elf_Shdr*, ELFYAML::Section>>
+  std::vector<std::pair<Elf_Shdr *, ELFYAML::Section>>
       SectionHeadersOverrideHelper;
 
   StringSet<> ExcludedSectionHeaders;
@@ -909,7 +909,7 @@ void ELFState<ELFT>::initSectionHeaders(std::vector<Elf_Shdr> &SHeaders,
 
 template <class ELFT>
 void ELFState<ELFT>::overrideSectionHeaders(std::vector<Elf_Shdr> &SHeaders) {
-  for (std::pair<Elf_Shdr*, ELFYAML::Section> &HeaderAndSec :
+  for (std::pair<Elf_Shdr *, ELFYAML::Section> &HeaderAndSec :
        SectionHeadersOverrideHelper)
     overrideFields<ELFT>(&HeaderAndSec.second, *HeaderAndSec.first);
 }

``````````

</details>


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


More information about the llvm-commits mailing list