Lines Matching defs:LocInfo
522 std::pair<FileID, unsigned> LocInfo = SM.getDecomposedLoc(Loc);
524 StringRef Buffer = SM.getBufferData(LocInfo.first, &Invalid);
528 const char *StrData = Buffer.data()+LocInfo.second;
534 Lexer TheLexer(SM.getLocForStartOfFile(LocInfo.first), LangOpts,
564 std::pair<FileID, unsigned> LocInfo = SM.getDecomposedLoc(Loc);
565 if (LocInfo.first.isInvalid())
569 StringRef Buffer = SM.getBufferData(LocInfo.first, &Invalid);
575 const char *StrData = Buffer.data() + LocInfo.second;
576 const char *LexStart = findBeginningOfLine(Buffer, LocInfo.second);
581 SourceLocation LexerStartLoc = Loc.getLocWithOffset(-LocInfo.second);
1161 std::pair<FileID, unsigned> LocInfo = SM.getDecomposedLoc(Loc);
1162 if (LocInfo.first.isInvalid())
1165 StringRef Buffer = SM.getBufferData(LocInfo.first, &Invalid);
1168 const char *Line = findBeginningOfLine(Buffer, LocInfo.second);
1335 std::pair<FileID, unsigned> LocInfo = SM.getDecomposedLoc(Loc);
1339 StringRef File = SM.getBufferData(LocInfo.first, &InvalidTemp);
1343 const char *TokenBegin = File.data() + LocInfo.second;
1346 Lexer lexer(SM.getLocForStartOfFile(LocInfo.first), LangOpts, File.begin(),