llvm-project/llvm/test/tools/llvm-cov
Vedant Kumar a0b9725479 [llvm-cov] Add support for gcov --hash-filenames option
The patch adds support for --hash-filenames to llvm-cov. This option adds md5
hash of the source path to the name of the generated .gcov file. The option is
crucial for cases where you have multiple files with the same name but can't
use --preserve-paths as resulting filenames exceed the limit.

from gcov(1):

```
-x
--hash-filenames
    By default, gcov uses the full pathname of the source files to to
    create an output filename.  This can lead to long filenames that
    can overflow filesystem limits.  This option creates names of the
    form source-file##md5.gcov, where the source-file component is
    the final filename part and the md5 component is calculated from
    the full mangled name that would have been used otherwise.
```

Patch by Igor Ignatev!

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

llvm-svn: 354379
2019-02-19 20:45:00 +00:00
..
Inputs [llvm-cov] Add support for gcov --hash-filenames option 2019-02-19 20:45:00 +00:00
binary-formats.c [llvm-cov] Delete custom JSON serialization code (NFC) 2018-09-12 21:59:38 +00:00
combine_expansions.cpp
copy_block_helper.m
cov-comdat.test
deferred-region.cpp
demangle.test
dir-with-filtering.test
double_dots.c
gcov47_compatibility.cpp
hideUnexecutedSubviews.test
ifdef.c
ignore-filename-regex.test
lit.local.cfg
llvm-cov.test [llvm-cov] Add support for gcov --hash-filenames option 2019-02-19 20:45:00 +00:00
load-multiple-objects.test
multiple-files.test
multiple-objects.test
multithreaded-report.test
name_whitelist.test
native_separators.c
path_equivalence.c
prefer_used_to_unused.h
prevent_false_instantiations.h
range_based_for.cpp [gcov] Fix wrong line hit counts when multiple blocks are on the same line 2018-09-20 16:09:30 +00:00
report.cpp
scan-directory.test
showExpansions.cpp
showHighlightedRanges.cpp [llvm-cov] Delete custom JSON serialization code (NFC) 2018-09-12 21:59:38 +00:00
showLineExecutionCounts-lcov.test [llvm-cov] Add lcov tracefile export format. 2018-11-09 16:10:44 +00:00
showLineExecutionCounts.cpp [llvm-cov] Delete custom JSON serialization code (NFC) 2018-09-12 21:59:38 +00:00
showProjectSummary.cpp
showRegionMarkers.cpp [llvm-cov] Delete custom JSON serialization code (NFC) 2018-09-12 21:59:38 +00:00
showTabsHTML.cpp [llvm-cov] Use the new PrintHTMLEscaped utility 2018-05-30 23:35:14 +00:00
showTemplateInstantiations.cpp
sources-specified.test
style.test
threads.c
universal-binary.c [llvm-cov] Delete custom JSON serialization code (NFC) 2018-09-12 21:59:38 +00:00
warnings.h
zeroFunctionFile.c