Lines Matching refs:Region

295     for (const auto &Region : SourceRegions) {  in gatherFileIDs()  local
296 SourceLocation Loc = Region.getBeginLoc(); in gatherFileIDs()
389 auto Region = CounterMappingRegion::makeSkipped( in gatherSkippedRegions() local
394 if (Region.LineStart >= FileLineRanges[*CovFileID].first && in gatherSkippedRegions()
395 Region.LineEnd <= FileLineRanges[*CovFileID].second) in gatherSkippedRegions()
396 MappingRegions.push_back(Region); in gatherSkippedRegions()
403 for (const auto &Region : SourceRegions) { in emitSourceRegions() local
404 assert(Region.hasEndLoc() && "incomplete region"); in emitSourceRegions()
406 SourceLocation LocStart = Region.getBeginLoc(); in emitSourceRegions()
418 SourceLocation LocEnd = Region.getEndLoc(); in emitSourceRegions()
433 if (Region.isGap()) { in emitSourceRegions()
435 Region.getCounter(), *CovFileID, SR.LineStart, SR.ColumnStart, in emitSourceRegions()
437 } else if (Region.isBranch()) { in emitSourceRegions()
439 Region.getCounter(), Region.getFalseCounter(), *CovFileID, in emitSourceRegions()
443 Region.getCounter(), *CovFileID, SR.LineStart, SR.ColumnStart, in emitSourceRegions()
606 SourceMappingRegion &Region = RegionStack.back(); in popRegions() local
607 if (Region.hasStartLoc()) { in popRegions()
608 SourceLocation StartLoc = Region.getBeginLoc(); in popRegions()
609 SourceLocation EndLoc = Region.hasEndLoc() in popRegions()
610 ? Region.getEndLoc() in popRegions()
612 bool isBranch = Region.isBranch(); in popRegions()
629 SourceRegions.emplace_back(Region.getCounter(), NestedLoc, in popRegions()
649 SourceRegions.emplace_back(Region.getCounter(), StartLoc, in popRegions()
659 Region.setStartLoc(StartLoc); in popRegions()
660 Region.setEndLoc(EndLoc); in popRegions()
671 assert(SM.isWrittenInSameFile(Region.getBeginLoc(), EndLoc)); in popRegions()
672 assert(SpellingRegion(SM, Region).isInSourceOrder()); in popRegions()
673 SourceRegions.push_back(Region); in popRegions()
756 [&](const SourceMappingRegion &Region) { in isRegionAlreadyAdded() argument
757 return Region.getBeginLoc() == StartLoc && in isRegionAlreadyAdded()
758 Region.getEndLoc() == EndLoc && in isRegionAlreadyAdded()
759 Region.isBranch() == isBranch; in isRegionAlreadyAdded()
854 SourceMappingRegion &Region = getRegion(); in extendRegion() local
858 if (!Region.hasStartLoc()) in extendRegion()
859 Region.setStartLoc(StartLoc); in extendRegion()
865 SourceMappingRegion &Region = getRegion(); in terminateRegion() local
867 if (!Region.hasEndLoc()) in terminateRegion()
868 Region.setEndLoc(EndLoc); in terminateRegion()