[libc-commits] [libc] Include inline_strlen.h on aarch64 only if the target has vector instrucions (PR #170892)
via libc-commits
libc-commits at lists.llvm.org
Fri Dec 5 09:49:58 PST 2025
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 origin/main HEAD --extensions h -- libc/src/string/string_length.h --diff_from_common_commit
``````````
:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/libc/src/string/string_length.h b/libc/src/string/string_length.h
index 1dc59d007..089c76b8e 100644
--- a/libc/src/string/string_length.h
+++ b/libc/src/string/string_length.h
@@ -24,7 +24,8 @@
#endif
#if defined(LIBC_TARGET_ARCH_IS_X86)
#include "src/string/memory_utils/x86_64/inline_strlen.h"
-#elif defined(LIBC_TARGET_ARCH_IS_AARCH64) && (defined(LIBC_TARGET_CPU_HAS_SVE) || defined(__ARM_NEON))
+#elif defined(LIBC_TARGET_ARCH_IS_AARCH64) && \
+ (defined(LIBC_TARGET_CPU_HAS_SVE) || defined(__ARM_NEON))
#include "src/string/memory_utils/aarch64/inline_strlen.h"
#endif
``````````
</details>
https://github.com/llvm/llvm-project/pull/170892
More information about the libc-commits
mailing list