Lines Matching refs:CodePoint
1695 DiagnosticsEngine &Diags, const LangOptions &LangOpts, uint32_t CodePoint, in diagnoseInvalidUnicodeCodepointInIdentifier() argument
1697 if (isASCII(CodePoint)) in diagnoseInvalidUnicodeCodepointInIdentifier()
1701 bool IsIDStart = isAllowedInitiallyIDChar(CodePoint, LangOpts, IsExtension); in diagnoseInvalidUnicodeCodepointInIdentifier()
1703 IsIDStart || isAllowedIDChar(CodePoint, LangOpts, IsExtension); in diagnoseInvalidUnicodeCodepointInIdentifier()
1712 << Range << codepointAsHexString(CodePoint) << int(InvalidOnlyAtStart) in diagnoseInvalidUnicodeCodepointInIdentifier()
1716 << Range << codepointAsHexString(CodePoint) in diagnoseInvalidUnicodeCodepointInIdentifier()
1724 uint32_t CodePoint = tryReadUCN(UCNPtr, CurPtr, /*Token=*/nullptr); in tryConsumeIdentifierUCN() local
1725 if (CodePoint == 0) { in tryConsumeIdentifierUCN()
1729 if (!isAllowedIDChar(CodePoint, LangOpts, IsExtension)) { in tryConsumeIdentifierUCN()
1730 if (isASCII(CodePoint) || isUnicodeWhitespace(CodePoint)) in tryConsumeIdentifierUCN()
1735 PP->getDiagnostics(), LangOpts, CodePoint, in tryConsumeIdentifierUCN()
1744 diagnoseExtensionInIdentifier(PP->getDiagnostics(), CodePoint, in tryConsumeIdentifierUCN()
1747 maybeDiagnoseIDCharCompat(PP->getDiagnostics(), CodePoint, in tryConsumeIdentifierUCN()
1763 llvm::UTF32 CodePoint; in tryConsumeIdentifierUTF8Char() local
1775 &CodePoint, llvm::strictConversion); in tryConsumeIdentifierUTF8Char()
1780 if (!isAllowedIDChar(static_cast<uint32_t>(CodePoint), LangOpts, in tryConsumeIdentifierUTF8Char()
1782 if (isASCII(CodePoint) || isUnicodeWhitespace(CodePoint)) in tryConsumeIdentifierUTF8Char()
1788 PP->getDiagnostics(), LangOpts, CodePoint, in tryConsumeIdentifierUTF8Char()
1796 PP->getDiagnostics(), CodePoint, in tryConsumeIdentifierUTF8Char()
1798 maybeDiagnoseIDCharCompat(PP->getDiagnostics(), CodePoint, in tryConsumeIdentifierUTF8Char()
1801 maybeDiagnoseUTF8Homoglyph(PP->getDiagnostics(), CodePoint, in tryConsumeIdentifierUTF8Char()
3356 uint32_t CodePoint = 0; in tryReadNumericUCN() local
3381 if (CodePoint & 0xF000'0000) { in tryReadNumericUCN()
3387 CodePoint <<= 4; in tryReadNumericUCN()
3388 CodePoint |= Value; in tryReadNumericUCN()
3440 return CodePoint; in tryReadNumericUCN()
3519 Match = LooseMatch->CodePoint; in tryReadNamedUCN()
3551 uint32_t CodePoint = *CodePointOpt; in tryReadUCN() local
3555 return CodePoint; in tryReadUCN()
3573 if (CodePoint < 0xA0) { in tryReadUCN()
3577 if (CodePoint < 0x20 || CodePoint >= 0x7F) in tryReadUCN()
3580 char C = static_cast<char>(CodePoint); in tryReadUCN()
3586 } else if (CodePoint >= 0xD800 && CodePoint <= 0xDFFF) { in tryReadUCN()
3599 return CodePoint; in tryReadUCN()
4356 if (uint32_t CodePoint = tryReadUCN(CurPtr, BufferPtr, &Result)) { in LexTokenInternal() local
4357 if (CheckUnicodeWhitespace(Result, CodePoint, CurPtr)) { in LexTokenInternal()
4366 return LexUnicodeIdentifierStart(Result, CodePoint, CurPtr); in LexTokenInternal()
4379 llvm::UTF32 CodePoint; in LexTokenInternal() local
4387 &CodePoint, in LexTokenInternal()
4390 if (CheckUnicodeWhitespace(Result, CodePoint, CurPtr)) { in LexTokenInternal()
4398 return LexUnicodeIdentifierStart(Result, CodePoint, CurPtr); in LexTokenInternal()