summaryrefslogtreecommitdiff
path: root/clang/test/CoverageMapping/system_macro.cpp
AgeCommit message (Collapse)Author
2024-07-10[Coverage] Suppress covmap and profdata for system headers. (#97952)NAKAMURA Takumi
With `system-headers-coverage=false`, functions defined in system headers were not instrumented but corresponding covmaps were emitted. It caused wasting covmap and profraw. This change improves: - Reduce object size (due to reduced covmap) - Reduce size of profraw (uninstrumented system headers occupied counters) - Smarter view of coverage report. Stubs of uninstrumented system headers will be no longer seen.
2024-07-09Update clang/test/system_macro.cpp for both -system-headers-coverage=true/falseNAKAMURA Takumi
Part of #97952
2023-02-06[Coverage] Map regions from system headersGulfem Savrun Yeniceri
Originally, the following commit removed mapping coverage regions for system headers: https://github.com/llvm/llvm-project/commit/93205af066341a53733046894bd75c72c99566db It might be viable and useful to collect coverage from system headers in some systems. This patch adds --system-headers-coverage option (disabled by default) to enable collecting coverage from system headers. Differential Revision: https://reviews.llvm.org/D143304
2020-09-21[Coverage] Add empty line regions to SkippedRegionsZequan Wu
Differential Revision: https://reviews.llvm.org/D84988
2016-07-26[Coverage] Do not write out coverage mappings with zero entriesVedant Kumar
After r275121, we stopped mapping regions from system headers. Lambdas declared in regions belonging to system headers started producing empty coverage mappings, since the files corresponding to their spelling locs were being ignored. The coverage reader doesn't know what to do with these empty mappings. This commit makes sure that we don't produce them and adds a test. I'll make the reader stricter in a follow-up commit. llvm-svn: 276716