[clang-tools-extra] [llvm] [clang] [llvm-objcopy] Add --gap-fill and --pad-to options (PR #65815)

via cfe-commits cfe-commits at lists.llvm.org
Mon Dec 11 10:48:36 PST 2023


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 607f19cb947a25fe7ed131d983a90961f3c2541a 7670531cb21f0c3eeb3492106df72d7f7d2d6ae4 -- llvm/include/llvm/ObjCopy/CommonConfig.h llvm/include/llvm/ObjCopy/ObjCopy.h llvm/lib/ObjCopy/ConfigManager.cpp llvm/lib/ObjCopy/ELF/ELFObjcopy.cpp llvm/lib/ObjCopy/ELF/ELFObject.cpp llvm/lib/ObjCopy/ELF/ELFObject.h llvm/tools/llvm-objcopy/ObjcopyOptions.cpp llvm/tools/llvm-objcopy/llvm-objcopy.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/tools/llvm-objcopy/ObjcopyOptions.cpp b/llvm/tools/llvm-objcopy/ObjcopyOptions.cpp
index bc7b754e7c..aa22397f31 100644
--- a/llvm/tools/llvm-objcopy/ObjcopyOptions.cpp
+++ b/llvm/tools/llvm-objcopy/ObjcopyOptions.cpp
@@ -749,9 +749,9 @@ objcopy::parseObjcopyOptions(ArrayRef<const char *> RawArgsArr,
                                A->getValue());
     uint8_t ByteVal = Val.get();
     if (ByteVal != Val.get())
-      return createStringError(
-          std::errc::value_too_large,
-          "gap-fill value %s is out of range (0 to 0xff)", A->getValue());
+      return createStringError(std::errc::value_too_large,
+                               "gap-fill value %s is out of range (0 to 0xff)",
+                               A->getValue());
     Config.GapFill = ByteVal;
   }
 

``````````

</details>


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


More information about the cfe-commits mailing list