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)
commit99eda60b49e6c483f8548eb69709d8b5a7bed7b8
tree538fc3a2bcfcb70c7ed4c23eaf1a7da18af23461
parent645f777e40c367e5a73acfc400677250a4661b32
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++".

llvm-svn: 314235
clang/lib/AST/DeclCXX.cpp
clang/test/SemaCXX/ms-iunknown.cpp