Beispiel #1
0
        public ParserResult ParseHeader(string file)
        {
            var parserOptions = new ParserOptions
            {
                Library            = Library,
                FileName           = file,
                Verbose            = options.Verbose,
                IncludeDirs        = options.IncludeDirs,
                SystemIncludeDirs  = options.SystemIncludeDirs,
                Defines            = options.Defines,
                NoStandardIncludes = options.NoStandardIncludes,
                NoBuiltinIncludes  = options.NoBuiltinIncludes,
                MicrosoftMode      = options.MicrosoftMode,
                ToolSetToUse       = options.ToolsetToUse,
                TargetTriple       = options.TargetTriple,
                Abi = options.Abi
            };

            var result = ClangParser.ParseHeader(parserOptions);

            OnHeaderParsed(file, result);

            return(result);
        }