diff --git a/src/AST/Declaration.cs b/src/AST/Declaration.cs index af63c65d..fdb37cf8 100644 --- a/src/AST/Declaration.cs +++ b/src/AST/Declaration.cs @@ -215,6 +215,18 @@ namespace CppSharp.AST } } + /// + /// Whether the declaration was explicitly set to be generated via + /// the GenerationKind propery as opposed to its default generated state. + /// + public virtual bool IsExplicitlyGenerated + { + get + { + return generationKind.HasValue && generationKind.Value == GenerationKind.Generate; + } + } + /// /// Whether the declaration internal bindings should be generated. ///