| /freebsd/contrib/llvm-project/llvm/lib/Demangle/ |
| H A D | RustDemangle.cpp | 799 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/utils/TableGen/ |
| H A D | ClangCommentHTMLNamedCharacterReferenceEmitter.cpp | 29 static bool translateCodePointToUTF8(unsigned CodePoint, in translateCodePointToUTF8() argument 33 if (!ConvertCodePointToUTF8(CodePoint, TranslatedPtr)) in translateCodePointToUTF8() 55 uint64_t CodePoint = Tag->getValueAsInt("CodePoint"); in EmitClangCommentHTMLNamedCharacterReferences() local 58 if (!translateCodePointToUTF8(CodePoint, CLiteral)) { in EmitClangCommentHTMLNamedCharacterReferences()
|
| /freebsd/contrib/llvm-project/clang/lib/Lex/ |
| H A D | Lexer.cpp | 1759 DiagnosticsEngine &Diags, const LangOptions &LangOpts, uint32_t CodePoint, in diagnoseInvalidUnicodeCodepointInIdentifier() argument 1761 if (isASCII(CodePoint)) in diagnoseInvalidUnicodeCodepointInIdentifier() 1765 bool IsIDStart = isAllowedInitiallyIDChar(CodePoint, LangOpts, IsExtension); in diagnoseInvalidUnicodeCodepointInIdentifier() 1767 IsIDStart || isAllowedIDChar(CodePoint, LangOpts, IsExtension); in diagnoseInvalidUnicodeCodepointInIdentifier() 1776 << Range << codepointAsHexString(CodePoint) << int(InvalidOnlyAtStart) in diagnoseInvalidUnicodeCodepointInIdentifier() 1780 << Range << codepointAsHexString(CodePoint) in diagnoseInvalidUnicodeCodepointInIdentifier() 1788 uint32_t CodePoint = tryReadUCN(UCNPtr, CurPtr, /*Token=*/nullptr); in tryConsumeIdentifierUCN() local 1789 if (CodePoint == 0) { in tryConsumeIdentifierUCN() 1793 if (!isAllowedIDChar(CodePoint, LangOpts, IsExtension)) { in tryConsumeIdentifierUCN() 1794 if (isASCII(CodePoint) || isUnicodeWhitespace(CodePoint)) in tryConsumeIdentifierUCN() [all …]
|
| H A D | LiteralSupport.cpp | 393 uint32_t CodePoint = 0; in expandUCNs() local 399 CodePoint <<= 4; in expandUCNs() 400 CodePoint += Value; in expandUCNs() 402 appendCodePoint(CodePoint, Buf); in expandUCNs() 415 CodePoint = Res->CodePoint; in expandUCNs() 416 assert(CodePoint != 0xFFFFFFFF); in expandUCNs() 417 appendCodePoint(CodePoint, Buf); in expandUCNs() 434 CodePoint <<= 4; in expandUCNs() 435 CodePoint += Value; in expandUCNs() 438 appendCodePoint(CodePoint, Buf); in expandUCNs()
|
| /freebsd/contrib/llvm-project/clang/lib/AST/ |
| H A D | CommentLexer.cpp | 41 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/ByteCode/ |
| H A D | Program.cpp | 83 const uint32_t CodePoint = I == StringLength ? 0 : S->getCodeUnit(I); in createGlobalString() local 87 Field.deref<T>() = T::from(CodePoint, BitWidth); in createGlobalString() 92 Field.deref<T>() = T::from(CodePoint, BitWidth); in createGlobalString() 97 Field.deref<T>() = T::from(CodePoint, BitWidth); in createGlobalString()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/Support/ |
| H A D | Unicode.h | 74 char32_t CodePoint; member
|
| /freebsd/contrib/llvm-project/clang/include/clang/AST/ |
| H A D | CommentHTMLNamedCharacterReferences.td | 4 int CodePoint = codePoint;
|
| /freebsd/contrib/llvm-project/clang/lib/Sema/ |
| H A D | SemaChecking.cpp | 7131 llvm::UTF32 CodePoint; in HandleInvalidConversionSpecifier() local 7136 llvm::convertUTF8Sequence(B, E, &CodePoint, llvm::strictConversion); in HandleInvalidConversionSpecifier() 7140 CodePoint = (llvm::UTF32)FirstChar; in HandleInvalidConversionSpecifier() 7144 if (CodePoint < 256) in HandleInvalidConversionSpecifier() 7145 OS << "\\x" << llvm::format("%02x", CodePoint); in HandleInvalidConversionSpecifier() 7146 else if (CodePoint <= 0xFFFF) in HandleInvalidConversionSpecifier() 7147 OS << "\\u" << llvm::format("%04x", CodePoint); in HandleInvalidConversionSpecifier() 7149 OS << "\\U" << llvm::format("%08x", CodePoint); in HandleInvalidConversionSpecifier()
|