Lines Matching defs:LocInfo
469 std::pair<FileID, unsigned> LocInfo = SM.getDecomposedLoc(Loc);
471 StringRef Buffer = SM.getBufferData(LocInfo.first, &Invalid);
475 const char *StrData = Buffer.data()+LocInfo.second;
481 Lexer TheLexer(SM.getLocForStartOfFile(LocInfo.first), LangOpts,
511 std::pair<FileID, unsigned> LocInfo = SM.getDecomposedLoc(Loc);
512 if (LocInfo.first.isInvalid())
516 StringRef Buffer = SM.getBufferData(LocInfo.first, &Invalid);
522 const char *StrData = Buffer.data() + LocInfo.second;
523 const char *LexStart = findBeginningOfLine(Buffer, LocInfo.second);
528 SourceLocation LexerStartLoc = Loc.getLocWithOffset(-LocInfo.second);
1076 std::pair<FileID, unsigned> LocInfo = SM.getDecomposedLoc(Loc);
1077 if (LocInfo.first.isInvalid())
1080 StringRef Buffer = SM.getBufferData(LocInfo.first, &Invalid);
1083 const char *Line = findBeginningOfLine(Buffer, LocInfo.second);
1248 std::pair<FileID, unsigned> LocInfo = SM.getDecomposedLoc(Loc);
1252 StringRef File = SM.getBufferData(LocInfo.first, &InvalidTemp);
1256 const char *TokenBegin = File.data() + LocInfo.second;
1259 Lexer lexer(SM.getLocForStartOfFile(LocInfo.first), LangOpts, File.begin(),