]> granicus.if.org Git - clang/commit
Add [extern_c] attribute for modules, allowing a C module to be imported within an...
authorRichard Smith <richard-llvm@metafoo.co.uk>
Sun, 2 Mar 2014 05:58:18 +0000 (05:58 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Sun, 2 Mar 2014 05:58:18 +0000 (05:58 +0000)
commit1cafcfd06bb10505a7e570eb62148906c185879e
tree619139c0c2e3016f72f88f3a97497dffdcb52750
parentf4481e0e412e3f817e65d5ce1c835381dc7a7773
Add [extern_c] attribute for modules, allowing a C module to be imported within an extern "C" block in C++ code.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@202615 91177308-0d34-0410-b5e6-96231b3b80d8
15 files changed:
docs/Modules.rst
include/clang/Basic/DiagnosticSemaKinds.td
include/clang/Basic/Module.h
include/clang/Parse/Parser.h
lib/Basic/Module.cpp
lib/Frontend/FrontendActions.cpp
lib/Lex/ModuleMap.cpp
lib/Parse/ParseDeclCXX.cpp
lib/Sema/SemaDecl.cpp
test/Modules/Inputs/c-header-bad.h [new file with mode: 0644]
test/Modules/Inputs/c-header.h [new file with mode: 0644]
test/Modules/Inputs/cxx-header.h [new file with mode: 0644]
test/Modules/Inputs/module.map
test/Modules/extern_c.cpp [new file with mode: 0644]
test/Modules/extern_c_bad.cpp [new file with mode: 0644]