]> granicus.if.org Git - clang/commit
Allow IUnknown/IInterface types to come from extern C++
authorErich Keane <erich.keane@intel.com>
Tue, 26 Sep 2017 18:55:16 +0000 (18:55 +0000)
committerErich Keane <erich.keane@intel.com>
Tue, 26 Sep 2017 18:55:16 +0000 (18:55 +0000)
commitdcf0996993a4981e35914ede1b1c074feee0fcf0
treec74da92d68d4da54b683abbc53e5b2b4a14c45b2
parent07667dbf1f85bc9f495cb03f775ac181474ab6e3
Allow IUnknown/IInterface types to come from extern C++

It was brought up in response to my last implementation for
this struct-as-interface features that at least 1 header in
the MS SDK uses "extern C++" around an IUnknown declaration.

The previous implementation demanded that this type exist
in the TranslationUnit DeclContext.  This small change simply
also allows in the situation where we're extern "C++".

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@314235 91177308-0d34-0410-b5e6-96231b3b80d8
lib/AST/DeclCXX.cpp
test/SemaCXX/ms-iunknown.cpp