We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 171fbaf commit dd29200Copy full SHA for dd29200
lib/ClangImporter/ClangImporter.cpp
@@ -6163,6 +6163,9 @@ TinyPtrVector<ValueDecl *> ClangRecordMemberLookup::evaluate(
6163
ClangModuleLoader *clangModuleLoader = ctx.getClangModuleLoader();
6164
for (auto foundEntry : directResults) {
6165
auto found = foundEntry.get<clang::NamedDecl *>();
6166
+ if (dyn_cast<clang::Decl>(found->getDeclContext()) !=
6167
+ recordDecl->getClangDecl())
6168
+ continue;
6169
6170
// Don't import constructors on foreign reference types.
6171
if (isa<clang::CXXConstructorDecl>(found) && isa<ClassDecl>(recordDecl))
0 commit comments