Lines Matching defs:LocInfo
291 std::pair<FileID, unsigned> locInfo = SM.getDecomposedLoc(loc);
295 StringRef file = SM.getBufferData(locInfo.first, &invalidTemp);
301 const char *tokenBegin = file.data() + locInfo.second;
304 Lexer lexer(SM.getLocForStartOfFile(locInfo.first), options,
430 std::pair<FileID, unsigned> LocInfo = SM.getDecomposedLoc(Loc);
432 StringRef Buffer = SM.getBufferData(LocInfo.first, &Invalid);
436 const char *StrData = Buffer.data()+LocInfo.second;
442 Lexer TheLexer(SM.getLocForStartOfFile(LocInfo.first), LangOpts,
453 std::pair<FileID, unsigned> LocInfo = SM.getDecomposedLoc(Loc);
454 if (LocInfo.first.isInvalid())
458 StringRef Buffer = SM.getBufferData(LocInfo.first, &Invalid);
465 if (LocInfo.second >= Buffer.size())
468 const char *StrData = BufStart+LocInfo.second;
483 SourceLocation LexerStartLoc = Loc.getLocWithOffset(-LocInfo.second);
1168 std::pair<FileID, unsigned> LocInfo = SM.getDecomposedLoc(Loc);
1172 StringRef File = SM.getBufferData(LocInfo.first, &InvalidTemp);
1176 const char *TokenBegin = File.data() + LocInfo.second;
1179 Lexer lexer(SM.getLocForStartOfFile(LocInfo.first), LangOpts, File.begin(),