r263076 - [Modules] Add stdatomic to the list of builtin headers

Ben Langmuir via cfe-commits cfe-commits at lists.llvm.org
Wed Mar 9 15:31:34 PST 2016


Author: benlangmuir
Date: Wed Mar  9 17:31:34 2016
New Revision: 263076

URL: http://llvm.org/viewvc/llvm-project?rev=263076&view=rev
Log:
[Modules] Add stdatomic to the list of builtin headers

Since it's provided by the compiler. This allows a system module map
file to declare a module for it.

No test change for cstd.m, since stdatomic.h doesn't function without a
relatively complete stdint.h and stddef.h, which tests using this module
don't provide.

rdar://problem/24931246

Modified:
    cfe/trunk/lib/Lex/ModuleMap.cpp

Modified: cfe/trunk/lib/Lex/ModuleMap.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Lex/ModuleMap.cpp?rev=263076&r1=263075&r2=263076&view=diff
==============================================================================
--- cfe/trunk/lib/Lex/ModuleMap.cpp (original)
+++ cfe/trunk/lib/Lex/ModuleMap.cpp Wed Mar  9 17:31:34 2016
@@ -151,6 +151,7 @@ static bool isBuiltinHeader(StringRef Fi
            .Case("limits.h", true)
            .Case("stdalign.h", true)
            .Case("stdarg.h", true)
+           .Case("stdatomic.h", true)
            .Case("stdbool.h", true)
            .Case("stddef.h", true)
            .Case("stdint.h", true)




More information about the cfe-commits mailing list