From 2ae4f02eddfc8e647bccb9e685a49a94748ec0c0 Mon Sep 17 00:00:00 2001 From: triton Date: Sun, 1 Sep 2013 17:22:31 +0100 Subject: [PATCH] Check for typedefs in HasDeclarations. --- src/AST/Namespace.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } }