Skip to content

Commit 5ff3ff3

Browse files
authoredJul 12, 2024··
[libc] Migrate to using LIBC_NAMESPACE_DECL for namespace declaration (#98597)
This is a part of #97655.
1 parent dd86604 commit 5ff3ff3

File tree

2,328 files changed

+7576
-4679
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

2,328 files changed

+7576
-4679
lines changed
 

‎libc/benchmarks/LibcDefaultImplementations.cpp

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
#include "LibcFunctionPrototypes.h"
2+
#include "src/__support/macros/config.h"
23
#include "llvm/ADT/ArrayRef.h"
34
#include <cstddef>
45

5-
namespace LIBC_NAMESPACE {
6+
namespace LIBC_NAMESPACE_DECL {
67

78
extern void *memcpy(void *__restrict, const void *__restrict, size_t);
89
extern void *memmove(void *, const void *, size_t);
@@ -11,7 +12,7 @@ extern void bzero(void *, size_t);
1112
extern int memcmp(const void *, const void *, size_t);
1213
extern int bcmp(const void *, const void *, size_t);
1314

14-
} // namespace LIBC_NAMESPACE
15+
} // namespace LIBC_NAMESPACE_DECL
1516

1617
// List of implementations to test.
1718

‎libc/benchmarks/LibcMemoryBenchmarkMain.cpp

+3-2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
#include "LibcBenchmark.h"
1111
#include "LibcMemoryBenchmark.h"
1212
#include "MemorySizeDistributions.h"
13+
#include "src/__support/macros/config.h"
1314
#include "llvm/Support/CommandLine.h"
1415
#include "llvm/Support/ErrorHandling.h"
1516
#include "llvm/Support/FileSystem.h"
@@ -21,7 +22,7 @@
2122
#include <cstring>
2223
#include <unistd.h>
2324

24-
namespace LIBC_NAMESPACE {
25+
namespace LIBC_NAMESPACE_DECL {
2526

2627
extern void *memcpy(void *__restrict, const void *__restrict, size_t);
2728
extern void *memmove(void *, const void *, size_t);
@@ -30,7 +31,7 @@ extern void bzero(void *, size_t);
3031
extern int memcmp(const void *, const void *, size_t);
3132
extern int bcmp(const void *, const void *, size_t);
3233

33-
} // namespace LIBC_NAMESPACE
34+
} // namespace LIBC_NAMESPACE_DECL
3435

3536
namespace llvm {
3637
namespace libc_benchmarks {

0 commit comments

Comments
 (0)