diff options
| author | Mehdi Amini <joker.eph@gmail.com> | 2024-07-12 09:12:13 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-12 09:12:13 +0200 |
| commit | ce9035f5bd3aa09cbd899489cdbc7f6c18acf1e3 (patch) | |
| tree | 0f22897d7f178d7b3850db2397b4b59698336d26 /libc/src/threads/linux | |
| parent | 37d3f44a58d0a2a2e8782266acd66a6733984842 (diff) | |
Revert "[libc] Migrate to using LIBC_NAMESPACE_DECL for namespace declaration" (#98593)
Reverts llvm/llvm-project#98075
bots are broken
Diffstat (limited to 'libc/src/threads/linux')
| -rw-r--r-- | libc/src/threads/linux/Futex.h | 5 | ||||
| -rw-r--r-- | libc/src/threads/linux/cnd_broadcast.cpp | 5 | ||||
| -rw-r--r-- | libc/src/threads/linux/cnd_destroy.cpp | 5 | ||||
| -rw-r--r-- | libc/src/threads/linux/cnd_init.cpp | 5 | ||||
| -rw-r--r-- | libc/src/threads/linux/cnd_signal.cpp | 5 | ||||
| -rw-r--r-- | libc/src/threads/linux/cnd_wait.cpp | 5 |
6 files changed, 12 insertions, 18 deletions
diff --git a/libc/src/threads/linux/Futex.h b/libc/src/threads/linux/Futex.h index e7fde14629d5..4b426ac51ad1 100644 --- a/libc/src/threads/linux/Futex.h +++ b/libc/src/threads/linux/Futex.h @@ -9,10 +9,9 @@ #ifndef LLVM_LIBC_SRC_THREADS_LINUX_FUTEX_H #define LLVM_LIBC_SRC_THREADS_LINUX_FUTEX_H -#include "src/__support/macros/config.h" #include "src/__support/macros/properties/architectures.h" // Architecture macros -namespace LIBC_NAMESPACE_DECL { +namespace LIBC_NAMESPACE { #if (defined(LIBC_TARGET_ARCH_IS_AARCH64) || \ defined(LIBC_TARGET_ARCH_IS_X86_64)) @@ -28,6 +27,6 @@ static_assert(sizeof(FutexWordType) == 4, #error "Futex word base type not defined for the target architecture." #endif -} // namespace LIBC_NAMESPACE_DECL +} // namespace LIBC_NAMESPACE #endif // LLVM_LIBC_SRC_THREADS_LINUX_FUTEX_H diff --git a/libc/src/threads/linux/cnd_broadcast.cpp b/libc/src/threads/linux/cnd_broadcast.cpp index 5c5187461bbe..a56aaa21ee12 100644 --- a/libc/src/threads/linux/cnd_broadcast.cpp +++ b/libc/src/threads/linux/cnd_broadcast.cpp @@ -8,13 +8,12 @@ #include "src/threads/cnd_broadcast.h" #include "src/__support/common.h" -#include "src/__support/macros/config.h" #include "src/__support/threads/CndVar.h" // TODO: https://github.com/llvm/llvm-project/issues/92968 #include <threads.h> // cnd_t, thrd_error, thrd_success -namespace LIBC_NAMESPACE_DECL { +namespace LIBC_NAMESPACE { static_assert(sizeof(CndVar) == sizeof(cnd_t)); @@ -24,4 +23,4 @@ LLVM_LIBC_FUNCTION(int, cnd_broadcast, (cnd_t * cond)) { return thrd_success; } -} // namespace LIBC_NAMESPACE_DECL +} // namespace LIBC_NAMESPACE diff --git a/libc/src/threads/linux/cnd_destroy.cpp b/libc/src/threads/linux/cnd_destroy.cpp index 963991bddfe4..2b03b18c48e4 100644 --- a/libc/src/threads/linux/cnd_destroy.cpp +++ b/libc/src/threads/linux/cnd_destroy.cpp @@ -8,12 +8,11 @@ #include "src/threads/cnd_destroy.h" #include "src/__support/common.h" -#include "src/__support/macros/config.h" #include "src/__support/threads/CndVar.h" #include <threads.h> // cnd_t -namespace LIBC_NAMESPACE_DECL { +namespace LIBC_NAMESPACE { static_assert(sizeof(CndVar) == sizeof(cnd_t)); @@ -22,4 +21,4 @@ LLVM_LIBC_FUNCTION(void, cnd_destroy, (cnd_t * cond)) { CndVar::destroy(cndvar); } -} // namespace LIBC_NAMESPACE_DECL +} // namespace LIBC_NAMESPACE diff --git a/libc/src/threads/linux/cnd_init.cpp b/libc/src/threads/linux/cnd_init.cpp index 478011a5255e..d3d2c8a57d82 100644 --- a/libc/src/threads/linux/cnd_init.cpp +++ b/libc/src/threads/linux/cnd_init.cpp @@ -8,12 +8,11 @@ #include "src/threads/cnd_init.h" #include "src/__support/common.h" -#include "src/__support/macros/config.h" #include "src/__support/threads/CndVar.h" #include <threads.h> // cnd_t, thrd_error, thrd_success -namespace LIBC_NAMESPACE_DECL { +namespace LIBC_NAMESPACE { static_assert(sizeof(CndVar) == sizeof(cnd_t)); @@ -22,4 +21,4 @@ LLVM_LIBC_FUNCTION(int, cnd_init, (cnd_t * cond)) { return CndVar::init(cndvar) ? thrd_error : thrd_success; } -} // namespace LIBC_NAMESPACE_DECL +} // namespace LIBC_NAMESPACE diff --git a/libc/src/threads/linux/cnd_signal.cpp b/libc/src/threads/linux/cnd_signal.cpp index 0d218405d3ac..f144013e0882 100644 --- a/libc/src/threads/linux/cnd_signal.cpp +++ b/libc/src/threads/linux/cnd_signal.cpp @@ -8,12 +8,11 @@ #include "src/threads/cnd_signal.h" #include "src/__support/common.h" -#include "src/__support/macros/config.h" #include "src/__support/threads/CndVar.h" #include <threads.h> // cnd_t, thrd_error, thrd_success -namespace LIBC_NAMESPACE_DECL { +namespace LIBC_NAMESPACE { static_assert(sizeof(CndVar) == sizeof(cnd_t)); @@ -23,4 +22,4 @@ LLVM_LIBC_FUNCTION(int, cnd_signal, (cnd_t * cond)) { return thrd_success; } -} // namespace LIBC_NAMESPACE_DECL +} // namespace LIBC_NAMESPACE diff --git a/libc/src/threads/linux/cnd_wait.cpp b/libc/src/threads/linux/cnd_wait.cpp index 3633cc85277b..97cade3f231d 100644 --- a/libc/src/threads/linux/cnd_wait.cpp +++ b/libc/src/threads/linux/cnd_wait.cpp @@ -8,13 +8,12 @@ #include "src/threads/cnd_wait.h" #include "src/__support/common.h" -#include "src/__support/macros/config.h" #include "src/__support/threads/CndVar.h" #include "src/__support/threads/mutex.h" #include <threads.h> // cnd_t, mtx_t, thrd_error, thrd_success -namespace LIBC_NAMESPACE_DECL { +namespace LIBC_NAMESPACE { static_assert(sizeof(CndVar) == sizeof(cnd_t)); @@ -24,4 +23,4 @@ LLVM_LIBC_FUNCTION(int, cnd_wait, (cnd_t * cond, mtx_t *mtx)) { return cndvar->wait(mutex) ? thrd_error : thrd_success; } -} // namespace LIBC_NAMESPACE_DECL +} // namespace LIBC_NAMESPACE |
