Lines Matching defs:SourceLocation
90 void CoverageSourceInfo::SourceRangeSkipped(SourceRange Range, SourceLocation) {
103 void CoverageSourceInfo::updateNextTokLoc(SourceLocation Loc) {
121 std::optional<SourceLocation> LocStart;
124 std::optional<SourceLocation> LocEnd;
135 SourceMappingRegion(Counter Count, std::optional<SourceLocation> LocStart,
136 std::optional<SourceLocation> LocEnd,
143 std::optional<SourceLocation> LocStart,
144 std::optional<SourceLocation> LocEnd,
151 std::optional<SourceLocation> LocStart,
152 std::optional<SourceLocation> LocEnd)
167 void setStartLoc(SourceLocation Loc) { LocStart = Loc; }
169 SourceLocation getBeginLoc() const {
176 void setEndLoc(SourceLocation Loc) {
181 SourceLocation getEndLoc() const {
231 SpellingRegion(SourceManager &SM, SourceLocation LocStart,
232 SourceLocation LocEnd) {
260 llvm::SmallDenseMap<FileID, std::pair<unsigned, SourceLocation>, 8>
274 typedef llvm::SmallSet<std::pair<SourceLocation, SourceLocation>, 8>
282 SourceLocation getPreciseTokenLocEnd(SourceLocation Loc) {
291 SourceLocation getStartOfFileOrMacro(SourceLocation Loc) {
298 SourceLocation getEndOfFileOrMacro(SourceLocation Loc) {
307 /// \c SourceLocation. The first object is always the begin sloc of found
312 std::pair<SourceLocation, std::optional<SourceLocation>>
313 getNonScratchExpansionLoc(SourceLocation Loc) {
314 std::optional<SourceLocation> EndLoc = std::nullopt;
327 SourceLocation getIncludeOrExpansionLoc(SourceLocation Loc,
338 bool isInBuiltin(SourceLocation Loc) {
343 bool isNestedIn(SourceLocation Loc, FileID Parent) {
353 SourceLocation getStart(const Stmt *S) {
354 SourceLocation Loc = S->getBeginLoc();
361 SourceLocation getEnd(const Stmt *S) {
362 SourceLocation Loc = S->getEndLoc();
377 SmallVector<std::pair<SourceLocation, unsigned>, 8> FileLocs;
379 SourceLocation Loc = Region.getBeginLoc();
409 for (SourceLocation Parent = getIncludeOrExpansionLoc(Loc);
417 SourceLocation Loc = FL.first;
431 std::optional<unsigned> getCoverageFileID(SourceLocation Loc) {
444 SourceLocation LocStart,
445 SourceLocation LocEnd,
446 SourceLocation PrevTokLoc,
447 SourceLocation NextTokLoc) {
516 SourceLocation LocStart = Region.getBeginLoc();
536 SourceLocation LocEnd = Region.getEndLoc();
583 SourceLocation ExpandedLoc = FM.second.second;
584 SourceLocation ParentLoc = getIncludeOrExpansionLoc(ExpandedLoc, false);
594 SourceLocation LocEnd = getPreciseTokenLocEnd(ParentLoc);
620 SourceLocation Start = getStart(Body);
621 SourceLocation End = getEnd(Body);
908 SourceLocation MostRecentLocation;
949 std::optional<SourceLocation> StartLoc = std::nullopt,
950 std::optional<SourceLocation> EndLoc = std::nullopt,
977 std::optional<SourceLocation> StartLoc = std::nullopt,
978 std::optional<SourceLocation> EndLoc = std::nullopt) {
985 size_t locationDepth(SourceLocation Loc) {
1004 SourceLocation StartLoc = Region.getBeginLoc();
1005 SourceLocation EndLoc = Region.hasEndLoc()
1021 SourceLocation NestedLoc = getStartOfFileOrMacro(EndLoc);
1041 SourceLocation NestedLoc = getEndOfFileOrMacro(StartLoc);
1085 SourceLocation StartLoc = getStart(S);
1086 SourceLocation EndLoc = getEnd(S);
1166 bool isRegionAlreadyAdded(SourceLocation StartLoc, SourceLocation EndLoc,
1178 void adjustForOutOfOrderTraversal(SourceLocation EndLoc) {
1197 void handleFileExit(SourceLocation NewLoc) {
1204 SourceLocation LCA = NewLoc;
1217 llvm::SmallSet<SourceLocation, 8> StartLocs;
1222 SourceLocation Loc = I.getBeginLoc();
1250 SourceLocation Loc = MostRecentLocation;
1252 SourceLocation FileStart = getStartOfFileOrMacro(Loc);
1268 SourceLocation StartLoc = getStart(S);
1279 SourceLocation EndLoc = getEnd(S);
1287 std::optional<SourceRange> findGapAreaBetween(SourceLocation AfterLoc,
1288 SourceLocation BeforeLoc) {
1340 void fillGapAreaWithCount(SourceLocation StartLoc, SourceLocation EndLoc,
1354 std::optional<SourceRange> findAreaStartingFromTo(SourceLocation StartingLoc,
1355 SourceLocation BeforeLoc) {
1396 void markSkipped(SourceLocation StartLoc, SourceLocation BeforeLoc) {
1538 SourceLocation Start = getStart(S);
1852 SourceLocation ExitLoc = getEnd(S);
1967 SourceLocation startOfSkipped = S->getIfLoc();