[PATCH] D76763: Export Segment.IsGapRegion to JSON
Dennis Felsing via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 25 04:17:56 PDT 2020
def created this revision.
def added a reviewer: vsk.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
So that external tools can make use of that information and not display such lines as uncovered.
Fixes https://bugs.llvm.org/show_bug.cgi?id=45300
Not sure if this requires increasing the json version?
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D76763
Files:
llvm/tools/llvm-cov/CoverageExporterJson.cpp
Index: llvm/tools/llvm-cov/CoverageExporterJson.cpp
===================================================================
--- llvm/tools/llvm-cov/CoverageExporterJson.cpp
+++ llvm/tools/llvm-cov/CoverageExporterJson.cpp
@@ -73,7 +73,7 @@
json::Array renderSegment(const coverage::CoverageSegment &Segment) {
return json::Array({Segment.Line, Segment.Col, clamp_uint64_to_int64(Segment.Count),
- Segment.HasCount, Segment.IsRegionEntry});
+ Segment.HasCount, Segment.IsRegionEntry, Segment.IsGapRegion});
}
json::Array renderRegion(const coverage::CountedRegion &Region) {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D76763.252535.patch
Type: text/x-patch
Size: 622 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200325/9900d2e8/attachment.bin>
More information about the llvm-commits
mailing list