Home
last modified time | relevance | path

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

/openbsd-src/gnu/llvm/llvm/lib/Demangle/
H A DRustDemangle.cpp802 static bool isAsciiPrintable(uint64_t CodePoint) { in isAsciiPrintable() argument
803 return 0x20 <= CodePoint && CodePoint <= 0x7e; in isAsciiPrintable()
809 uint64_t CodePoint = parseHexNumber(HexDigits); in demangleConstChar() local
816 switch (CodePoint) { in demangleConstChar()
1073 static inline bool encodeUTF8(size_t CodePoint, char *Output) { in encodeUTF8() argument
1074 if (0xD800 <= CodePoint && CodePoint <= 0xDFFF) in encodeUTF8()
1077 if (CodePoint <= 0x7F) { in encodeUTF8()
1078 Output[0] = CodePoint; in encodeUTF8()
1082 if (CodePoint <= 0x7FF) { in encodeUTF8()
1083 Output[0] = 0xC0 | ((CodePoint >> 6) & 0x3F); in encodeUTF8()
[all …]
/openbsd-src/gnu/llvm/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()
/openbsd-src/gnu/llvm/clang/lib/Lex/
H A DLexer.cpp1670 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()
[all …]
H A DLiteralSupport.cpp343 uint32_t CodePoint = 0; in expandUCNs() local
349 CodePoint <<= 4; in expandUCNs()
350 CodePoint += Value; in expandUCNs()
352 appendCodePoint(CodePoint, Buf); in expandUCNs()
365 CodePoint = Res->CodePoint; in expandUCNs()
366 assert(CodePoint != 0xFFFFFFFF); in expandUCNs()
367 appendCodePoint(CodePoint, Buf); in expandUCNs()
384 CodePoint <<= 4; in expandUCNs()
385 CodePoint += Value; in expandUCNs()
388 appendCodePoint(CodePoint, Buf); in expandUCNs()
/openbsd-src/gnu/llvm/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()
/openbsd-src/gnu/llvm/clang/lib/AST/Interp/
H A DProgram.cpp75 const uint32_t CodePoint = I == N ? 0 : S->getCodeUnit(I); in createGlobalString() local
79 Field.deref<T>() = T::from(CodePoint, BitWidth); in createGlobalString()
84 Field.deref<T>() = T::from(CodePoint, BitWidth); in createGlobalString()
89 Field.deref<T>() = T::from(CodePoint, BitWidth); in createGlobalString()
/openbsd-src/gnu/llvm/llvm/include/llvm/Support/
H A DUnicode.h73 char32_t CodePoint; member
/openbsd-src/gnu/llvm/llvm/utils/UnicodeData/
H A DUnicodeNameMappingGenerator.cpp48 unsigned long long CodePoint; in loadDataFiles() local
50 llvm::StringRef(Line.c_str(), FirstSemiPos), 16, CodePoint)) { in loadDataFiles()
79 InsertUnique(CodePoint, std::move(Name)); in loadDataFiles()
/openbsd-src/gnu/llvm/clang/include/clang/AST/
H A DCommentHTMLNamedCharacterReferences.td4 int CodePoint = codePoint;
/openbsd-src/gnu/llvm/clang/lib/Sema/
H A DSemaChecking.cpp9549 llvm::UTF32 CodePoint; in HandleInvalidConversionSpecifier() local
9554 llvm::convertUTF8Sequence(B, E, &CodePoint, llvm::strictConversion); in HandleInvalidConversionSpecifier()
9558 CodePoint = (llvm::UTF32)FirstChar; in HandleInvalidConversionSpecifier()
9562 if (CodePoint < 256) in HandleInvalidConversionSpecifier()
9563 OS << "\\x" << llvm::format("%02x", CodePoint); in HandleInvalidConversionSpecifier()
9564 else if (CodePoint <= 0xFFFF) in HandleInvalidConversionSpecifier()
9565 OS << "\\u" << llvm::format("%04x", CodePoint); in HandleInvalidConversionSpecifier()
9567 OS << "\\U" << llvm::format("%08x", CodePoint); in HandleInvalidConversionSpecifier()