Merge pull request #1169 from avast/fix-dotnet-class-namespace-loop

Ignore self-references when reconstructing full names of nested classes
This commit is contained in:
Marek Milkovič 2023-08-01 18:15:20 +02:00 committed by GitHub
commit 4e7b52890d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -666,6 +666,10 @@ bool DotnetTypeReconstructor::reconstructNestedClasses()
if (enclosingItr == defClassTable.end())
continue;
// Ignore self-references
if (nestedItr == enclosingItr)
continue;
const std::string& namespac = nestedItr->second->getNameSpace();
if (namespac.empty())
{