-
Notifications
You must be signed in to change notification settings - Fork 742
Filtering out builtins from --emit-clang-ast only half-works #571
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I think the check needs to be earlier. |
@fitzgen can do! It seems that the easiest thing to do would be to simply move the short-circuit in |
This sounds pretty good to me. The only concern is that if someone explicitly calls One sorta hacky way to do this would be to check the indent level and whether it is zero or not. The other way would be to make if context.options().emit_ast {
cursor.visit(|cur| clang::ast_dump(&cur, 0)); // <---- add filtering here
} I like the latter idea.
Not AFAIK |
#566 only fixed half the situation it seems. When I run with
--emit-clang-ast
, the builtin types are only half-filtered:Etc...
We should finish the job and not even print those shells out. @tsliang, want to finish this?
The text was updated successfully, but these errors were encountered: