llvm-project/clang-tools-extra/include-fixer/tool
Manuel Klimek a47515ec4a Improve include fixer's ranking by taking the paths into account.
Instead of just using popularity, we also take into account how similar the
path of the current file is to the path of the header.
Our first approach is to get popularity into a reasonably small scale by taking
log2 (which is roughly intuitive to how humans would bucket popularity), and
multiply that with the number of matching prefix path fragments of the included
header with the current file.
Note that currently we do not take special care for unclean paths containing
"../" or "./".

Differential Revision: https://reviews.llvm.org/D28548

llvm-svn: 291664
2017-01-11 10:32:47 +00:00
..
CMakeLists.txt Revert "Revert "[Include-fixer] Install executables and support scripts"" 2016-08-17 20:58:14 +00:00
ClangIncludeFixer.cpp Improve include fixer's ranking by taking the paths into account. 2017-01-11 10:32:47 +00:00
clang-include-fixer-test.el Load clang-include-fixer.el from the unit test suite so that the unit tests can run in batch mode. 2016-10-25 11:30:28 +00:00
clang-include-fixer.el Fix grammar 2016-11-09 17:47:56 +00:00
clang-include-fixer.py [include-fixer] query-mode should be false by default. 2016-10-10 14:21:55 +00:00