[llvm] [llvm-readobj][Object][COFF] Include COFF import file maching type in format string. (PR #78366)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 16 15:54:06 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 8947469ec1ad6d35b2feec0acc43d0d191514f0b 934c4fd397ce45fa1b824ba1ba88c96b091b85e1 -- llvm/include/llvm/Object/COFFImportFile.h llvm/lib/Object/COFFImportFile.cpp llvm/tools/llvm-readobj/COFFImportDumper.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Object/COFFImportFile.cpp b/llvm/lib/Object/COFFImportFile.cpp
index 2cb81b81b1..b60e32f498 100644
--- a/llvm/lib/Object/COFFImportFile.cpp
+++ b/llvm/lib/Object/COFFImportFile.cpp
@@ -34,7 +34,7 @@ namespace llvm {
namespace object {
StringRef COFFImportFile::getFileFormatName() const {
- switch(getMachine()) {
+ switch (getMachine()) {
case COFF::IMAGE_FILE_MACHINE_I386:
return "COFF-import-file-i386";
case COFF::IMAGE_FILE_MACHINE_AMD64:
``````````
</details>
https://github.com/llvm/llvm-project/pull/78366
More information about the llvm-commits
mailing list