Home
last modified time | relevance | path

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

/freebsd-src/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-src/contrib/llvm-project/clang/utils/TableGen/
H A DClangCommentHTMLNamedCharacterReferenceEmitter.cpp29 static bool translateCodePointToUTF8(unsigned CodePoint, in translateCodePointToUTF8() argument
33 if (!ConvertCodePointToUTF8(CodePoint, TranslatedPtr)) in translateCodePointToUTF8()
58 uint64_t CodePoint = Tag.getValueAsInt("CodePoint"); in EmitClangCommentHTMLNamedCharacterReferences() local
61 if (!translateCodePointToUTF8(CodePoint, CLiteral)) { in EmitClangCommentHTMLNamedCharacterReferences()
/freebsd-src/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-src/contrib/llvm-project/clang/lib/Lex/
H A DLexer.cpp1740 DiagnosticsEngine &Diags, const LangOptions &LangOpts, uint32_t CodePoint, in tryConsumeIdentifierUCN()
1742 if (isASCII(CodePoint)) in tryConsumeIdentifierUCN()
1746 bool IsIDStart = isAllowedInitiallyIDChar(CodePoint, LangOpts, IsExtension); in tryConsumeIdentifierUCN()
1748 IsIDStart || isAllowedIDChar(CodePoint, LangOpts, IsExtension); in tryConsumeIdentifierUCN()
1757 << Range << codepointAsHexString(CodePoint) << int(InvalidOnlyAtStart) in tryConsumeIdentifierUCN()
1761 << Range << codepointAsHexString(CodePoint)
1769 uint32_t CodePoint = tryReadUCN(UCNPtr, CurPtr, /*Token=*/nullptr); in tryConsumeIdentifierUTF8Char()
1770 if (CodePoint == 0) { in tryConsumeIdentifierUTF8Char()
1774 if (!isAllowedIDChar(CodePoint, LangOpts, IsExtension)) { in tryConsumeIdentifierUTF8Char()
1775 if (isASCII(CodePoint) || isUnicodeWhitespac in tryConsumeIdentifierUTF8Char()
1695 diagnoseInvalidUnicodeCodepointInIdentifier(DiagnosticsEngine & Diags,const LangOptions & LangOpts,uint32_t CodePoint,CharSourceRange Range,bool IsFirst) diagnoseInvalidUnicodeCodepointInIdentifier() argument
1724 uint32_t CodePoint = tryReadUCN(UCNPtr, CurPtr, /*Token=*/nullptr); tryConsumeIdentifierUCN() local
1763 llvm::UTF32 CodePoint; tryConsumeIdentifierUTF8Char() local
3356 uint32_t CodePoint = 0; tryReadNumericUCN() local
3551 uint32_t CodePoint = *CodePointOpt; tryReadUCN() local
4356 if (uint32_t CodePoint = tryReadUCN(CurPtr, BufferPtr, &Result)) { LexTokenInternal() local
4379 llvm::UTF32 CodePoint; LexTokenInternal() local
[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 in expandUCNs()
[all...]
/freebsd-src/contrib/llvm-project/clang/lib/AST/Interp/
H A DProgram.cpp77 const uint32_t CodePoint = I == N ? 0 : S->getCodeUnit(I); in createGlobalString()
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()
76 const uint32_t CodePoint = I == N ? 0 : S->getCodeUnit(I); createGlobalString() local
/freebsd-src/contrib/llvm-project/llvm/include/llvm/Support/
H A DUnicode.h73 char32_t CodePoint; member
/freebsd-src/contrib/llvm-project/clang/include/clang/AST/
H A DCommentHTMLNamedCharacterReferences.td4 int CodePoint = codePoint;
/freebsd-src/contrib/llvm-project/clang/lib/Sema/
H A DSemaChecking.cpp6477 llvm::UTF32 CodePoint; in CheckX86BuiltinRoundingOrSAE()
6482 llvm::convertUTF8Sequence(B, E, &CodePoint, llvm::strictConversion); in CheckX86BuiltinRoundingOrSAE()
6486 CodePoint = (llvm::UTF32)FirstChar; in CheckX86BuiltinRoundingOrSAE()
6490 if (CodePoint < 256) in CheckX86BuiltinRoundingOrSAE()
6491 OS << "\\x" << llvm::format("%02x", CodePoint); in CheckX86BuiltinRoundingOrSAE()
6492 else if (CodePoint <= 0xFFFF) in CheckX86BuiltinRoundingOrSAE()
6493 OS << "\\u" << llvm::format("%04x", CodePoint); in CheckX86BuiltinRoundingOrSAE()
6495 OS << "\\U" << llvm::format("%08x", CodePoint); in CheckX86BuiltinRoundingOrSAE()
11279 llvm::UTF32 CodePoint; HandleInvalidConversionSpecifier() local