llvm-project/clang-tools-extra/test
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
..
Unit Replace hardcoded comment at 'lit.site.cfg.in' 2016-04-16 07:01:42 +00:00
change-namespace [change-namespace] don't crash when type reference is in function type parameter list. 2016-12-14 17:01:52 +00:00
clang-apply-replacements [clang-tidy] Add check name to YAML export (clang-tools-extra part) 2017-01-03 14:36:13 +00:00
clang-move [clang-move] Support moving type alias declarations. 2017-01-04 14:50:49 +00:00
clang-query
clang-rename [clang-rename] Add test case for r287758. 2016-11-23 13:14:19 +00:00
clang-reorder-fields Add clang-reorder-fields to clang-tools-extra 2016-09-02 02:56:07 +00:00
clang-tidy [clang-tidy] Ignore default arguments in modernize-default-member-init 2017-01-04 17:33:55 +00:00
include-fixer Improve include fixer's ranking by taking the paths into account. 2017-01-11 10:32:47 +00:00
modularize Fixed some cases in the modularize assistant mode where header file names didn't translate to valid module names. 2016-03-21 23:05:14 +00:00
pp-trace Fix tests to not assume they know exactly what will be in Clang's predefines buffer. 2016-09-30 23:47:58 +00:00
.clang-format
CMakeLists.txt [clang-move] Make it support both relative and absolute file path arguments. 2016-10-04 09:05:31 +00:00
lit.cfg [find-all-symbols] Add a test to make sure merging actually works. 2016-05-31 12:12:19 +00:00
lit.site.cfg.in Replace hardcoded comment at 'lit.site.cfg.in' 2016-04-16 07:01:42 +00:00