Lines Matching refs:CodePoint
1670 DiagnosticsEngine &Diags, const LangOptions &LangOpts, uint32_t CodePoint, in diagnoseInvalidUnicodeCodepointInIdentifier() argument
1672 if (isASCII(CodePoint)) in diagnoseInvalidUnicodeCodepointInIdentifier()
1676 bool IsIDStart = isAllowedInitiallyIDChar(CodePoint, LangOpts, IsExtension); in diagnoseInvalidUnicodeCodepointInIdentifier()
1678 IsIDStart || isAllowedIDChar(CodePoint, LangOpts, IsExtension); in diagnoseInvalidUnicodeCodepointInIdentifier()
1687 << Range << codepointAsHexString(CodePoint) << int(InvalidOnlyAtStart) in diagnoseInvalidUnicodeCodepointInIdentifier()
1691 << Range << codepointAsHexString(CodePoint) in diagnoseInvalidUnicodeCodepointInIdentifier()
1699 uint32_t CodePoint = tryReadUCN(UCNPtr, CurPtr, /*Token=*/nullptr); in tryConsumeIdentifierUCN() local
1700 if (CodePoint == 0) { in tryConsumeIdentifierUCN()
1704 if (!isAllowedIDChar(CodePoint, LangOpts, IsExtension)) { in tryConsumeIdentifierUCN()
1705 if (isASCII(CodePoint) || isUnicodeWhitespace(CodePoint)) in tryConsumeIdentifierUCN()
1710 PP->getDiagnostics(), LangOpts, CodePoint, in tryConsumeIdentifierUCN()
1719 diagnoseExtensionInIdentifier(PP->getDiagnostics(), CodePoint, in tryConsumeIdentifierUCN()
1722 maybeDiagnoseIDCharCompat(PP->getDiagnostics(), CodePoint, in tryConsumeIdentifierUCN()
1739 llvm::UTF32 CodePoint; in tryConsumeIdentifierUTF8Char() local
1743 &CodePoint, in tryConsumeIdentifierUTF8Char()
1749 if (!isAllowedIDChar(static_cast<uint32_t>(CodePoint), LangOpts, in tryConsumeIdentifierUTF8Char()
1751 if (isASCII(CodePoint) || isUnicodeWhitespace(CodePoint)) in tryConsumeIdentifierUTF8Char()
1757 PP->getDiagnostics(), LangOpts, CodePoint, in tryConsumeIdentifierUTF8Char()
1764 diagnoseExtensionInIdentifier(PP->getDiagnostics(), CodePoint, in tryConsumeIdentifierUTF8Char()
1766 maybeDiagnoseIDCharCompat(PP->getDiagnostics(), CodePoint, in tryConsumeIdentifierUTF8Char()
1769 maybeDiagnoseUTF8Homoglyph(PP->getDiagnostics(), CodePoint, in tryConsumeIdentifierUTF8Char()
3286 uint32_t CodePoint = 0; in tryReadNumericUCN() local
3311 if (CodePoint & 0xF000'0000) { in tryReadNumericUCN()
3317 CodePoint <<= 4; in tryReadNumericUCN()
3318 CodePoint |= Value; in tryReadNumericUCN()
3370 return CodePoint; in tryReadNumericUCN()
3449 Match = LooseMatch->CodePoint; in tryReadNamedUCN()
3481 uint32_t CodePoint = *CodePointOpt; in tryReadUCN() local
3485 return CodePoint; in tryReadUCN()
3498 if (CodePoint < 0xA0) { in tryReadUCN()
3499 if (CodePoint == 0x24 || CodePoint == 0x40 || CodePoint == 0x60) in tryReadUCN()
3500 return CodePoint; in tryReadUCN()
3505 if (CodePoint < 0x20 || CodePoint >= 0x7F) in tryReadUCN()
3508 char C = static_cast<char>(CodePoint); in tryReadUCN()
3514 } else if (CodePoint >= 0xD800 && CodePoint <= 0xDFFF) { in tryReadUCN()
3527 return CodePoint; in tryReadUCN()
4286 if (uint32_t CodePoint = tryReadUCN(CurPtr, BufferPtr, &Result)) { in LexTokenInternal() local
4287 if (CheckUnicodeWhitespace(Result, CodePoint, CurPtr)) { in LexTokenInternal()
4296 return LexUnicodeIdentifierStart(Result, CodePoint, CurPtr); in LexTokenInternal()
4309 llvm::UTF32 CodePoint; in LexTokenInternal() local
4317 &CodePoint, in LexTokenInternal()
4320 if (CheckUnicodeWhitespace(Result, CodePoint, CurPtr)) { in LexTokenInternal()
4328 return LexUnicodeIdentifierStart(Result, CodePoint, CurPtr); in LexTokenInternal()