[PATCH] D87003: [llvm-cov] Allow commas in filenams passed to `-object` flag
Andrew Gallagher via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 10 14:28:28 PDT 2020
andrewjcg updated this revision to Diff 291085.
andrewjcg added a comment.
add test
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D87003/new/
https://reviews.llvm.org/D87003
Files:
llvm/test/tools/llvm-cov/Inputs/comma,in,path.covmapping
llvm/test/tools/llvm-cov/comma,in,path.test
llvm/tools/llvm-cov/CodeCoverage.cpp
Index: llvm/tools/llvm-cov/CodeCoverage.cpp
===================================================================
--- llvm/tools/llvm-cov/CodeCoverage.cpp
+++ llvm/tools/llvm-cov/CodeCoverage.cpp
@@ -544,8 +544,7 @@
cl::Positional, cl::desc("Covered executable or object file."));
cl::list<std::string> CovFilenames(
- "object", cl::desc("Coverage executable or object file"), cl::ZeroOrMore,
- cl::CommaSeparated);
+ "object", cl::desc("Coverage executable or object file"), cl::ZeroOrMore);
cl::list<std::string> InputSourceFiles(
cl::Positional, cl::desc("<Source files>"), cl::ZeroOrMore);
Index: llvm/test/tools/llvm-cov/comma,in,path.test
===================================================================
--- /dev/null
+++ llvm/test/tools/llvm-cov/comma,in,path.test
@@ -0,0 +1,3 @@
+# Test that llvm-cov's `-object` option handles path with comma.
+
+RUN: llvm-cov report -object %S/Inputs/comma,in,path.covmapping -instr-profile %S/Inputs/report.profdata
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D87003.291085.patch
Type: text/x-patch
Size: 1002 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200910/fec6b95d/attachment.bin>
More information about the llvm-commits
mailing list