llvm-project/clang-tools-extra/test/include-fixer
Sam McCall b27dc2245f [include-fixer] Add usage count to find-all-symbols.
Summary:
Add usage count to find-all-symbols.

FindAllSymbols now finds (most!) main-file usages of the discovered symbols.
The per-TU map output has NumUses=0 or 1 (only one use per file is counted).
The reducer aggregates these to find the number of files that use a symbol.

The NumOccurrences is now set to 1 in the mapper rather than being inferred by
the reducer, for consistency.

The idea here is to use NumUses for ranking: intuitively number of files that
use a symbol is more meaningful than number of files that include the header.

Reviewers: hokein, bkramer

Subscribers: cfe-commits

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

llvm-svn: 296446
2017-02-28 08:13:15 +00:00
..
Inputs [include-fixer] Add usage count to find-all-symbols. 2017-02-28 08:13:15 +00:00
commandline_options.cpp Remove most instances of REQUIRES: shell from the tools/extra tests 2016-08-16 16:07:46 +00:00
exit_on_fatal.cpp Remove most instances of REQUIRES: shell from the tools/extra tests 2016-08-16 16:07:46 +00:00
fixeddb.cpp Remove most instances of REQUIRES: shell from the tools/extra tests 2016-08-16 16:07:46 +00:00
include_path.cpp Remove most instances of REQUIRES: shell from the tools/extra tests 2016-08-16 16:07:46 +00:00
merge.test [include-fixer] Add usage count to find-all-symbols. 2017-02-28 08:13:15 +00:00
multiple_fixes.cpp [include-fixer] Support processing multiple files in one run. 2016-08-09 08:26:19 +00:00
prefix_variable.cpp Remove most instances of REQUIRES: shell from the tools/extra tests 2016-08-16 16:07:46 +00:00
query_symbol.cpp [include-fixer] Support finding headers for the symbol under cursor. 2016-09-07 16:34:35 +00:00
ranking.cpp Improve include fixer's ranking by taking the paths into account. 2017-01-11 10:32:47 +00:00
yamldb.cpp Remove most instances of REQUIRES: shell from the tools/extra tests 2016-08-16 16:07:46 +00:00
yamldb_autodetect.cpp Remove most instances of REQUIRES: shell from the tools/extra tests 2016-08-16 16:07:46 +00:00
yamldb_plugin.cpp [include-fixer] Don't skip repeated lookups in plugin mode. 2016-11-30 14:37:40 +00:00