Lines Matching refs:StartLoc

577   size_t pushRegion(Counter Count, Optional<SourceLocation> StartLoc = None,  in pushRegion()
581 if (StartLoc && !FalseCount.hasValue()) { in pushRegion()
582 MostRecentLocation = *StartLoc; in pushRegion()
585 RegionStack.emplace_back(Count, FalseCount, StartLoc, EndLoc); in pushRegion()
608 SourceLocation StartLoc = Region.getBeginLoc(); in popRegions() local
613 size_t StartDepth = locationDepth(StartLoc); in popRegions()
615 while (!SM.isWrittenInSameFile(StartLoc, EndLoc)) { in popRegions()
645 SourceLocation NestedLoc = getEndOfFileOrMacro(StartLoc); in popRegions()
646 assert(SM.isWrittenInSameFile(StartLoc, NestedLoc)); in popRegions()
648 if (!isBranch && !isRegionAlreadyAdded(StartLoc, NestedLoc)) in popRegions()
649 SourceRegions.emplace_back(Region.getCounter(), StartLoc, in popRegions()
652 StartLoc = getIncludeOrExpansionLoc(StartLoc); in popRegions()
653 if (StartLoc.isInvalid()) in popRegions()
659 Region.setStartLoc(StartLoc); in popRegions()
666 if (StartLoc == getStartOfFileOrMacro(StartLoc) && in popRegions()
689 SourceLocation StartLoc = getStart(S); in propagateCounts() local
691 size_t Index = pushRegion(TopCount, StartLoc, EndLoc); in propagateCounts()
699 if (SM.isBeforeInTranslationUnit(StartLoc, S->getBeginLoc())) in propagateCounts()
752 bool isRegionAlreadyAdded(SourceLocation StartLoc, SourceLocation EndLoc, in isRegionAlreadyAdded()
757 return Region.getBeginLoc() == StartLoc && in isRegionAlreadyAdded()
855 SourceLocation StartLoc = getStart(S); in extendRegion() local
857 handleFileExit(StartLoc); in extendRegion()
859 Region.setStartLoc(StartLoc); in extendRegion()
921 void fillGapAreaWithCount(SourceLocation StartLoc, SourceLocation EndLoc, in fillGapAreaWithCount()
923 if (StartLoc == EndLoc) in fillGapAreaWithCount()
925 assert(SpellingRegion(SM, StartLoc, EndLoc).isInSourceOrder()); in fillGapAreaWithCount()
926 handleFileExit(StartLoc); in fillGapAreaWithCount()
927 size_t Index = pushRegion(Count, StartLoc, EndLoc); in fillGapAreaWithCount()