Skip to content

Commit 859fc63

Browse files
committed
fix formatting
1 parent 86e6afb commit 859fc63

File tree

8 files changed

+11
-19
lines changed

8 files changed

+11
-19
lines changed

libc/include/llvm-libc-types/nl_catd.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
#ifndef LLVM_LIBC_TYPES_NL_CATD_H
1010
#define LLVM_LIBC_TYPES_NL_CATD_H
1111

12-
typedef void* nl_catd;
12+
typedef void *nl_catd;
1313

1414
#endif // LLVM_LIBC_TYPES_NL_CATD_H
15-

libc/src/nl_types/catclose.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,3 @@ LLVM_LIBC_FUNCTION(int, catclose, ([[maybe_unused]] nl_catd catalog)) {
1919
}
2020

2121
} // namespace LIBC_NAMESPACE_DECL
22-
23-

libc/src/nl_types/catclose.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,3 @@ int catclose(nl_catd catalog);
1919
} // namespace LIBC_NAMESPACE_DECL
2020

2121
#endif // LLVM_LIBC_SRC_NL_TYPES_CATCLOSE_H
22-

libc/src/nl_types/catgets.cpp

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,13 @@
1313

1414
namespace LIBC_NAMESPACE_DECL {
1515

16-
LLVM_LIBC_FUNCTION(char*, catgets, ([[maybe_unused]] nl_catd catalog,
17-
[[maybe_unused]] int set_number,
18-
[[maybe_unused]] int message_number,
19-
const char* message)) {
16+
LLVM_LIBC_FUNCTION(char *, catgets,
17+
([[maybe_unused]] nl_catd catalog,
18+
[[maybe_unused]] int set_number,
19+
[[maybe_unused]] int message_number, const char *message)) {
2020
// Message catalogs are not implemented.
2121
// Return backup message regardless of input.
22-
return const_cast<char*>(message);
22+
return const_cast<char *>(message);
2323
}
2424

2525
} // namespace LIBC_NAMESPACE_DECL
26-

libc/src/nl_types/catgets.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,3 @@ char *catgets(nl_catd catalog, int set_number, int message_number,
2020
} // namespace LIBC_NAMESPACE_DECL
2121

2222
#endif // LLVM_LIBC_SRC_NL_TYPES_CATGETS_H
23-
24-

libc/src/nl_types/catopen.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@
1414

1515
namespace LIBC_NAMESPACE_DECL {
1616

17-
LLVM_LIBC_FUNCTION(nl_catd, catopen, ([[maybe_unused]] const char *name,
18-
[[maybe_unused]] int flag)) {
17+
LLVM_LIBC_FUNCTION(nl_catd, catopen,
18+
([[maybe_unused]] const char *name,
19+
[[maybe_unused]] int flag)) {
1920
// Message catalogs are not implemented. Return error regardless of input.
2021
libc_errno = EINVAL;
2122
return reinterpret_cast<nl_catd>(-1);
2223
}
2324

2425
} // namespace LIBC_NAMESPACE_DECL
25-

libc/test/src/nl_types/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,3 @@ add_libc_test(
1212
libc.src.nl_types.catclose
1313
libc.src.nl_types.catgets
1414
)
15-

libc/test/src/nl_types/nl_types_test.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ TEST_F(LlvmLibcNlTypesTest, CatcloseFails) {
2525
}
2626

2727
TEST_F(LlvmLibcNlTypesTest, CatgetsFails) {
28-
const char* message = "message";
28+
const char *message = "message";
2929
// Note that we test for pointer equality here, since catgets
3030
// is expected to return the input argument as-is.
3131
ASSERT_EQ(LIBC_NAMESPACE::catgets(nullptr, 0, 0, message),
32-
const_cast<char*>(message));
32+
const_cast<char *>(message));
3333
}

0 commit comments

Comments
 (0)