| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/misc/ |
| H A D | MisleadingBidirectional.cpp | 53 llvm::UTF32 CodePoint; in containsMisleadingBidi() local 56 &CodePoint, llvm::strictConversion); in containsMisleadingBidi() 65 if (CodePoint == RLO || CodePoint == RLE || CodePoint == LRO || in containsMisleadingBidi() 66 CodePoint == LRE) in containsMisleadingBidi() 69 else if (CodePoint == PDF) { in containsMisleadingBidi() 74 else if (CodePoint == RLI || CodePoint == LRI || CodePoint == FSI) in containsMisleadingBidi() 77 else if (CodePoint == PDI) { in containsMisleadingBidi() 83 else if (CodePoint == PS) in containsMisleadingBidi()
|
| H A D | MisleadingIdentifier.cpp | 129 llvm::UTF32 CodePoint; in hasRTLCharacters() local 131 (const llvm::UTF8 **)&CurPtr, (const llvm::UTF8 *)EndPtr, &CodePoint, in hasRTLCharacters() 135 if (isUnassignedAL(CodePoint) || isUnassignedR(CodePoint) || isR(CodePoint)) in hasRTLCharacters()
|
| H A D | ConfusableIdentifierCheck.cpp | 61 UTF32 CodePoint; in skeleton() local 64 reinterpret_cast<const UTF8 *>(End), &CodePoint, strictConversion); in skeleton() 72 std::end(ConfusableEntries), CodePoint, in skeleton() 75 if (Where == std::end(ConfusableEntries) || CodePoint != Where->codepoint) { in skeleton()
|
| /llvm-project-15.0.7/llvm/lib/Demangle/ |
| H A D | RustDemangle.cpp | 806 return 0x20 <= CodePoint && CodePoint <= 0x7e; in isAsciiPrintable() 819 switch (CodePoint) { in demangleConstChar() 1077 if (0xD800 <= CodePoint && CodePoint <= 0xDFFF) in encodeUTF8() 1080 if (CodePoint <= 0x7F) { in encodeUTF8() 1081 Output[0] = CodePoint; in encodeUTF8() 1085 if (CodePoint <= 0x7FF) { in encodeUTF8() 1087 Output[1] = 0x80 | (CodePoint & 0x3F); in encodeUTF8() 1091 if (CodePoint <= 0xFFFF) { in encodeUTF8() 1092 Output[0] = 0xE0 | (CodePoint >> 12); in encodeUTF8() 1098 if (CodePoint <= 0x10FFFF) { in encodeUTF8() [all …]
|
| /llvm-project-15.0.7/clang/utils/TableGen/ |
| H A D | ClangCommentHTMLNamedCharacterReferenceEmitter.cpp | 29 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()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/misc/ConfusableTable/ |
| H A D | BuildConfusableTable.cpp | 41 llvm::UTF32 CodePoint; in main() local 42 From.getAsInteger(16, CodePoint); in main() 55 Entries.emplace_back(CodePoint, To); in main()
|
| /llvm-project-15.0.7/clang/lib/Lex/ |
| H A D | Lexer.cpp | 1653 if (CodePoint == 0) { in tryConsumeIdentifierUCN() 1658 if (isASCII(CodePoint) || isUnicodeWhitespace(CodePoint)) in tryConsumeIdentifierUCN() 1697 if (isASCII(CodePoint) || isUnicodeWhitespace(CodePoint)) in tryConsumeIdentifierUTF8Char() 3256 CodePoint <<= 4; in tryReadNumericUCN() 3257 CodePoint |= Value; in tryReadNumericUCN() 3306 return CodePoint; in tryReadNumericUCN() 3416 return CodePoint; in tryReadUCN() 3430 if (CodePoint == 0x24 || CodePoint == 0x40 || CodePoint == 0x60) in tryReadUCN() 3436 if (CodePoint < 0x20 || CodePoint >= 0x7F) in tryReadUCN() 3445 } else if (CodePoint >= 0xD800 && CodePoint <= 0xDFFF) { in tryReadUCN() [all …]
|
| H A D | LiteralSupport.cpp | 343 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()
|
| /llvm-project-15.0.7/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()
|
| /llvm-project-15.0.7/clang/lib/AST/Interp/ |
| H A D | Program.cpp | 73 const uint32_t CodePoint = I == N ? 0 : S->getCodeUnit(I); in createGlobalString() local 77 Field.deref<T>() = T::from(CodePoint, BitWidth); in createGlobalString() 82 Field.deref<T>() = T::from(CodePoint, BitWidth); in createGlobalString() 87 Field.deref<T>() = T::from(CodePoint, BitWidth); in createGlobalString()
|
| /llvm-project-15.0.7/llvm/include/llvm/Support/ |
| H A D | Unicode.h | 73 char32_t CodePoint; member
|
| /llvm-project-15.0.7/llvm/utils/UnicodeData/ |
| H A D | UnicodeNameMappingGenerator.cpp | 48 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()
|
| /llvm-project-15.0.7/llvm/unittests/Support/ |
| H A D | UnicodeTest.cpp | 207 return Opt->CodePoint; in TEST()
|
| /llvm-project-15.0.7/clang/include/clang/AST/ |
| H A D | CommentHTMLNamedCharacterReferences.td | 4 int CodePoint = codePoint;
|
| /llvm-project-15.0.7/clang/lib/Sema/ |
| H A D | SemaChecking.cpp | 9276 llvm::UTF32 CodePoint; in HandleInvalidConversionSpecifier() local 9281 llvm::convertUTF8Sequence(B, E, &CodePoint, llvm::strictConversion); in HandleInvalidConversionSpecifier() 9285 CodePoint = (llvm::UTF32)FirstChar; in HandleInvalidConversionSpecifier() 9289 if (CodePoint < 256) in HandleInvalidConversionSpecifier() 9290 OS << "\\x" << llvm::format("%02x", CodePoint); in HandleInvalidConversionSpecifier() 9291 else if (CodePoint <= 0xFFFF) in HandleInvalidConversionSpecifier() 9292 OS << "\\u" << llvm::format("%04x", CodePoint); in HandleInvalidConversionSpecifier() 9294 OS << "\\U" << llvm::format("%08x", CodePoint); in HandleInvalidConversionSpecifier()
|