|
|
|
@ -48,7 +48,7 @@ namespace CppSharp
@@ -48,7 +48,7 @@ namespace CppSharp
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Parses a C++ source file to a translation unit.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public ParserResult ParseSourceFile(SourceFile file) |
|
|
|
|
public void ParseSourceFile(SourceFile file) |
|
|
|
|
{ |
|
|
|
|
var options = file.Options; |
|
|
|
|
options.ASTContext = ASTContext; |
|
|
|
@ -56,8 +56,7 @@ namespace CppSharp
@@ -56,8 +56,7 @@ namespace CppSharp
|
|
|
|
|
|
|
|
|
|
var result = Parser.ClangParser.ParseHeader(options); |
|
|
|
|
SourceParsed(file, result); |
|
|
|
|
|
|
|
|
|
return result; |
|
|
|
|
result.Dispose(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|