-
Notifications
You must be signed in to change notification settings - Fork 0
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
"make private" section has weird prefixes before header names #1
Comments
Thanks for reporting. There's some logic inside IncludeGuardian to try and come up with a reasonable guess to what relative path we should report for an include and it seems to get tripped up a little in some situations. For example if we have a library
where users of this library add the include directory If I think in this case if I'm in the process of open sourcing IncludeGuardian and I can take a look (or anyone can) at this in a week or so. |
@nikic Sorry for the delay, the tool has been open sourced now at https://github.com/elliotgoodrich/includeguardian :D This is the code that builds up the "nice" path https://github.com/elliotgoodrich/includeguardian/blob/7f7eb80ab25ff785a9dd1a6a47e5b3caa987df0a/src/build_graph.cpp#L627-L658. It assumes that angled include directives ( By the way, I really like your site (https://llvm-compile-time-tracker.com/) to track LLVM compilation times. If you ever wanted to integrate includeguardian and needed some help (or had any questions on |
Running include-guardian 0.0.8 on LLVM, the "make private" section (and a few others) contains entries like these:
The actual name of the header is
clang/AST/Attrs.inc
, but there are a bunch of prefixes, possibly from places where it is included?I've uploaded the compile_commands.json file here, in case it is useful: https://gist.github.com/nikic/c1bee11144aafa4e872525dfca3e04e2
Also, thanks a lot for creating this tool, it's awesome!
The text was updated successfully, but these errors were encountered: