Lines Matching refs:EndLoc

314     std::optional<SourceLocation> EndLoc = std::nullopt;  in getNonScratchExpansionLoc()  local
319 EndLoc = ExpansionRange.getEnd(); in getNonScratchExpansionLoc()
321 return std::make_pair(Loc, EndLoc); in getNonScratchExpansionLoc()
383 auto EndLoc = NonScratchExpansionLoc.second; in gatherFileIDs() local
384 if (EndLoc.has_value()) { in gatherFileIDs()
387 Region.setEndLoc(EndLoc.value()); in gatherFileIDs()
393 auto EndLoc = SM.getSpellingLoc(Region.getEndLoc()); in gatherFileIDs() local
394 if (SM.isWrittenInSameFile(BeginLoc, EndLoc)) { in gatherFileIDs()
950 std::optional<SourceLocation> EndLoc = std::nullopt, in pushRegion()
961 assert((!EndLoc || EndLoc->isValid()) && "End location is not valid"); in pushRegion()
969 if (EndLoc && EndLoc->isInvalid()) in pushRegion()
970 EndLoc = std::nullopt; in pushRegion()
971 RegionStack.emplace_back(Count, FalseCount, BranchParams, StartLoc, EndLoc); in pushRegion()
978 std::optional<SourceLocation> EndLoc = std::nullopt) { in pushRegion()
980 RegionStack.emplace_back(DecisionParams, StartLoc, EndLoc); in pushRegion()
1005 SourceLocation EndLoc = Region.hasEndLoc() in popRegions() local
1010 size_t EndDepth = locationDepth(EndLoc); in popRegions()
1011 while (!SM.isWrittenInSameFile(StartLoc, EndLoc)) { in popRegions()
1021 SourceLocation NestedLoc = getStartOfFileOrMacro(EndLoc); in popRegions()
1022 assert(SM.isWrittenInSameFile(NestedLoc, EndLoc)); in popRegions()
1024 if (!isBranch && !isRegionAlreadyAdded(NestedLoc, EndLoc)) in popRegions()
1026 EndLoc); in popRegions()
1028 EndLoc = getPreciseTokenLocEnd(getIncludeOrExpansionLoc(EndLoc)); in popRegions()
1029 if (EndLoc.isInvalid()) in popRegions()
1056 Region.setEndLoc(EndLoc); in popRegions()
1059 MostRecentLocation = EndLoc; in popRegions()
1063 EndLoc == getEndOfFileOrMacro(EndLoc)) in popRegions()
1064 MostRecentLocation = getIncludeOrExpansionLoc(EndLoc); in popRegions()
1067 assert(SM.isWrittenInSameFile(Region.getBeginLoc(), EndLoc)); in popRegions()
1086 SourceLocation EndLoc = getEnd(S); in propagateCounts() local
1087 size_t Index = pushRegion(TopCount, StartLoc, EndLoc); in propagateCounts()
1096 MostRecentLocation = EndLoc; in propagateCounts()
1166 bool isRegionAlreadyAdded(SourceLocation StartLoc, SourceLocation EndLoc, in isRegionAlreadyAdded()
1171 Region.getEndLoc() == EndLoc && Region.isBranch() == isBranch; in isRegionAlreadyAdded()
1178 void adjustForOutOfOrderTraversal(SourceLocation EndLoc) { in adjustForOutOfOrderTraversal()
1179 MostRecentLocation = EndLoc; in adjustForOutOfOrderTraversal()
1279 SourceLocation EndLoc = getEnd(S); in terminateRegion() local
1281 Region.setEndLoc(EndLoc); in terminateRegion()
1340 void fillGapAreaWithCount(SourceLocation StartLoc, SourceLocation EndLoc, in fillGapAreaWithCount()
1342 if (StartLoc == EndLoc) in fillGapAreaWithCount()
1344 assert(SpellingRegion(SM, StartLoc, EndLoc).isInSourceOrder()); in fillGapAreaWithCount()
1346 size_t Index = pushRegion(Count, StartLoc, EndLoc); in fillGapAreaWithCount()
1348 handleFileExit(EndLoc); in fillGapAreaWithCount()
1403 const auto EndLoc = Skipped->getEnd(); in markSkipped() local
1405 if (NewStartLoc == EndLoc) in markSkipped()
1407 assert(SpellingRegion(SM, NewStartLoc, EndLoc).isInSourceOrder()); in markSkipped()
1409 size_t Index = pushRegion(Counter{}, NewStartLoc, EndLoc); in markSkipped()
1411 handleFileExit(EndLoc); in markSkipped()