Shadow only prompt definitions:

This prevents an assert (isClingShadowNamespace(D->getDeclContext()) && "D not in a __cling_N5xxx namespace?"), function hideDecl, file /build/jenkins/night/LABEL/mac1014/SPEC/soversion/V/master/root/interpreter/cling/lib/Interpreter/DefinitionShadower.cpp, line 61
This commit is contained in:
Axel Naumann 2020-04-16 09:04:08 +02:00 committed by jenkins
parent ae36b2aed0
commit 3882f1346b

View File

@ -83,8 +83,9 @@ namespace cling {
for (auto Prev : Previous) {
if (Prev == D)
continue;
if (isDefinition(Prev)
&& (!isDefinition(D) || !isClingShadowNamespace(Prev->getDeclContext())))
if (!isClingShadowNamespace(Prev->getDeclContext()))
continue;
if (isDefinition(Prev) && !isDefinition(D))
continue;
// If the found declaration is a function overload, do not invalidate it.
// For templated functions, Sema::IsOverload() does the right thing as per