mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-12-01 04:11:17 +00:00
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
4 lines
72 B
C
4 lines
72 B
C
// This header has no functions
|
|
|
|
#define NOFUNCTIONS(x) (x) > 0 ? 0 : 1
|