This sorts based on the popularity of the header, not the symbol. If
there are mutliple matching symbols in one header we take the maximum
popularity for that header and deduplicate. If we know nothing we sort
lexicographically based on the header path.
Details
Details
- Reviewers
djasper ioeric - Commits
- rG658d28014bf9: [include-fixer] Rank symbols based on the number of occurrences we found while…
rCTE271283: [include-fixer] Rank symbols based on the number of occurrences we found while…
rL271283: [include-fixer] Rank symbols based on the number of occurrences we found…
Diff Detail
Diff Detail
Event Timeline
include-fixer/SymbolIndexManager.cpp | ||
---|---|---|
25 | Maybe use a DenseHashMap? | |
include-fixer/tool/ClangIncludeFixer.cpp | ||
101 | Can you please write a regular for loop with index instead? | |
105 | Add a comment that you are assigning fake occurrences to keep the existing test logic (with the first include being the most preferable). |
Maybe use a DenseHashMap?