]> granicus.if.org Git - clang/commit
When we enter a module within a linkage specification, switch the linkage
authorRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 18 May 2017 19:34:55 +0000 (19:34 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 18 May 2017 19:34:55 +0000 (19:34 +0000)
commit8f8b650525b0c48938b44c29dfd3df1699851d82
tree05f7749530259fb05c2ee8a94b7aee1ab47db7c4
parent00ba534163277c871bd74e91b86aa5f079d6d0af
When we enter a module within a linkage specification, switch the linkage
specification and the TU to the new module.

This is necessary to get the module ownership correct for entities that we
temporarily hang off the TranslationUnitDecl, such as template parameters and
function parameters.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@303373 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaDecl.cpp
test/Modules/extern_cxx.cpp [new file with mode: 0644]