cling/patches/clang_root_autoloading_fwd_declares.diff
Axel Naumann 05d4e8f8d9 Improve patch paths.
git-svn-id: http://root.cern.ch/svn/root/trunk@49365 27541ba8-7e3a-0410-8455-c3a389f83636
2013-04-26 12:11:20 +00:00

19 lines
636 B
Diff

--- ./tools/clang/lib/Sema/SemaLookup.cpp 2013-04-11 09:34:54.101163564 +0200
+++ ./tools/clang/lib/Sema/SemaLookup.cpp 2013-04-24 19:40:14.317498106 +0200
@@ -1250,8 +1250,14 @@
}
} else {
// Perform C++ unqualified name lookup.
- if (CppLookupName(R, S))
+ if (CppLookupName(R, S)) {
+ if (R.isSingleResult())
+ if (const TagDecl *TD = dyn_cast<TagDecl>(R.getFoundDecl())) {
+ if (!TD->getDefinition() && ExternalSource)
+ ExternalSource->LookupUnqualified(R, S);
+ }
return true;
+ }
}
// If we didn't find a use of this identifier, and if the identifier