xoofx / CppAst.NET

CppAst is a .NET library providing a C/C++ parser for header files powered by Clang/libclang with access to the full AST, comments and macros
BSD 2-Clause "Simplified" License
501 stars 66 forks source link

Adding support for skipping the parsing of SystemInclude Headers #12

Closed wackoisgod closed 4 years ago

wackoisgod commented 4 years ago

Right now if you have a larger project that includes many 3rd party headers or pulls in a lot of system headers, this can increase the parse time a huge amount especially if you don't care about the results of that content.

This adds an option that allows you to skip the parsing of SystemIncludes, which in my case resulted with my parse going from 38s to 1s (since a large chunk of the code pulls in 3rd party libs).

I do understand if this is not something you want to support but I thought I would make the PR anyway. :D

xoofx commented 4 years ago

I do understand if this is not something you want to support but I thought I would make the PR anyway. :D

As long as it is optional, it is welcome! Thanks!