[libc-commits] [libc] [libc] fix -Wmissing-braces (PR #77345)
via libc-commits
libc-commits at lists.llvm.org
Mon Jan 8 09:33:55 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 c52b467875e26d5d3554514489d965eda3ab0cd2 0cf83d9892c31e030044894225f5019cdef9db6b -- libc/src/__support/HashTable/generic/bitmask_impl.inc libc/src/__support/HashTable/table.h
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/libc/src/__support/HashTable/generic/bitmask_impl.inc b/libc/src/__support/HashTable/generic/bitmask_impl.inc
index d0cb342a60..56b540d568 100644
--- a/libc/src/__support/HashTable/generic/bitmask_impl.inc
+++ b/libc/src/__support/HashTable/generic/bitmask_impl.inc
@@ -113,7 +113,8 @@ struct Group {
}
LIBC_INLINE IteratableBitMask occupied() const {
- return {{static_cast<bitmask_t>(mask_available().word ^ repeat_byte(0x80))}};
+ return {
+ {static_cast<bitmask_t>(mask_available().word ^ repeat_byte(0x80))}};
}
};
} // namespace internal
``````````
</details>
https://github.com/llvm/llvm-project/pull/77345
More information about the libc-commits
mailing list