Lines Matching refs:EndLoc

483                     Optional<SourceLocation> EndLoc = None) {  in pushRegion()
488 RegionStack.emplace_back(Count, StartLoc, EndLoc); in pushRegion()
575 SourceLocation EndLoc = Region.hasEndLoc() in popRegions() local
579 size_t EndDepth = locationDepth(EndLoc); in popRegions()
580 while (!SM.isWrittenInSameFile(StartLoc, EndLoc)) { in popRegions()
586 SourceLocation NestedLoc = getStartOfFileOrMacro(EndLoc); in popRegions()
587 assert(SM.isWrittenInSameFile(NestedLoc, EndLoc)); in popRegions()
589 if (!isRegionAlreadyAdded(NestedLoc, EndLoc)) in popRegions()
590 SourceRegions.emplace_back(Region.getCounter(), NestedLoc, EndLoc); in popRegions()
592 EndLoc = getPreciseTokenLocEnd(getIncludeOrExpansionLoc(EndLoc)); in popRegions()
593 if (EndLoc.isInvalid()) in popRegions()
613 Region.setEndLoc(EndLoc); in popRegions()
615 MostRecentLocation = EndLoc; in popRegions()
619 EndLoc == getEndOfFileOrMacro(EndLoc)) in popRegions()
620 MostRecentLocation = getIncludeOrExpansionLoc(EndLoc); in popRegions()
622 assert(SM.isWrittenInSameFile(Region.getBeginLoc(), EndLoc)); in popRegions()
634 !EndLoc.isMacroID()) in popRegions()
636 SourceMappingRegion(Counter::getZero(), EndLoc, None); in popRegions()
664 SourceLocation EndLoc = getEnd(S); in propagateCounts() local
665 size_t Index = pushRegion(TopCount, StartLoc, EndLoc); in propagateCounts()
674 MostRecentLocation = EndLoc; in propagateCounts()
681 bool isRegionAlreadyAdded(SourceLocation StartLoc, SourceLocation EndLoc) { in isRegionAlreadyAdded()
686 Region.getEndLoc() == EndLoc; in isRegionAlreadyAdded()
693 void adjustForOutOfOrderTraversal(SourceLocation EndLoc) { in adjustForOutOfOrderTraversal()
694 MostRecentLocation = EndLoc; in adjustForOutOfOrderTraversal()
790 SourceLocation EndLoc = getEnd(S); in terminateRegion() local
792 Region.setEndLoc(EndLoc); in terminateRegion()
796 LastTerminatedRegion = {EndLoc, RegionStack.size()}; in terminateRegion()
819 void fillGapAreaWithCount(SourceLocation StartLoc, SourceLocation EndLoc, in fillGapAreaWithCount()
821 if (StartLoc == EndLoc) in fillGapAreaWithCount()
823 assert(SpellingRegion(SM, StartLoc, EndLoc).isInSourceOrder()); in fillGapAreaWithCount()
825 size_t Index = pushRegion(Count, StartLoc, EndLoc); in fillGapAreaWithCount()
827 handleFileExit(EndLoc); in fillGapAreaWithCount()