Closed Octogonapus closed 3 months ago
I changed the option name to generate_isystem_symbols
and tweaked the code a little.
After fixing the logic and trying it out, this new implementation is very slow because the ignorelist is quite large and running all of those regular expressions is slow. I would recommend to use the prior implementation because it is much faster.
@Octogonapus fixed again.
LGTM!
This PR adds a flag
output_system
(true
by default for backwards compatibility) which controls whether code in system headers will be output. Setting this flag to false allows the user to effectively avoid emitting code for dependencies by including those dependencies as system headers.I have tested this with my MWE in #484 and it solves that issue.
Fixes #484.