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

Declarations

tools/clang/include/clang/Basic/SourceManager.h
 1408   unsigned getLineNumber(FileID FID, unsigned FilePos, bool *Invalid = nullptr) const;

References

tools/clang/lib/AST/ASTContext.cpp
  226       if (SourceMgr.getLineNumber(DeclLocDecomp.first, DeclLocDecomp.second) ==
tools/clang/lib/AST/RawCommentList.cpp
  343   const unsigned Line = SourceMgr.getLineNumber(File, Offset);
tools/clang/lib/Basic/SourceLocation.cpp
  194   return SrcMgr->getLineNumber(getFileID(), getFileOffset(), Invalid);
tools/clang/lib/Basic/SourceManager.cpp
 1380   return getLineNumber(LocInfo.first, LocInfo.second);
 1386   return getLineNumber(LocInfo.first, LocInfo.second);
 1473   unsigned LineNo = getLineNumber(LocInfo.first, LocInfo.second, &Invalid);
 1501       unsigned MarkerLineNo = getLineNumber(LocInfo.first, Entry->FileOffset);
tools/clang/lib/Frontend/Rewrite/InclusionRewriter.cpp
  403   assert(SM.getLineNumber(FileId, NextToWrite) == 1);
tools/clang/lib/Frontend/TextDiagnostic.cpp
 1086           LineNo == SM.getLineNumber(HintLocInfo.first, HintLocInfo.second) &&
 1356     OS << "\":{" << SM.getLineNumber(BInfo.first, BInfo.second)
 1358       << '-' << SM.getLineNumber(EInfo.first, EInfo.second)
tools/clang/lib/Index/CommentToXML.cpp
  889         Result << " line=\"" << SM.getLineNumber(FID, FileOffset)
tools/clang/lib/Parse/ParseStmtAsm.cpp
  421     LineNo = SrcMgr.getLineNumber(FID, ExpAsmLoc.second);
  449         LineNo = SrcMgr.getLineNumber(FID, ExpSemiLoc.second);
  457           SrcMgr.getLineNumber(ExpLoc.first, ExpLoc.second) != LineNo) {
  472           LineNo = SrcMgr.getLineNumber(ExpLoc.first, ExpLoc.second);
  478           LineNo = SrcMgr.getLineNumber(FID, ExpLoc.second);
tools/clang/lib/Rewrite/Rewriter.cpp
  265     unsigned lineNo = SourceMgr->getLineNumber(FID, StartOffs) - 1;
  366   unsigned parentLineNo = SourceMgr->getLineNumber(FID, parentOff) - 1;
  367   unsigned startLineNo = SourceMgr->getLineNumber(FID, StartOff) - 1;
  368   unsigned endLineNo = SourceMgr->getLineNumber(FID, EndOff) - 1;
tools/clang/lib/Sema/CodeCompleteConsumer.cpp
  585            << " {" << SM.getLineNumber(BInfo.first, BInfo.second) << ':'
  587            << SM.getLineNumber(EInfo.first, EInfo.second) << ':'
tools/clang/tools/c-index-test/core_main.cpp
  105     unsigned Line = SM.getLineNumber(FID, SM.getFileOffset(Loc));
  143     unsigned Line = SM.getLineNumber(FID, SM.getFileOffset(Loc));
  166     unsigned Line = SM.getLineNumber(FID, SM.getFileOffset(Loc));
tools/clang/tools/extra/clangd/SourceCode.cpp
  205   P.line = static_cast<int>(SM.getLineNumber(FID, Offset)) - 1;
tools/clang/tools/extra/modularize/Modularize.cpp
  399     Line = SM.getLineNumber(Decomposed.first, Decomposed.second);
tools/clang/tools/libclang/CXIndexDataConsumer.cpp
 1125     *line = SM.getLineNumber(FID, FileOffset);
tools/clang/tools/libclang/CXSourceLocation.cpp
  332     *line = SM.getLineNumber(FID, FileOffset);
  368     *line = SM.getLineNumber(FID, FileOffset);
tools/clang/unittests/Index/IndexTests.cpp
   42     P.Line = SM.getLineNumber(FID, Offset);