Skip to content

Commit 6c7f5fd

Browse files
format
1 parent 4f34e64 commit 6c7f5fd

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

libc/src/string/string_utils.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,7 @@ LIBC_INLINE size_t string_length_wide_read(const char *src) {
8282

8383
// Returns the length of a string, denoted by the first occurrence
8484
// of a null terminator.
85-
template<typename T>
86-
LIBC_INLINE size_t string_length(const T *src) {
85+
template <typename T> LIBC_INLINE size_t string_length(const T *src) {
8786
#ifdef LIBC_COPT_STRING_UNSAFE_WIDE_READ
8887
// Unsigned int is the default size for most processors, and on x86-64 it
8988
// performs better than larger sizes when the src pointer can't be assumed to

libc/src/wchar/wcslen.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
namespace LIBC_NAMESPACE_DECL {
1717

18-
size_t wcslen (const wchar_t *src);
18+
size_t wcslen(const wchar_t *src);
1919

2020
} // namespace LIBC_NAMESPACE_DECL
2121

libc/test/src/wchar/wcslen_test.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
//
77
//===----------------------------------------------------------------------===//
88

9-
#include "src/wchar/wcslen.h"
10-
#include "hdr/types/wchar_t.h"
119
#include "hdr/types/size_t.h"
10+
#include "hdr/types/wchar_t.h"
11+
#include "src/wchar/wcslen.h"
1212
#include "test/UnitTest/Test.h"
1313

1414
TEST(LlvmLibcWCSLenTest, EmptyString) {

0 commit comments

Comments
 (0)