[PATCH] D20803: Displaying coverage information for all source files present in a directory

Chakshu Grover via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 13 11:21:15 PDT 2016


chakshugrover updated this revision to Diff 60565.
chakshugrover marked 5 inline comments as not done.
chakshugrover added a comment.

Sorry for the delay. Please review the updated collectSourceFiles function. I had to explicitly handle the case when -filename-equivalence option is passed.

I am facing issue in creating the test case. As absolute path of files being compiled gets hardcoded inside the covmapping, I had to use -filename-equivalence while passing file names. I couldn't find a way to pass a directory name while using this option such that my code actually gets tested.
Please suggest how should i proceed with the test case.


http://reviews.llvm.org/D20803

Files:
  test/tools/llvm-cov/Inputs/cov_dir.covmapping
  test/tools/llvm-cov/Inputs/cov_dir.profdata
  test/tools/llvm-cov/Inputs/cov_dir/main.cpp
  test/tools/llvm-cov/Inputs/cov_dir/sub_dir/function.cpp
  test/tools/llvm-cov/cov_dir.cpp
  tools/llvm-cov/CodeCoverage.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D20803.60565.patch
Type: text/x-patch
Size: 3736 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160613/492ee9ad/attachment.bin>


More information about the llvm-commits mailing list