Lines Matching refs:SM
34 SourceManager &SM = R.getSourceMgr(); in HighlightRange() local
35 B = SM.getExpansionLoc(B); in HighlightRange()
36 E = SM.getExpansionLoc(E); in HighlightRange()
37 FileID FID = SM.getFileID(B); in HighlightRange()
38 assert(SM.getFileID(E) == FID && "B/E not in the same file!"); in HighlightRange()
40 unsigned BOffset = SM.getFileOffset(B); in HighlightRange()
41 unsigned EOffset = SM.getFileOffset(E); in HighlightRange()
47 const char *BufferStart = SM.getBufferData(FID, &Invalid).data(); in HighlightRange()
360 const SourceManager &SM = PP.getSourceManager(); in SyntaxHighlight() local
361 const llvm::MemoryBuffer *FromFile = SM.getBuffer(FID); in SyntaxHighlight()
362 Lexer L(FID, FromFile, SM, PP.getLangOpts()); in SyntaxHighlight()
377 unsigned TokOffs = SM.getFileOffset(Tok.getLocation()); in SyntaxHighlight()
425 TokEnd = SM.getFileOffset(Tok.getLocation())+Tok.getLength(); in SyntaxHighlight()
448 const SourceManager &SM = PP.getSourceManager(); in HighlightMacros() local
451 const llvm::MemoryBuffer *FromFile = SM.getBuffer(FID); in HighlightMacros()
452 Lexer L(FID, FromFile, SM, PP.getLangOpts()); in HighlightMacros()
523 SM.getExpansionRange(Tok.getLocation()); in HighlightMacros()
526 if (SM.getFileID(LLoc.first) != FID) { in HighlightMacros()
531 assert(SM.getFileID(LLoc.second) == FID && in HighlightMacros()
546 SM.getExpansionLoc(Tok.getLocation()) == LLoc.first) { in HighlightMacros()