|
|
@ -17,6 +17,8 @@ namespace CppSharp.Passes |
|
|
|
get { return Driver.Diagnostics; } |
|
|
|
get { return Driver.Diagnostics; } |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public bool ClearVisitedDeclarations = false; |
|
|
|
|
|
|
|
|
|
|
|
public virtual bool VisitLibrary(ASTContext context) |
|
|
|
public virtual bool VisitLibrary(ASTContext context) |
|
|
|
{ |
|
|
|
{ |
|
|
|
AstContext = context; |
|
|
|
AstContext = context; |
|
|
@ -34,6 +36,9 @@ namespace CppSharp.Passes |
|
|
|
if (unit.IsSystemHeader) |
|
|
|
if (unit.IsSystemHeader) |
|
|
|
return false; |
|
|
|
return false; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (ClearVisitedDeclarations) |
|
|
|
|
|
|
|
Visited.Clear(); |
|
|
|
|
|
|
|
|
|
|
|
VisitDeclarationContext(unit); |
|
|
|
VisitDeclarationContext(unit); |
|
|
|
|
|
|
|
|
|
|
|
return true; |
|
|
|
return true; |
|
|
|