From 35369c1eb6c4066a563c5a1766c5fb449dc85eb5 Mon Sep 17 00:00:00 2001 From: Alex Lorenz Date: Mon, 21 Nov 2016 14:00:04 +0000 Subject: [llvm-cov] Avoid 0% when reporting something that's 0/0 This commit makes llvm-cov avoid showing 0% (0/0) coverage for things like file function coverage, etc. in reports and HTML output. This can happen for files like headers that have macros but no functions. This commit makes llvm-cov report - (0/0) instead. rdar://29246480 Differential Revision: https://reviews.llvm.org/D26615 llvm-svn: 287539 --- .../tools/llvm-cov/Inputs/zeroFunctionFile.covmapping | Bin 0 -> 192 bytes 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 llvm/test/tools/llvm-cov/Inputs/zeroFunctionFile.covmapping (limited to 'llvm/test/tools/llvm-cov/Inputs/zeroFunctionFile.covmapping') diff --git a/llvm/test/tools/llvm-cov/Inputs/zeroFunctionFile.covmapping b/llvm/test/tools/llvm-cov/Inputs/zeroFunctionFile.covmapping new file mode 100644 index 00000000000..b2c198a8fe0 Binary files /dev/null and b/llvm/test/tools/llvm-cov/Inputs/zeroFunctionFile.covmapping differ -- cgit v1.2.3