Lines Matching refs:BufferEnd
59 BufferEnd = BufEnd; in InitLexer()
70 StringRef Buf(BufferStart, BufferEnd - BufferStart); in InitLexer()
181 L->BufferEnd = StrData+TokLen; in Create_PragmaLexer()
182 assert(L->BufferEnd[0] == 0 && "Buffer is not nul terminated!"); in Create_PragmaLexer()
1045 assert(Loc >= BufferStart && Loc <= BufferEnd && in getSourceLocation()
1347 if (BufferPtr > BufferEnd) in SkipBytes()
1348 BufferPtr = BufferEnd; in SkipBytes()
1455 (const UTF8 *)BufferEnd, in tryConsumeIdentifierUTF8Char()
1733 (C == 0 && CurPtr-1 == BufferEnd)) { // End of file. in LexStringLiteral()
1805 if (C == 0 && CurPtr-1 == BufferEnd) { in LexRawStringLiteral()
1828 } else if (C == 0 && CurPtr-1 == BufferEnd) { // End of file. in LexRawStringLiteral()
1861 (C == 0 && (CurPtr-1 == BufferEnd || // End of file. in LexAngledStringLiteral()
1915 (C == 0 && CurPtr-1 == BufferEnd)) { // End of file. in LexCharConstant()
2099 if (CurPtr == BufferEnd+1) { in SkipLineComment()
2127 if (ParsingPreprocessorDirective || CurPtr == BufferEnd) { in SkipLineComment()
2265 if (C == 0 && CurPtr == BufferEnd+1) { in SkipBlockComment()
2289 if (CurPtr + 24 < BufferEnd && in SkipBlockComment()
2301 while (CurPtr+16 <= BufferEnd) { in SkipBlockComment()
2318 while (CurPtr+16 <= BufferEnd && in SkipBlockComment()
2327 CurPtr+4 < BufferEnd) { in SkipBlockComment()
2359 } else if (C == 0 && CurPtr == BufferEnd+1) { in SkipBlockComment()
2436 if (CurPtr-1 != BufferEnd) { in ReadToEndOfLine()
2494 BufferPtr = BufferEnd; in LexEndOfFile()
2495 FormTokenWithChars(Result, BufferEnd, tok::eof); in LexEndOfFile()
2513 SourceLocation EndLoc = getSourceLocation(BufferEnd); in LexEndOfFile()
2529 Diag(BufferEnd, DiagID) in LexEndOfFile()
2577 static const char *FindConflictEnd(const char *CurPtr, const char *BufferEnd, in FindConflictEnd() argument
2581 StringRef RestOfBuffer(CurPtr+TermLen, BufferEnd-CurPtr-TermLen); in FindConflictEnd()
2607 if ((BufferEnd-CurPtr < 8 || StringRef(CurPtr, 7) != "<<<<<<<") && in IsStartOfConflictMarker()
2608 (BufferEnd-CurPtr < 6 || StringRef(CurPtr, 5) != ">>>> ")) in IsStartOfConflictMarker()
2620 if (FindConflictEnd(CurPtr, BufferEnd, Kind)) { in IsStartOfConflictMarker()
2629 assert(CurPtr != BufferEnd && "Didn't find end of line"); in IsStartOfConflictMarker()
2664 if (const char *End = FindConflictEnd(CurPtr, BufferEnd, in HandleEndOfConflictMarker()
2669 while (CurPtr != BufferEnd && *CurPtr != '\r' && *CurPtr != '\n') in HandleEndOfConflictMarker()
2936 if (CurPtr-1 == BufferEnd) in LexTokenInternal()
3587 (const UTF8 *)BufferEnd, in LexTokenInternal()