[libc-commits] [libc] [libc] fix more readability-identifier-naming lints (PR #83914)
via libc-commits
libc-commits at lists.llvm.org
Mon Mar 4 13:59: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 93e423f19fc5317ee208f77d8f36e677db124cc8 c95d43ba002b7e02527a9ebbe156e4b1bab4c943 -- libc/src/__support/blockstore.h libc/src/__support/integer_to_string.h libc/src/__support/math_extras.h libc/src/math/generic/hypotf.cpp libc/src/string/memory_utils/op_generic.h libc/src/string/memory_utils/op_x86.h libc/src/string/memory_utils/utils.h libc/src/string/memory_utils/x86_64/inline_memcpy.h libc/src/string/memory_utils/x86_64/inline_memset.h
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/libc/src/string/memory_utils/x86_64/inline_memset.h b/libc/src/string/memory_utils/x86_64/inline_memset.h
index 2eacc93fa7..584efcbea4 100644
--- a/libc/src/string/memory_utils/x86_64/inline_memset.h
+++ b/libc/src/string/memory_utils/x86_64/inline_memset.h
@@ -19,8 +19,10 @@ namespace LIBC_NAMESPACE {
namespace x86 {
// Size of one cache line for software prefetching
LIBC_INLINE_VAR constexpr size_t K_ONE_CACHELINE_SIZE = 64;
-LIBC_INLINE_VAR constexpr size_t K_TWO_CACHELINES_SIZE = K_ONE_CACHELINE_SIZE * 2;
-LIBC_INLINE_VAR constexpr size_t K_FIVE_CACHELINES_SIZE = K_ONE_CACHELINE_SIZE * 5;
+LIBC_INLINE_VAR constexpr size_t K_TWO_CACHELINES_SIZE =
+ K_ONE_CACHELINE_SIZE * 2;
+LIBC_INLINE_VAR constexpr size_t K_FIVE_CACHELINES_SIZE =
+ K_ONE_CACHELINE_SIZE * 5;
LIBC_INLINE_VAR constexpr bool K_USE_SOFTWARE_PREFETCHING_MEMSET =
LLVM_LIBC_IS_DEFINED(LIBC_COPT_MEMSET_X86_USE_SOFTWARE_PREFETCHING);
``````````
</details>
https://github.com/llvm/llvm-project/pull/83914
More information about the libc-commits
mailing list