Lines Matching refs:BufferEnd
71 BufferEnd = BufEnd;
82 StringRef Buf(BufferStart, BufferEnd - BufferStart);
195 L->BufferEnd = StrData+TokLen;
196 assert(L->BufferEnd[0] == 0 && "Buffer is not nul terminated!");
1059 assert(Loc >= BufferStart && Loc <= BufferEnd &&
1361 if (BufferPtr > BufferEnd)
1362 BufferPtr = BufferEnd;
1502 (const UTF8 *)BufferEnd,
1661 (C == 0 && CurPtr-1 == BufferEnd)) { // End of file.
1731 if (C == 0 && CurPtr-1 == BufferEnd) {
1754 } else if (C == 0 && CurPtr-1 == BufferEnd) { // End of file.
1785 (C == 0 && (CurPtr-1 == BufferEnd || // End of file.
1834 (C == 0 && CurPtr-1 == BufferEnd)) { // End of file.
2003 if (CurPtr == BufferEnd+1) {
2031 if (ParsingPreprocessorDirective || CurPtr == BufferEnd) {
2167 if (C == 0 && CurPtr == BufferEnd+1) {
2191 if (CurPtr + 24 < BufferEnd &&
2203 while (CurPtr+16 <= BufferEnd) {
2220 while (CurPtr+16 <= BufferEnd &&
2229 CurPtr+4 < BufferEnd) {
2261 } else if (C == 0 && CurPtr == BufferEnd+1) {
2338 if (CurPtr-1 != BufferEnd) {
2395 BufferPtr = BufferEnd;
2396 FormTokenWithChars(Result, BufferEnd, tok::eof);
2413 Diag(BufferEnd, LangOpts.CPlusPlus11 ? // C++11 [lex.phases] 2.2 p2
2415 << FixItHint::CreateInsertion(getSourceLocation(BufferEnd), "\n");
2456 static const char *FindConflictEnd(const char *CurPtr, const char *BufferEnd,
2460 StringRef RestOfBuffer(CurPtr+TermLen, BufferEnd-CurPtr-TermLen);
2486 if ((BufferEnd-CurPtr < 8 || StringRef(CurPtr, 7) != "<<<<<<<") &&
2487 (BufferEnd-CurPtr < 6 || StringRef(CurPtr, 5) != ">>>> "))
2499 if (FindConflictEnd(CurPtr, BufferEnd, Kind)) {
2508 assert(CurPtr != BufferEnd && "Didn't find end of line");
2543 if (const char *End = FindConflictEnd(CurPtr, BufferEnd,
2548 while (CurPtr != BufferEnd && *CurPtr != '\r' && *CurPtr != '\n')
2771 if (CurPtr-1 == BufferEnd) {
3405 (const UTF8 *)BufferEnd,