Lines Matching refs:SM
63 SourceManager &SM = PP.getSourceManager(); in LexRawTokensFromMainFile() local
67 llvm::MemoryBufferRef FromFile = SM.getBufferOrFake(SM.getMainFileID()); in LexRawTokensFromMainFile()
68 Lexer RawLex(SM.getMainFileID(), FromFile, SM, PP.getLangOpts()); in LexRawTokensFromMainFile()
90 SourceManager &SM = PP.getSourceManager(); in RewriteMacrosInInput() local
93 Rewrite.setSourceMgr(SM, PP.getLangOpts()); in RewriteMacrosInInput()
94 RewriteBuffer &RB = Rewrite.getEditBuffer(SM.getMainFileID()); in RewriteMacrosInInput()
114 SourceLocation PPLoc = SM.getExpansionLoc(PPTok.getLocation()); in RewriteMacrosInInput()
117 if (!SM.isWrittenInMainFile(PPLoc)) { in RewriteMacrosInInput()
133 RB.InsertTextAfter(SM.getFileOffset(RawTok.getLocation()), "//"); in RewriteMacrosInInput()
139 RB.InsertTextAfter(SM.getFileOffset(RawTok.getLocation()), "//"); in RewriteMacrosInInput()
153 unsigned PPOffs = SM.getFileOffset(PPLoc); in RewriteMacrosInInput()
154 unsigned RawOffs = SM.getFileOffset(RawTok.getLocation()); in RewriteMacrosInInput()
176 RawOffs = SM.getFileOffset(RawTok.getLocation()); in RewriteMacrosInInput()
199 PPLoc = SM.getExpansionLoc(PPTok.getLocation()); in RewriteMacrosInInput()
200 PPOffs = SM.getFileOffset(PPLoc); in RewriteMacrosInInput()
209 Rewrite.getRewriteBufferFor(SM.getMainFileID())) { in RewriteMacrosInInput()