reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

tools/clang/lib/CodeGen/CoverageMappingGen.cpp
  164         Lexer::MeasureTokenLength(SM.getSpellingLoc(Loc), SM, LangOpts);
  164         Lexer::MeasureTokenLength(SM.getSpellingLoc(Loc), SM, LangOpts);
  171       return Loc.getLocWithOffset(-SM.getFileOffset(Loc));
  172     return SM.getLocForStartOfFile(SM.getFileID(Loc));
  172     return SM.getLocForStartOfFile(SM.getFileID(Loc));
  178       return Loc.getLocWithOffset(SM.getFileIDSize(SM.getFileID(Loc)) -
  178       return Loc.getLocWithOffset(SM.getFileIDSize(SM.getFileID(Loc)) -
  179                                   SM.getFileOffset(Loc));
  180     return SM.getLocForEndOfFile(SM.getFileID(Loc));
  180     return SM.getLocForEndOfFile(SM.getFileID(Loc));
  185     return Loc.isMacroID() ? SM.getImmediateExpansionRange(Loc).getBegin()
  186                            : SM.getIncludeLoc(SM.getFileID(Loc));
  186                            : SM.getIncludeLoc(SM.getFileID(Loc));
  191     return SM.getBufferName(SM.getSpellingLoc(Loc)) == "<built-in>";
  191     return SM.getBufferName(SM.getSpellingLoc(Loc)) == "<built-in>";
  200     } while (!SM.isInFileID(Loc, Parent));
  207     while (SM.isMacroArgExpansion(Loc) || isInBuiltin(Loc))
  208       Loc = SM.getImmediateExpansionRange(Loc).getBegin();
  215     while (SM.isMacroArgExpansion(Loc) || isInBuiltin(Loc))
  216       Loc = SM.getImmediateExpansionRange(Loc).getBegin();
  232       FileID File = SM.getFileID(Loc);
  237       if (SM.isInSystemHeader(SM.getSpellingLoc(Loc)))
  237       if (SM.isInSystemHeader(SM.getSpellingLoc(Loc)))
  250       FileID SpellingFile = SM.getDecomposedSpellingLoc(Loc).first;
  251       auto Entry = SM.getFileEntryForID(SpellingFile);
  255       FileIDMapping[SM.getFileID(Loc)] = std::make_pair(Mapping.size(), Loc);
  264     auto Mapping = FileIDMapping.find(SM.getFileID(Loc));
  290       assert(SM.isWrittenInSameFile(LocStart, LocEnd) &&
  296       SpellingRegion SR{SM, LocStart, LocEnd};
  314       assert(SM.getFileID(LocStart).isValid() && "region in invalid file");
  317       if (SM.isInSystemHeader(SM.getSpellingLoc(LocStart)))
  317       if (SM.isInSystemHeader(SM.getSpellingLoc(LocStart)))
  326       assert(SM.isWrittenInSameFile(LocStart, LocEnd) &&
  337       SpellingRegion SR{SM, LocStart, LocEnd};
  368       assert(SM.isWrittenInSameFile(ParentLoc, LocEnd) &&
  372       SpellingRegion SR{SM, ParentLoc, LocEnd};
  395     if (!SM.isWrittenInSameFile(Start, End)) {
  398       FileID StartFileID = SM.getFileID(Start);
  399       FileID EndFileID = SM.getFileID(End);
  404         StartFileID = SM.getFileID(Start);
  410         EndFileID = SM.getFileID(End);
  504     FileID StartFile = SM.getFileID(DR.getBeginLoc());
  505     if (SM.getFileID(DeferredEndLoc) != StartFile) {
  509         } while (StartFile != SM.getFileID(DeferredEndLoc));
  522     if (!SpellingRegion(SM, DR.getBeginLoc(), DeferredEndLoc).isInSourceOrder())
  544     if (SM.getFileID(Start) != SM.getMainFileID())
  544     if (SM.getFileID(Start) != SM.getMainFileID())
  579         while (!SM.isWrittenInSameFile(StartLoc, EndLoc)) {
  586             assert(SM.isWrittenInSameFile(NestedLoc, EndLoc));
  600             assert(SM.isWrittenInSameFile(StartLoc, NestedLoc));
  621         assert(SM.isWrittenInSameFile(Region.getBeginLoc(), EndLoc));
  622         assert(SpellingRegion(SM, Region).isInSourceOrder());
  672     if (SM.isBeforeInTranslationUnit(StartLoc, S->getBeginLoc()))
  713         SM.isWrittenInSameFile(MostRecentLocation, NewLoc))
  719     FileID ParentFile = SM.getFileID(LCA);
  722       if (LCA.isInvalid() || SM.isWrittenInSameFile(LCA, MostRecentLocation)) {
  728       ParentFile = SM.getFileID(LCA);
  742       while (!SM.isInFileID(Loc, ParentFile)) {
  764           assert(SpellingRegion(SM, SourceRegions.back()).isInSourceOrder());
  805     if (!SM.isWrittenInSameFile(AfterLoc, BeforeLoc))
  822     assert(SpellingRegion(SM, StartLoc, EndLoc).isInSourceOrder());
  876     if (Body && SM.isInSystemHeader(SM.getSpellingLoc(getStart(Body))))
  876     if (Body && SM.isInSystemHeader(SM.getSpellingLoc(getStart(Body))))