Lines Matching refs:StartLoc

482   size_t pushRegion(Counter Count, Optional<SourceLocation> StartLoc = None,  in pushRegion()
484 if (StartLoc) { in pushRegion()
485 MostRecentLocation = *StartLoc; in pushRegion()
488 RegionStack.emplace_back(Count, StartLoc, EndLoc); in pushRegion()
574 SourceLocation StartLoc = Region.getBeginLoc(); in popRegions() local
578 size_t StartDepth = locationDepth(StartLoc); in popRegions()
580 while (!SM.isWrittenInSameFile(StartLoc, EndLoc)) { in popRegions()
600 SourceLocation NestedLoc = getEndOfFileOrMacro(StartLoc); in popRegions()
601 assert(SM.isWrittenInSameFile(StartLoc, NestedLoc)); in popRegions()
603 if (!isRegionAlreadyAdded(StartLoc, NestedLoc)) in popRegions()
604 SourceRegions.emplace_back(Region.getCounter(), StartLoc, NestedLoc); in popRegions()
606 StartLoc = getIncludeOrExpansionLoc(StartLoc); in popRegions()
607 if (StartLoc.isInvalid()) in popRegions()
612 Region.setStartLoc(StartLoc); in popRegions()
618 if (StartLoc == getStartOfFileOrMacro(StartLoc) && in popRegions()
663 SourceLocation StartLoc = getStart(S); in propagateCounts() local
665 size_t Index = pushRegion(TopCount, StartLoc, EndLoc); in propagateCounts()
673 if (SM.isBeforeInTranslationUnit(StartLoc, S->getBeginLoc())) in propagateCounts()
681 bool isRegionAlreadyAdded(SourceLocation StartLoc, SourceLocation EndLoc) { in isRegionAlreadyAdded()
685 return Region.getBeginLoc() == StartLoc && in isRegionAlreadyAdded()
777 SourceLocation StartLoc = getStart(S); in extendRegion() local
779 handleFileExit(StartLoc); in extendRegion()
781 Region.setStartLoc(StartLoc); in extendRegion()
783 completeDeferred(Region.getCounter(), StartLoc); in extendRegion()
819 void fillGapAreaWithCount(SourceLocation StartLoc, SourceLocation EndLoc, in fillGapAreaWithCount()
821 if (StartLoc == EndLoc) in fillGapAreaWithCount()
823 assert(SpellingRegion(SM, StartLoc, EndLoc).isInSourceOrder()); in fillGapAreaWithCount()
824 handleFileExit(StartLoc); in fillGapAreaWithCount()
825 size_t Index = pushRegion(Count, StartLoc, EndLoc); in fillGapAreaWithCount()