Lines Matching refs:EndLoc
866 std::optional<SourceLocation> EndLoc = std::nullopt, in pushRegion()
878 assert((!EndLoc || EndLoc->isValid()) && "End location is not valid"); in pushRegion()
886 if (EndLoc && EndLoc->isInvalid()) in pushRegion()
887 EndLoc = std::nullopt; in pushRegion()
890 StartLoc, EndLoc); in pushRegion()
897 std::optional<SourceLocation> EndLoc = std::nullopt) { in pushRegion()
900 EndLoc); in pushRegion()
925 SourceLocation EndLoc = Region.hasEndLoc() in popRegions() local
930 size_t EndDepth = locationDepth(EndLoc); in popRegions()
931 while (!SM.isWrittenInSameFile(StartLoc, EndLoc)) { in popRegions()
941 SourceLocation NestedLoc = getStartOfFileOrMacro(EndLoc); in popRegions()
942 assert(SM.isWrittenInSameFile(NestedLoc, EndLoc)); in popRegions()
944 if (!isBranch && !isRegionAlreadyAdded(NestedLoc, EndLoc)) in popRegions()
946 EndLoc); in popRegions()
948 EndLoc = getPreciseTokenLocEnd(getIncludeOrExpansionLoc(EndLoc)); in popRegions()
949 if (EndLoc.isInvalid()) in popRegions()
976 Region.setEndLoc(EndLoc); in popRegions()
979 MostRecentLocation = EndLoc; in popRegions()
983 EndLoc == getEndOfFileOrMacro(EndLoc)) in popRegions()
984 MostRecentLocation = getIncludeOrExpansionLoc(EndLoc); in popRegions()
987 assert(SM.isWrittenInSameFile(Region.getBeginLoc(), EndLoc)); in popRegions()
1006 SourceLocation EndLoc = getEnd(S); in propagateCounts() local
1007 size_t Index = pushRegion(TopCount, StartLoc, EndLoc); in propagateCounts()
1016 MostRecentLocation = EndLoc; in propagateCounts()
1084 bool isRegionAlreadyAdded(SourceLocation StartLoc, SourceLocation EndLoc, in isRegionAlreadyAdded()
1089 Region.getEndLoc() == EndLoc && Region.isBranch() == isBranch; in isRegionAlreadyAdded()
1096 void adjustForOutOfOrderTraversal(SourceLocation EndLoc) { in adjustForOutOfOrderTraversal()
1097 MostRecentLocation = EndLoc; in adjustForOutOfOrderTraversal()
1200 SourceLocation EndLoc = getEnd(S); in terminateRegion() local
1202 Region.setEndLoc(EndLoc); in terminateRegion()
1261 void fillGapAreaWithCount(SourceLocation StartLoc, SourceLocation EndLoc, in fillGapAreaWithCount()
1263 if (StartLoc == EndLoc) in fillGapAreaWithCount()
1265 assert(SpellingRegion(SM, StartLoc, EndLoc).isInSourceOrder()); in fillGapAreaWithCount()
1267 size_t Index = pushRegion(Count, StartLoc, EndLoc); in fillGapAreaWithCount()
1269 handleFileExit(EndLoc); in fillGapAreaWithCount()
1324 const auto EndLoc = Skipped->getEnd(); in markSkipped() local
1326 if (NewStartLoc == EndLoc) in markSkipped()
1328 assert(SpellingRegion(SM, NewStartLoc, EndLoc).isInSourceOrder()); in markSkipped()
1330 size_t Index = pushRegion({}, NewStartLoc, EndLoc); in markSkipped()
1332 handleFileExit(EndLoc); in markSkipped()