This is an archive of the discontinued LLVM Phabricator instance.

[include-cleaner] HTMLReport shows headers that would be inserted
ClosedPublic

Authored by sammccall on Nov 24 2022, 8:33 AM.

Details

Summary

Demo: https://htmlpreview.github.io/?https://gist.githubusercontent.com/sam-mccall/9730f933a2cf2e003365520b6636f731/raw/ab22a9b39ec3c0635fff3c4424c2574601218acb/PathMapping.cpp.html

Header insertion doesn't actually work that well (not this patch's fault):

  • we don't have ranking of locations/headers yet, so inserted header is pretty random
  • on my system, we get a lot of absolute "/usr/bin/../include/..." paths. This is a HeaderSearch bug introduced in D60873 that I'll send a fix for

Diff Detail

Event Timeline

sammccall created this revision.Nov 24 2022, 8:33 AM
Herald added a project: Restricted Project. · View Herald TranscriptNov 24 2022, 8:33 AM
Herald added a subscriber: mgrang. · View Herald Transcript
sammccall requested review of this revision.Nov 24 2022, 8:33 AM
Herald added a project: Restricted Project. · View Herald TranscriptNov 24 2022, 8:33 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
sammccall updated this revision to Diff 477809.Nov 24 2022, 8:37 AM

fix bold/italic of header-to-insert on symbol refs

sammccall edited the summary of this revision. (Show Details)Nov 24 2022, 8:38 AM
hokein accepted this revision.Nov 25 2022, 2:21 AM

nice!

This revision is now accepted and ready to land.Nov 25 2022, 2:21 AM
This revision was landed with ongoing or failed builds.Nov 25 2022, 2:57 AM
This revision was automatically updated to reflect the committed changes.