Home
last modified time | relevance | path

Searched refs:CodePoint (Results 1 – 8 of 8) sorted by relevance

/freebsd/contrib/llvm-project/llvm/lib/Demangle/
H A DRustDemangle.cpp799 static bool isAsciiPrintable(uint64_t CodePoint) { in isAsciiPrintable() argument
800 return 0x20 <= CodePoint && CodePoint <= 0x7e; in isAsciiPrintable()
806 uint64_t CodePoint = parseHexNumber(HexDigits); in demangleConstChar() local
813 switch (CodePoint) { in demangleConstChar()
1070 static inline bool encodeUTF8(size_t CodePoint, char *Output) { in encodeUTF8() argument
1071 if (0xD800 <= CodePoint && CodePoint <= 0xDFFF) in encodeUTF8()
1074 if (CodePoint <= 0x7F) { in encodeUTF8()
1075 Output[0] = CodePoint; in encodeUTF8()
1079 if (CodePoint <= 0x7FF) { in encodeUTF8()
1080 Output[0] = 0xC0 | ((CodePoint >> 6) & 0x3F); in encodeUTF8()
[all …]
/freebsd/contrib/llvm-project/clang/lib/Lex/
H A DLexer.cpp1740 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()
[all …]
H A DLiteralSupport.cpp392 uint32_t CodePoint = 0; in expandUCNs() local
398 CodePoint <<= 4; in expandUCNs()
399 CodePoint += Value; in expandUCNs()
401 appendCodePoint(CodePoint, Buf); in expandUCNs()
414 CodePoint = Res->CodePoint; in expandUCNs()
415 assert(CodePoint != 0xFFFFFFFF); in expandUCNs()
416 appendCodePoint(CodePoint, Buf); in expandUCNs()
433 CodePoint <<= 4; in expandUCNs()
434 CodePoint += Value; in expandUCNs()
437 appendCodePoint(CodePoint, Buf); in expandUCNs()
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DCommentLexer.cpp41 unsigned CodePoint) { in convertCodePointToUTF8() argument
44 if (llvm::ConvertCodePointToUTF8(CodePoint, ResolvedPtr)) in convertCodePointToUTF8()
70 unsigned CodePoint = 0; in resolveHTMLDecimalCharacterReference() local
73 CodePoint *= 10; in resolveHTMLDecimalCharacterReference()
74 CodePoint += Name[i] - '0'; in resolveHTMLDecimalCharacterReference()
76 return convertCodePointToUTF8(Allocator, CodePoint); in resolveHTMLDecimalCharacterReference()
80 unsigned CodePoint = 0; in resolveHTMLHexCharacterReference() local
82 CodePoint *= 16; in resolveHTMLHexCharacterReference()
85 CodePoint += llvm::hexDigitValue(C); in resolveHTMLHexCharacterReference()
87 return convertCodePointToUTF8(Allocator, CodePoint); in resolveHTMLHexCharacterReference()
/freebsd/contrib/llvm-project/clang/lib/AST/Interp/
H A DProgram.cpp77 const uint32_t CodePoint = I == N ? 0 : S->getCodeUnit(I); in createGlobalString() local
81 Field.deref<T>() = T::from(CodePoint, BitWidth); in createGlobalString()
87 Field.deref<T>() = T::from(CodePoint, BitWidth); in createGlobalString()
93 Field.deref<T>() = T::from(CodePoint, BitWidth); in createGlobalString()
/freebsd/contrib/llvm-project/llvm/include/llvm/Support/
H A DUnicode.h73 char32_t CodePoint; member
/freebsd/contrib/llvm-project/clang/include/clang/AST/
H A DCommentHTMLNamedCharacterReferences.td4 int CodePoint = codePoint;
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaChecking.cpp6477 llvm::UTF32 CodePoint; in HandleInvalidConversionSpecifier() local
6482 llvm::convertUTF8Sequence(B, E, &CodePoint, llvm::strictConversion); in HandleInvalidConversionSpecifier()
6486 CodePoint = (llvm::UTF32)FirstChar; in HandleInvalidConversionSpecifier()
6490 if (CodePoint < 256) in HandleInvalidConversionSpecifier()
6491 OS << "\\x" << llvm::format("%02x", CodePoint); in HandleInvalidConversionSpecifier()
6492 else if (CodePoint <= 0xFFFF) in HandleInvalidConversionSpecifier()
6493 OS << "\\u" << llvm::format("%04x", CodePoint); in HandleInvalidConversionSpecifier()
6495 OS << "\\U" << llvm::format("%08x", CodePoint); in HandleInvalidConversionSpecifier()