Lines Matching refs:CodePoint
1740 DiagnosticsEngine &Diags, const LangOptions &LangOpts, uint32_t CodePoint, in diagnoseInvalidUnicodeCodepointInIdentifier() argument
1742 if (isASCII(CodePoint)) in diagnoseInvalidUnicodeCodepointInIdentifier()
1746 bool IsIDStart = isAllowedInitiallyIDChar(CodePoint, LangOpts, IsExtension); in diagnoseInvalidUnicodeCodepointInIdentifier()
1748 IsIDStart || isAllowedIDChar(CodePoint, LangOpts, IsExtension); in diagnoseInvalidUnicodeCodepointInIdentifier()
1757 << Range << codepointAsHexString(CodePoint) << int(InvalidOnlyAtStart) in diagnoseInvalidUnicodeCodepointInIdentifier()
1761 << Range << codepointAsHexString(CodePoint) in diagnoseInvalidUnicodeCodepointInIdentifier()
1769 uint32_t CodePoint = tryReadUCN(UCNPtr, CurPtr, /*Token=*/nullptr); in tryConsumeIdentifierUCN() local
1770 if (CodePoint == 0) { in tryConsumeIdentifierUCN()
1774 if (!isAllowedIDChar(CodePoint, LangOpts, IsExtension)) { in tryConsumeIdentifierUCN()
1775 if (isASCII(CodePoint) || isUnicodeWhitespace(CodePoint)) in tryConsumeIdentifierUCN()
1780 PP->getDiagnostics(), LangOpts, CodePoint, in tryConsumeIdentifierUCN()
1789 diagnoseExtensionInIdentifier(PP->getDiagnostics(), CodePoint, in tryConsumeIdentifierUCN()
1792 maybeDiagnoseIDCharCompat(PP->getDiagnostics(), CodePoint, in tryConsumeIdentifierUCN()
1808 llvm::UTF32 CodePoint; in tryConsumeIdentifierUTF8Char() local
1820 &CodePoint, llvm::strictConversion); in tryConsumeIdentifierUTF8Char()
1825 if (!isAllowedIDChar(static_cast<uint32_t>(CodePoint), LangOpts, in tryConsumeIdentifierUTF8Char()
1827 if (isASCII(CodePoint) || isUnicodeWhitespace(CodePoint)) in tryConsumeIdentifierUTF8Char()
1833 PP->getDiagnostics(), LangOpts, CodePoint, in tryConsumeIdentifierUTF8Char()
1841 PP->getDiagnostics(), CodePoint, in tryConsumeIdentifierUTF8Char()
1843 maybeDiagnoseIDCharCompat(PP->getDiagnostics(), CodePoint, in tryConsumeIdentifierUTF8Char()
1846 maybeDiagnoseUTF8Homoglyph(PP->getDiagnostics(), CodePoint, in tryConsumeIdentifierUTF8Char()
3412 uint32_t CodePoint = 0; in tryReadNumericUCN() local
3437 if (CodePoint & 0xF000'0000) { in tryReadNumericUCN()
3443 CodePoint <<= 4; in tryReadNumericUCN()
3444 CodePoint |= Value; in tryReadNumericUCN()
3496 return CodePoint; in tryReadNumericUCN()
3575 Match = LooseMatch->CodePoint; in tryReadNamedUCN()
3607 uint32_t CodePoint = *CodePointOpt; in tryReadUCN() local
3611 return CodePoint; in tryReadUCN()
3629 if (CodePoint < 0xA0) { in tryReadUCN()
3633 if (CodePoint < 0x20 || CodePoint >= 0x7F) in tryReadUCN()
3636 char C = static_cast<char>(CodePoint); in tryReadUCN()
3642 } else if (CodePoint >= 0xD800 && CodePoint <= 0xDFFF) { in tryReadUCN()
3655 return CodePoint; in tryReadUCN()
4412 if (uint32_t CodePoint = tryReadUCN(CurPtr, BufferPtr, &Result)) { in LexTokenInternal() local
4413 if (CheckUnicodeWhitespace(Result, CodePoint, CurPtr)) { in LexTokenInternal()
4422 return LexUnicodeIdentifierStart(Result, CodePoint, CurPtr); in LexTokenInternal()
4435 llvm::UTF32 CodePoint; in LexTokenInternal() local
4443 &CodePoint, in LexTokenInternal()
4446 if (CheckUnicodeWhitespace(Result, CodePoint, CurPtr)) { in LexTokenInternal()
4454 return LexUnicodeIdentifierStart(Result, CodePoint, CurPtr); in LexTokenInternal()