Lines Matching defs:SrcMgr
123 SourceMgr &SrcMgr;
166 /// cache we save the last info we queried with SrcMgr.FindLineNumber().
200 SourceMgr &getSourceManager() override { return SrcMgr; }
302 SrcMgr.PrintMessage(Loc, Kind, Msg, Ranges);
507 : Lexer(MAI), Ctx(Ctx), Out(Out), MAI(MAI), SrcMgr(SM),
512 SavedDiagHandler = SrcMgr.getDiagHandler();
513 SavedDiagContext = SrcMgr.getDiagContext();
515 SrcMgr.setDiagHandler(DiagHandler, this);
516 Lexer.setBuffer(SrcMgr.getMemoryBuffer(CurBuffer)->getBuffer());
578 SrcMgr.AddIncludeFile(Filename, Lexer.getLoc(), IncludedFile);
583 Lexer.setBuffer(SrcMgr.getMemoryBuffer(CurBuffer)->getBuffer());
593 SrcMgr.AddIncludeFile(Filename, Lexer.getLoc(), IncludedFile);
598 getStreamer().EmitBytes(SrcMgr.getMemoryBuffer(NewBuf)->getBuffer());
603 CurBuffer = InBuffer ? InBuffer : SrcMgr.FindBufferContainingLoc(Loc);
604 Lexer.setBuffer(SrcMgr.getMemoryBuffer(CurBuffer)->getBuffer(),
614 SMLoc ParentIncludeLoc = SrcMgr.getParentIncludeLoc(CurBuffer);
1750 Line = SrcMgr.FindLineNumber(IDLoc, CurBuffer);
1752 Line = SrcMgr.FindLineNumber(ActiveMacros.front()->InstantiationLoc,
1763 // Since SrcMgr.FindLineNumber() is slow and messes up the SourceMgr's
1765 // info we queried here with SrcMgr.FindLineNumber().
1770 CppHashLocLineNo = SrcMgr.FindLineNumber(CppHashLoc, CppHashBuf);
1852 Parser->SrcMgr.FindBufferContainingLoc(Parser->CppHashLoc);
1866 if (!Parser->CppHashLineNumber || &DiagSrcMgr != &Parser->SrcMgr ||
1882 Parser->SrcMgr.FindLineNumber(Parser->CppHashLoc, CppHashBuf);
2287 CurBuffer = SrcMgr.AddNewSourceBuffer(std::move(Instantiation), SMLoc());
2288 Lexer.setBuffer(SrcMgr.getMemoryBuffer(CurBuffer)->getBuffer());
4473 CurBuffer = SrcMgr.AddNewSourceBuffer(std::move(Instantiation), SMLoc());
4474 Lexer.setBuffer(SrcMgr.getMemoryBuffer(CurBuffer)->getBuffer());
4796 SrcMgr.getMemoryBuffer(SrcMgr.getMainFileID())->getBuffer();