Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
@ -422,7 +422,7 @@ namespace CppSharp.AST
{
Func<Declaration, bool> pred = (t => t.IsGenerated);
return Enums.Exists(pred) || HasFunctions || Typedefs.Exists(pred)
|| Classes.Any(pred) || Namespaces.Exists(n => n.HasDeclarations) ||
|| Classes.Any() || Namespaces.Exists(n => n.HasDeclarations) ||
Templates.Any(pred);
}