Lines Matching refs:BufferPtr
58 BufferPtr = BufPtr; in InitLexer()
68 if (BufferStart == BufferPtr) { in InitLexer()
76 BufferPtr += BOMLength; in InitLexer()
180 L->BufferPtr = StrData; in Create_PragmaLexer()
1346 BufferPtr += Bytes; in SkipBytes()
1347 if (BufferPtr > BufferEnd) in SkipBytes()
1348 BufferPtr = BufferEnd; in SkipBytes()
1492 const char *IdStart = BufferPtr; in LexIdentifier()
1577 if (!LangOpts.MicrosoftExt || !isHexaLiteral(BufferPtr, LangOpts)) in LexNumericConstant()
1588 if (!isHexaLiteral(BufferPtr, LangOpts)) in LexNumericConstant()
1590 else if (std::find(BufferPtr, CurPtr, '_') != CurPtr) in LexNumericConstant()
1617 const char *TokStart = BufferPtr; in LexNumericConstant()
1725 Diag(BufferPtr, getLangOpts().CPlusPlus in LexStringLiteral()
1739 Diag(BufferPtr, diag::ext_unterminated_char_or_string) << 1; in LexStringLiteral()
1766 const char *TokStart = BufferPtr; in LexStringLiteral()
1782 Diag(BufferPtr, diag::warn_cxx98_compat_raw_string_literal); in LexRawStringLiteral()
1834 Diag(BufferPtr, diag::err_unterminated_raw_string) in LexRawStringLiteral()
1846 const char *TokStart = BufferPtr; in LexRawStringLiteral()
1882 const char *TokStart = BufferPtr; in LexAngledStringLiteral()
1898 Diag(BufferPtr, getLangOpts().CPlusPlus in LexCharConstant()
1902 Diag(BufferPtr, diag::warn_cxx14_compat_u8_character_literal); in LexCharConstant()
1908 Diag(BufferPtr, diag::ext_empty_character); in LexCharConstant()
1921 Diag(BufferPtr, diag::ext_unterminated_char_or_string) << 0; in LexCharConstant()
1948 const char *TokStart = BufferPtr; in LexCharConstant()
1978 BufferPtr = CurPtr; in SkipWhitespace()
2008 BufferPtr = CurPtr; in SkipWhitespace()
2023 Diag(BufferPtr, diag::ext_line_comment); in SkipLineComment()
2119 PP->HandleComment(Result, SourceRange(getSourceLocation(BufferPtr), in SkipLineComment()
2121 BufferPtr = CurPtr; in SkipLineComment()
2132 BufferPtr = CurPtr; in SkipLineComment()
2148 BufferPtr = CurPtr; in SkipLineComment()
2271 Diag(BufferPtr, diag::err_unterminated_block_comment); in SkipBlockComment()
2281 BufferPtr = CurPtr; in SkipBlockComment()
2365 Diag(BufferPtr, diag::err_unterminated_block_comment); in SkipBlockComment()
2378 BufferPtr = CurPtr; in SkipBlockComment()
2391 PP->HandleComment(Result, SourceRange(getSourceLocation(BufferPtr), in SkipBlockComment()
2393 BufferPtr = CurPtr; in SkipBlockComment()
2413 BufferPtr = CurPtr; in SkipBlockComment()
2430 const char *CurPtr = BufferPtr; in ReadToEndOfLine()
2457 BufferPtr = CurPtr-1; in ReadToEndOfLine()
2498 BufferPtr = BufferEnd; in LexEndOfFile()
2537 BufferPtr = CurPtr; in LexEndOfFile()
2556 const char *TmpBufferPtr = BufferPtr; in isNextPPTokenLParen()
2566 BufferPtr = TmpBufferPtr; in isNextPPTokenLParen()
2636 BufferPtr = CurPtr; in IsStartOfConflictMarker()
2676 BufferPtr = CurPtr; in HandleEndOfConflictMarker()
2725 Diag(BufferPtr, diag::warn_ucn_escape_no_digits) in tryReadUCN()
2728 Diag(BufferPtr, diag::warn_ucn_escape_incomplete); in tryReadUCN()
2782 Diag(BufferPtr, diag::err_ucn_control_character); in tryReadUCN()
2785 Diag(BufferPtr, diag::err_ucn_escape_basic_scs) << StringRef(&C, 1); in tryReadUCN()
2797 Diag(BufferPtr, diag::warn_ucn_escape_surrogate); in tryReadUCN()
2799 Diag(BufferPtr, diag::err_ucn_escape_invalid); in tryReadUCN()
2813 Diag(BufferPtr, diag::ext_unicode_whitespace) in CheckUnicodeWhitespace()
2814 << makeCharRange(*this, BufferPtr, CurPtr); in CheckUnicodeWhitespace()
2827 makeCharRange(*this, BufferPtr, CurPtr), in LexUnicode()
2837 !isASCII(*BufferPtr) && !isAllowedIDChar(C, LangOpts)) { in LexUnicode()
2847 Diag(BufferPtr, diag::err_non_ascii) in LexUnicode()
2848 << FixItHint::CreateRemoval(makeCharRange(*this, BufferPtr, CurPtr)); in LexUnicode()
2850 BufferPtr = CurPtr; in LexUnicode()
2910 const char *CurPtr = BufferPtr; in LexTokenInternal()
2927 BufferPtr = CurPtr; in LexTokenInternal()
3009 CurPtr = BufferPtr; in LexTokenInternal()
3372 Diag(BufferPtr, diag::ext_charize_microsoft); in LexTokenInternal()
3430 Diag(BufferPtr, diag::warn_cxx98_compat_less_colon_colon); in LexTokenInternal()
3538 Diag(BufferPtr, diag::ext_charize_microsoft); in LexTokenInternal()
3562 if (uint32_t CodePoint = tryReadUCN(CurPtr, BufferPtr, &Result)) { in LexTokenInternal()
3618 BufferPtr = CurPtr+1; in LexTokenInternal()