diff --git a/src/CppAst/CppElement.cs b/src/CppAst/CppElement.cs index 3ea2cca..85d518a 100644 --- a/src/CppAst/CppElement.cs +++ b/src/CppAst/CppElement.cs @@ -56,6 +56,11 @@ public string FullParentName // root namespace here, just ignore~ p = null; } + else if (p is CppGlobalDeclarationContainer) + { + // root container here, just ignore~ + p = null; + } else { throw new NotImplementedException("Can not be here, not support type here!");