Lines Matching refs:Region
378 for (auto &Region : SourceRegions) { in gatherFileIDs() local
379 SourceLocation Loc = Region.getBeginLoc(); in gatherFileIDs()
386 Region.setStartLoc(Loc); in gatherFileIDs()
387 Region.setEndLoc(EndLoc.value()); in gatherFileIDs()
393 auto EndLoc = SM.getSpellingLoc(Region.getEndLoc()); in gatherFileIDs()
396 Region.setStartLoc(Loc); in gatherFileIDs()
397 Region.setEndLoc(SM.getFileLoc(Region.getEndLoc())); in gatherFileIDs()
499 auto Region = CounterMappingRegion::makeSkipped( in gatherSkippedRegions() local
504 if (Region.LineStart >= FileLineRanges[*CovFileID].first && in gatherSkippedRegions()
505 Region.LineEnd <= FileLineRanges[*CovFileID].second) in gatherSkippedRegions()
506 MappingRegions.push_back(Region); in gatherSkippedRegions()
513 for (const auto &Region : SourceRegions) { in emitSourceRegions() local
514 assert(Region.hasEndLoc() && "incomplete region"); in emitSourceRegions()
516 SourceLocation LocStart = Region.getBeginLoc(); in emitSourceRegions()
523 assert(!Region.isMCDCBranch() && !Region.isMCDCDecision() && in emitSourceRegions()
531 assert(!Region.isMCDCBranch() && !Region.isMCDCDecision() && in emitSourceRegions()
536 SourceLocation LocEnd = Region.getEndLoc(); in emitSourceRegions()
545 assert(!Region.isMCDCBranch() && !Region.isMCDCDecision() && in emitSourceRegions()
554 if (Region.isGap()) { in emitSourceRegions()
556 Region.getCounter(), *CovFileID, SR.LineStart, SR.ColumnStart, in emitSourceRegions()
558 } else if (Region.isSkipped()) { in emitSourceRegions()
562 } else if (Region.isBranch()) { in emitSourceRegions()
564 Region.getCounter(), Region.getFalseCounter(), *CovFileID, in emitSourceRegions()
566 Region.getMCDCParams())); in emitSourceRegions()
567 } else if (Region.isMCDCDecision()) { in emitSourceRegions()
569 Region.getMCDCDecisionParams(), *CovFileID, SR.LineStart, in emitSourceRegions()
573 Region.getCounter(), *CovFileID, SR.LineStart, SR.ColumnStart, in emitSourceRegions()
1001 SourceMappingRegion &Region = RegionStack.back(); in popRegions() local
1002 if (Region.hasStartLoc() && in popRegions()
1003 (Region.hasEndLoc() || RegionStack[ParentIndex].hasEndLoc())) { in popRegions()
1004 SourceLocation StartLoc = Region.getBeginLoc(); in popRegions()
1005 SourceLocation EndLoc = Region.hasEndLoc() in popRegions()
1006 ? Region.getEndLoc() in popRegions()
1008 bool isBranch = Region.isBranch(); in popRegions()
1025 SourceRegions.emplace_back(Region.getCounter(), NestedLoc, in popRegions()
1045 SourceRegions.emplace_back(Region.getCounter(), StartLoc, in popRegions()
1055 Region.setStartLoc(StartLoc); in popRegions()
1056 Region.setEndLoc(EndLoc); in popRegions()
1067 assert(SM.isWrittenInSameFile(Region.getBeginLoc(), EndLoc)); in popRegions()
1068 assert(SpellingRegion(SM, Region).isInSourceOrder()); in popRegions()
1069 SourceRegions.push_back(Region); in popRegions()
1169 llvm::reverse(SourceRegions), [&](const SourceMappingRegion &Region) { in isRegionAlreadyAdded() argument
1170 return Region.getBeginLoc() == StartLoc && in isRegionAlreadyAdded()
1171 Region.getEndLoc() == EndLoc && Region.isBranch() == isBranch; in isRegionAlreadyAdded()
1267 SourceMappingRegion &Region = getRegion(); in extendRegion() local
1271 if (!Region.hasStartLoc()) in extendRegion()
1272 Region.setStartLoc(StartLoc); in extendRegion()
1278 SourceMappingRegion &Region = getRegion(); in terminateRegion() local
1280 if (!Region.hasEndLoc()) in terminateRegion()
1281 Region.setEndLoc(EndLoc); in terminateRegion()