Browse Source

Added an option to disable the visiting of return types of functions.

Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
pull/479/head
Dimitar Dobrev 10 years ago
parent
commit
83f58fe260
  1. 3
      src/AST/ASTVisitor.cs

3
src/AST/ASTVisitor.cs

@ -29,6 +29,7 @@ namespace CppSharp.AST @@ -29,6 +29,7 @@ namespace CppSharp.AST
public bool VisitNamespaceEvents = true;
public bool VisitNamespaceVariables = true;
public bool VisitFunctionReturnType = true;
public bool VisitFunctionParameters = true;
public bool VisitTemplateArguments = true;
}
@ -307,7 +308,7 @@ namespace CppSharp.AST @@ -307,7 +308,7 @@ namespace CppSharp.AST
return false;
var retType = function.ReturnType;
if (retType.Type != null)
if (Options.VisitFunctionReturnType && retType.Type != null)
retType.Type.Visit(this, retType.Qualifiers);
if (Options.VisitFunctionParameters)

Loading…
Cancel
Save