llvm-capstone/clang/lib
Ian Anderson a649e0a6e8 [clang][modules] giving the __stddef_ headers their own modules can cause redeclaration errors with -fbuiltin-headers-in-system-modules (#84127)
On Apple platforms, some of the stddef.h types are also declared in
system headers. In particular NULL has a conflicting declaration in
<sys/_types/_null.h>. When that's in a different module from
<__stddef_null.h>, redeclaration errors can occur.

Make the \_\_stddef_ headers be non-modular in
-fbuiltin-headers-in-system-modules and restore them back to not
respecting their header guards. Still define the header guards though.
__stddef_max_align_t.h was in _Builtin_stddef_max_align_t prior to the
addition of _Builtin_stddef, and it needs to stay in a module because
struct's can't be type merged. __stddef_wint_t.h didn't used to have a
module, but leave it in it current module since it doesn't really belong
to stddef.h.

(cherry picked from commit f50d3582b4844b86ad86372028e44b52c560ec7d)
2024-03-15 17:06:34 -07:00
..
Analysis [clang][dataflow] Process terminator condition within transferCFGBlock(). (#78127) 2024-01-23 10:19:06 +01:00
APINotes [APINotes] Use DenseMap::contains (NFC) 2023-12-22 14:23:25 -08:00
ARCMigrate [clang] Use SmallString::operator std::string (NFC) 2024-01-20 18:57:30 -08:00
AST [Clang][AST] Fix a crash on attaching doc comments (#78716) 2024-02-08 15:59:07 -08:00
ASTMatchers [clang][ASTMatcher] Add matchers for CXXFoldExpr (#71245) 2024-01-16 17:13:38 +01:00
Basic [clang][modules] giving the __stddef_ headers their own modules can cause redeclaration errors with -fbuiltin-headers-in-system-modules (#84127) 2024-03-15 17:06:34 -07:00
CodeGen [clang][fat-lto-objects] Make module flags match non-FatLTO pipelines (#83159) 2024-03-11 12:47:52 -07:00
CrossTU [clang] Use SmallString::operator std::string (NFC) 2024-01-20 18:57:30 -08:00
DirectoryWatcher [DirectoryWatcher] Include limits.h instead of MathExtras.h (NFC) 2023-12-10 12:12:54 -08:00
Driver [SPARC] Support reserving arbitrary general purpose registers (#74927) 2024-02-13 11:42:37 -08:00
Edit [clang] Use StringRef::{starts,ends}_with (NFC) (#75149) 2023-12-13 08:54:13 -08:00
ExtractAPI [clang][ExtractAPI] Ensure typedef to pointer types are preserved (#78584) 2024-01-22 15:41:29 +00:00
Format [clang-format] Don't remove parentheses in macro definitions (#81444) 2024-02-15 21:54:37 -08:00
Frontend [clang][FatLTO] Avoid UnifiedLTO until it can support WPD/CFI (#79061) 2024-01-23 14:04:52 -08:00
FrontendTool [clang] NFCI: Change returned AnalyzerOptions smart pointer to reference 2023-09-05 13:23:53 -07:00
Headers [clang][modules] giving the __stddef_ headers their own modules can cause redeclaration errors with -fbuiltin-headers-in-system-modules (#84127) 2024-03-15 17:06:34 -07:00
Index [c++20] P1907R1: Support for generalized non-type template arguments of scalar type. (#78041) 2024-01-21 21:28:57 +01:00
IndexSerialization [clang] Use StringRef::{starts,ends}_with (NFC) (#75149) 2023-12-13 08:54:13 -08:00
Interpreter Revert "[clang-repl] Enable native CPU detection by default (#77491)" (#79178) 2024-01-23 18:44:07 +01:00
Lex [clang][modules] giving the __stddef_ headers their own modules can cause redeclaration errors with -fbuiltin-headers-in-system-modules (#84127) 2024-03-15 17:06:34 -07:00
Parse [OpenACC] Implement 'device_type' clause parsing 2024-01-23 09:23:42 -08:00
Rewrite [clang] Use StringRef::{starts,ends}_with (NFC) (#75149) 2023-12-13 08:54:13 -08:00
Sema [Clang] [Sema] Handle placeholders in '.*' expressions (#83103) 2024-03-12 17:38:40 -07:00
Serialization [Serialization] Record whether the ODR is skipped (#82302) 2024-02-20 16:41:33 -08:00
StaticAnalyzer [analyzer] Fix crash on dereference invalid return value of getAdjustedParameterIndex() (#83585) 2024-03-12 21:53:55 -07:00
Support [Clang][RISCV] bfloat uses 'y' instead of 'b' (#76575) 2023-12-30 11:31:26 -05:00
Testing
Tooling [clang] Use SmallString::operator std::string (NFC) 2024-01-20 18:57:30 -08:00
CMakeLists.txt