[Lldb-commits] [mlir] [libc] [llvm] [clang] [lldb] [NFC][ObjectSizeOffset] Use classes instead of std::pair (PR #76882)
via lldb-commits
lldb-commits at lists.llvm.org
Wed Jan 3 17:48:34 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 7df28fd61aa4603846b3ce16f9f988ccc780a584 278faa86119ed25214534951a9ccd078e4b69f1f -- llvm/include/llvm/Analysis/MemoryBuiltins.h llvm/lib/Analysis/MemoryBuiltins.cpp llvm/lib/Transforms/IPO/AttributorAttributes.cpp llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp llvm/lib/Transforms/Instrumentation/BoundsChecking.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/include/llvm/Analysis/MemoryBuiltins.h b/llvm/include/llvm/Analysis/MemoryBuiltins.h
index 10a9873937..10c5505c5b 100644
--- a/llvm/include/llvm/Analysis/MemoryBuiltins.h
+++ b/llvm/include/llvm/Analysis/MemoryBuiltins.h
@@ -190,8 +190,7 @@ Value *lowerObjectSizeCall(
/// SizeOffsetType - A base template class for the object size visitors. Used
/// here as a self-documenting way to handle the values rather than using a
/// \p std::pair.
-template <typename T>
-struct SizeOffsetType {
+template <typename T> struct SizeOffsetType {
T Size;
T Offset;
``````````
</details>
https://github.com/llvm/llvm-project/pull/76882
More information about the lldb-commits
mailing list