[all-commits] [llvm/llvm-project] 8a2539: [libc] move pthread macros to dedicated header (#1...
Nick Desaulniers via All-commits
all-commits at lists.llvm.org
Tue Dec 10 09:00:29 PST 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 8a25398615e4ad434231edba234db95d111bb6cf
https://github.com/llvm/llvm-project/commit/8a25398615e4ad434231edba234db95d111bb6cf
Author: Nick Desaulniers <nickdesaulniers at users.noreply.github.com>
Date: 2024-12-10 (Tue, 10 Dec 2024)
Changed paths:
M libc/include/CMakeLists.txt
M libc/include/llvm-libc-macros/CMakeLists.txt
A libc/include/llvm-libc-macros/pthread-macros.h
M libc/include/pthread.h.def
Log Message:
-----------
[libc] move pthread macros to dedicated header (#119286)
so that docgen can find our definitions.
Also eliminate the enums. POSIX is careful to call these "symbolic constants"
rather than specifically whether they are preprocessor macro defines or not.
Enums are useful to expressing mutual exclusion when the enum values are in
distinct enums which can improve type safety. Our enum values weren't using
that pattern though; they were all in one big anonymous enum.
Link:
https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/pthread.h.html
Fixes: #88997
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list