File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -23,12 +23,12 @@ public static void Main(string[] args)
23
23
ParseSourceFile ( file ) ;
24
24
}
25
25
26
- public static bool ParseSourceFile ( string file )
26
+ private static bool ParseSourceFile ( string file )
27
27
{
28
28
// Lets setup the options for parsing the file.
29
29
var parserOptions = new ParserOptions
30
30
{
31
- LanguageVersion = LanguageVersion . CPP11 ,
31
+ LanguageVersion = LanguageVersion . CPP20_GNU ,
32
32
33
33
// Verbose here will make sure the parser outputs some extra debugging
34
34
// information regarding include directories, which can be helpful when
@@ -37,13 +37,10 @@ public static bool ParseSourceFile(string file)
37
37
} ;
38
38
39
39
// This will setup the necessary system include paths and arguments for parsing.
40
- // It will probe into the registry (on Windows) and filesystem to find the paths
41
- // of the system toolchains and necessary include directories.
42
- parserOptions . Setup ( ) ;
40
+ parserOptions . Setup ( Platform . Host ) ;
43
41
44
42
// We create the Clang parser and parse the source code.
45
- var parser = new ClangParser ( ) ;
46
- var parserResult = parser . ParseSourceFile ( file , parserOptions ) ;
43
+ var parserResult = ClangParser . ParseSourceFile ( file , parserOptions ) ;
47
44
48
45
// If there was some kind of error parsing, then lets print some diagnostics.
49
46
if ( parserResult . Kind != ParserResultKind . Success )
You can’t perform that action at this time.
0 commit comments