]> granicus.if.org Git - clang/commit
[modules] Allow the error on importing a C++ module within an extern "C"
authorRichard Smith <richard-llvm@metafoo.co.uk>
Tue, 13 Oct 2015 00:39:40 +0000 (00:39 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Tue, 13 Oct 2015 00:39:40 +0000 (00:39 +0000)
commit979b9b12342582b024d45baf4cba86b92585d151
tree35ac98b274147f83ae26aac0aa67d27a58ea7edf
parent113e8e1cef7b507a7d698349eac6c633280d0e95
[modules] Allow the error on importing a C++ module within an extern "C"
context (but otherwise at the top level) to be disabled, to support use of C++
standard library implementations that (legitimately) mark their <blah.h>
headers as being C++ headers from C libraries that wrap things in 'extern "C"'
a bit too enthusiastically.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@250137 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticSemaKinds.td
lib/Sema/SemaDecl.cpp
test/Modules/extern_c.cpp