Lines Matching refs:CodePoint

1622     DiagnosticsEngine &Diags, const LangOptions &LangOpts, uint32_t CodePoint,  in diagnoseInvalidUnicodeCodepointInIdentifier()  argument
1624 if (isASCII(CodePoint)) in diagnoseInvalidUnicodeCodepointInIdentifier()
1627 bool IsIDStart = isAllowedInitiallyIDChar(CodePoint, LangOpts); in diagnoseInvalidUnicodeCodepointInIdentifier()
1628 bool IsIDContinue = IsIDStart || isAllowedIDChar(CodePoint, LangOpts); in diagnoseInvalidUnicodeCodepointInIdentifier()
1637 llvm::write_hex(CharOS, CodePoint, llvm::HexPrintStyle::Upper, 4); in diagnoseInvalidUnicodeCodepointInIdentifier()
1652 uint32_t CodePoint = tryReadUCN(UCNPtr, CurPtr, /*Token=*/nullptr); in tryConsumeIdentifierUCN() local
1653 if (CodePoint == 0) { in tryConsumeIdentifierUCN()
1657 if (!isAllowedIDChar(CodePoint, LangOpts)) { in tryConsumeIdentifierUCN()
1658 if (isASCII(CodePoint) || isUnicodeWhitespace(CodePoint)) in tryConsumeIdentifierUCN()
1663 PP->getDiagnostics(), LangOpts, CodePoint, in tryConsumeIdentifierUCN()
1671 maybeDiagnoseIDCharCompat(PP->getDiagnostics(), CodePoint, in tryConsumeIdentifierUCN()
1687 llvm::UTF32 CodePoint; in tryConsumeIdentifierUTF8Char() local
1691 &CodePoint, in tryConsumeIdentifierUTF8Char()
1696 if (!isAllowedIDChar(static_cast<uint32_t>(CodePoint), LangOpts)) { in tryConsumeIdentifierUTF8Char()
1697 if (isASCII(CodePoint) || isUnicodeWhitespace(CodePoint)) in tryConsumeIdentifierUTF8Char()
1703 PP->getDiagnostics(), LangOpts, CodePoint, in tryConsumeIdentifierUTF8Char()
1709 maybeDiagnoseIDCharCompat(PP->getDiagnostics(), CodePoint, in tryConsumeIdentifierUTF8Char()
1712 maybeDiagnoseUTF8Homoglyph(PP->getDiagnostics(), CodePoint, in tryConsumeIdentifierUTF8Char()
3225 uint32_t CodePoint = 0; in tryReadNumericUCN() local
3250 if (CodePoint & 0xF000'0000) { in tryReadNumericUCN()
3256 CodePoint <<= 4; in tryReadNumericUCN()
3257 CodePoint |= Value; in tryReadNumericUCN()
3306 return CodePoint; in tryReadNumericUCN()
3383 Res = LooseMatch->CodePoint; in tryReadNamedUCN()
3412 uint32_t CodePoint = *CodePointOpt; in tryReadUCN() local
3416 return CodePoint; in tryReadUCN()
3429 if (CodePoint < 0xA0) { in tryReadUCN()
3430 if (CodePoint == 0x24 || CodePoint == 0x40 || CodePoint == 0x60) in tryReadUCN()
3431 return CodePoint; in tryReadUCN()
3436 if (CodePoint < 0x20 || CodePoint >= 0x7F) in tryReadUCN()
3439 char C = static_cast<char>(CodePoint); in tryReadUCN()
3445 } else if (CodePoint >= 0xD800 && CodePoint <= 0xDFFF) { in tryReadUCN()
3458 return CodePoint; in tryReadUCN()
4218 if (uint32_t CodePoint = tryReadUCN(CurPtr, BufferPtr, &Result)) { in LexTokenInternal() local
4219 if (CheckUnicodeWhitespace(Result, CodePoint, CurPtr)) { in LexTokenInternal()
4228 return LexUnicodeIdentifierStart(Result, CodePoint, CurPtr); in LexTokenInternal()
4241 llvm::UTF32 CodePoint; in LexTokenInternal() local
4249 &CodePoint, in LexTokenInternal()
4252 if (CheckUnicodeWhitespace(Result, CodePoint, CurPtr)) { in LexTokenInternal()
4260 return LexUnicodeIdentifierStart(Result, CodePoint, CurPtr); in LexTokenInternal()