diff --git a/src/AST/Namespace.cs b/src/AST/Namespace.cs index e70e3a96..06be0c09 100644 --- a/src/AST/Namespace.cs +++ b/src/AST/Namespace.cs @@ -251,7 +251,7 @@ namespace CppSharp.AST get { Predicate pred = (t => !t.Ignore); - return Enums.Exists(pred) || HasFunctions + return Enums.Exists(pred) || HasFunctions || Typedefs.Exists(pred) || Classes.Exists(pred) || Namespaces.Exists(n => n.HasDeclarations); } }