From 28fe14198cf1da1f6bef42d4cba4cfbec35c7155 Mon Sep 17 00:00:00 2001 From: albert-github Date: Fri, 7 Sep 2018 14:39:16 +0200 Subject: Don't link to non existing / not accessible namespaces , in CSharp, in the source code In the following the 'test' and 'System' were linked in the source code, this should not be the case. using test; using System; using System.IO; namespace NON { } --- src/code.l | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/code.l b/src/code.l index 13d538b..5aa333c 100644 --- a/src/code.l +++ b/src/code.l @@ -983,7 +983,7 @@ static void generateClassOrGlobalLink(CodeOutputInterface &ol,const char *clName } } NamespaceDef *nd = getResolvedNamespace(className); - if (nd) + if (nd && nd->isLinkableInProject()) { g_theCallContext.setScope(nd); addToSearchIndex(className); -- cgit v0.12