Lines Matching refs:SM
64 SourceManager &SM = PP.getSourceManager(); in LexRawTokensFromMainFile() local
68 const llvm::MemoryBuffer *FromFile = SM.getBuffer(SM.getMainFileID()); in LexRawTokensFromMainFile()
69 Lexer RawLex(SM.getMainFileID(), FromFile, SM, PP.getLangOpts()); in LexRawTokensFromMainFile()
91 SourceManager &SM = PP.getSourceManager(); in RewriteMacrosInInput() local
94 Rewrite.setSourceMgr(SM, PP.getLangOpts()); in RewriteMacrosInInput()
95 RewriteBuffer &RB = Rewrite.getEditBuffer(SM.getMainFileID()); in RewriteMacrosInInput()
115 SourceLocation PPLoc = SM.getExpansionLoc(PPTok.getLocation()); in RewriteMacrosInInput()
118 if (!SM.isWrittenInMainFile(PPLoc)) { in RewriteMacrosInInput()
134 RB.InsertTextAfter(SM.getFileOffset(RawTok.getLocation()), "//"); in RewriteMacrosInInput()
140 RB.InsertTextAfter(SM.getFileOffset(RawTok.getLocation()), "//"); in RewriteMacrosInInput()
154 unsigned PPOffs = SM.getFileOffset(PPLoc); in RewriteMacrosInInput()
155 unsigned RawOffs = SM.getFileOffset(RawTok.getLocation()); in RewriteMacrosInInput()
177 RawOffs = SM.getFileOffset(RawTok.getLocation()); in RewriteMacrosInInput()
200 PPLoc = SM.getExpansionLoc(PPTok.getLocation()); in RewriteMacrosInInput()
201 PPOffs = SM.getFileOffset(PPLoc); in RewriteMacrosInInput()
210 Rewrite.getRewriteBufferFor(SM.getMainFileID())) { in RewriteMacrosInInput()