Home | History | Annotate | Download | only in Lex

Lines Matching defs:LocInfo

305   std::pair<FileID, unsigned> locInfo = SM.getDecomposedLoc(loc);
309 StringRef file = SM.getBufferData(locInfo.first, &invalidTemp);
315 const char *tokenBegin = file.data() + locInfo.second;
318 Lexer lexer(SM.getLocForStartOfFile(locInfo.first), options,
443 std::pair<FileID, unsigned> LocInfo = SM.getDecomposedLoc(Loc);
445 StringRef Buffer = SM.getBufferData(LocInfo.first, &Invalid);
449 const char *StrData = Buffer.data()+LocInfo.second;
455 Lexer TheLexer(SM.getLocForStartOfFile(LocInfo.first), LangOpts,
466 std::pair<FileID, unsigned> LocInfo = SM.getDecomposedLoc(Loc);
467 if (LocInfo.first.isInvalid())
471 StringRef Buffer = SM.getBufferData(LocInfo.first, &Invalid);
478 if (LocInfo.second >= Buffer.size())
481 const char *StrData = BufStart+LocInfo.second;
496 SourceLocation LexerStartLoc = Loc.getLocWithOffset(-LocInfo.second);
1182 std::pair<FileID, unsigned> LocInfo = SM.getDecomposedLoc(Loc);
1186 StringRef File = SM.getBufferData(LocInfo.first, &InvalidTemp);
1190 const char *TokenBegin = File.data() + LocInfo.second;
1193 Lexer lexer(SM.getLocForStartOfFile(LocInfo.first), LangOpts, File.begin(),