[llvm] [ObjCopy] Respect requirements of LC_ENCRYPTION_INFO commands (PR #120995)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Dec 23 11:14:16 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 711419e3025678511e3d26c4c30d757f9029d598 f6da133ed29d3889ed3b5b874b5e545ef8bfc63f --extensions h,cpp -- llvm/lib/ObjCopy/MachO/MachOLayoutBuilder.cpp llvm/lib/ObjCopy/MachO/MachOObject.cpp llvm/lib/ObjCopy/MachO/MachOObject.h llvm/lib/ObjCopy/MachO/MachOReader.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/ObjCopy/MachO/MachOObject.h b/llvm/lib/ObjCopy/MachO/MachOObject.h
index 6b5c5c8d57..b616677b83 100644
--- a/llvm/lib/ObjCopy/MachO/MachOObject.h
+++ b/llvm/lib/ObjCopy/MachO/MachOObject.h
@@ -340,7 +340,8 @@ struct Object {
/// The index of the LC_SEGMENT or LC_SEGMENT_64 load command
/// corresponding to the __TEXT segment.
std::optional<size_t> TextSegmentCommandIndex;
- /// The index of the LC_ENCRYPTION_INFO or LC_ENCRYPTION_INFO_64 load command if present.
+ /// The index of the LC_ENCRYPTION_INFO or LC_ENCRYPTION_INFO_64 load command
+ /// if present.
std::optional<size_t> EncryptionInfoCommandIndex;
BumpPtrAllocator Alloc;
``````````
</details>
https://github.com/llvm/llvm-project/pull/120995
More information about the llvm-commits
mailing list