/llvm-project/clang-tools-extra/clang-tidy/misc/ |
H A D | MisleadingBidirectional.cpp | 54 llvm::UTF32 CodePoint = 0; in containsMisleadingBidi() local 57 &CodePoint, llvm::strictConversion); in containsMisleadingBidi() 66 if (CodePoint == RLO || CodePoint == RLE || CodePoint == LRO || in containsMisleadingBidi() 67 CodePoint == LRE) in containsMisleadingBidi() 70 else if (CodePoint == PDF) { in containsMisleadingBidi() 75 else if (CodePoint == RLI || CodePoint == LRI || CodePoint == FSI) in containsMisleadingBidi() 78 else if (CodePoint == PDI) { in containsMisleadingBidi() 84 else if (CodePoint == PS) in containsMisleadingBidi()
|
H A D | MisleadingIdentifier.cpp | 127 llvm::UTF32 CodePoint = 0; in hasRTLCharacters() local 129 (const llvm::UTF8 **)&CurPtr, (const llvm::UTF8 *)EndPtr, &CodePoint, in hasRTLCharacters() 133 if (isUnassignedAL(CodePoint) || isUnassignedR(CodePoint) || isR(CodePoint)) in hasRTLCharacters()
|
H A D | ConfusableIdentifierCheck.cpp | 59 UTF32 CodePoint = 0; in skeleton() local 62 reinterpret_cast<const UTF8 *>(End), &CodePoint, strictConversion); in skeleton() 69 auto Where = llvm::lower_bound(ConfusableEntries, CodePoint, in skeleton() 72 if (Where == std::end(ConfusableEntries) || CodePoint != Where->codepoint) { in skeleton()
|
/llvm-project/llvm/lib/Demangle/ |
H A D | RustDemangle.cpp | 798 /// Returns true if CodePoint represents a printable ASCII character. 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() 833 if (isAsciiPrintable(CodePoint)) { in demangleConstChar() 834 char C = CodePoint; in demangleConstChar() 1069 // CodePoint is not a valid unicode scalar value. 1070 static inline bool encodeUTF8(size_t CodePoint, cha argument [all...] |
/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() 58 if (!translateCodePointToUTF8(CodePoint, CLiteral)) { in EmitClangCommentHTMLNamedCharacterReferences() local
|
/llvm-project/clang-tools-extra/clang-tidy/misc/ConfusableTable/ |
H A D | BuildConfusableTable.cpp | 41 llvm::UTF32 CodePoint = 0; in main() local 42 From.getAsInteger(16, CodePoint); in main() 55 Entries.emplace_back(CodePoint, To); in main()
|
/llvm-project/clang/lib/Lex/ |
H A D | Lexer.cpp | 1762 DiagnosticsEngine &Diags, const LangOptions &LangOpts, uint32_t CodePoint, in diagnoseInvalidUnicodeCodepointInIdentifier() 1764 if (isASCII(CodePoint)) in diagnoseInvalidUnicodeCodepointInIdentifier() 1768 bool IsIDStart = isAllowedInitiallyIDChar(CodePoint, LangOpts, IsExtension); in tryConsumeIdentifierUCN() 1770 IsIDStart || isAllowedIDChar(CodePoint, LangOpts, IsExtension); in tryConsumeIdentifierUCN() 1779 << Range << codepointAsHexString(CodePoint) << int(InvalidOnlyAtStart) in tryConsumeIdentifierUCN() 1783 << Range << codepointAsHexString(CodePoint) in tryConsumeIdentifierUCN() 1791 uint32_t CodePoint = tryReadUCN(UCNPtr, CurPtr, /*Token=*/nullptr); in tryConsumeIdentifierUCN() 1792 if (CodePoint == 0) { in tryConsumeIdentifierUCN() 1796 if (!isAllowedIDChar(CodePoint, LangOpts, IsExtension)) { in tryConsumeIdentifierUCN() 1797 if (isASCII(CodePoint) || isUnicodeWhitespac in tryConsumeIdentifierUCN() 1740 diagnoseInvalidUnicodeCodepointInIdentifier(DiagnosticsEngine & Diags,const LangOptions & LangOpts,uint32_t CodePoint,CharSourceRange Range,bool IsFirst) diagnoseInvalidUnicodeCodepointInIdentifier() argument 1769 uint32_t CodePoint = tryReadUCN(UCNPtr, CurPtr, /*Token=*/nullptr); tryConsumeIdentifierUCN() local 1808 llvm::UTF32 CodePoint; tryConsumeIdentifierUTF8Char() local 3412 uint32_t CodePoint = 0; tryReadNumericUCN() local 3607 uint32_t CodePoint = *CodePointOpt; tryReadUCN() local 4412 if (uint32_t CodePoint = tryReadUCN(CurPtr, BufferPtr, &Result)) { LexTokenInternal() local 4435 llvm::UTF32 CodePoint; LexTokenInternal() local [all...] |
H A D | LiteralSupport.cpp | 394 uint32_t CodePoint = 0; in expandUCNs() 400 CodePoint <<= 4; in expandUCNs() 401 CodePoint += Value; in expandUCNs() 403 appendCodePoint(CodePoint, Buf); in expandUCNs() 416 CodePoint = Res->CodePoint; in expandUCNs() 417 assert(CodePoint != 0xFFFFFFFF); in expandUCNs() 418 appendCodePoint(CodePoint, Buf); in expandUCNs() 435 CodePoint <<= 4; in expandUCNs() 436 CodePoint in expandUCNs() 392 uint32_t CodePoint = 0; expandUCNs() local [all...] |
/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() [all...] |
/llvm-project/clang/lib/AST/Interp/ |
H A D | Program.cpp |
|
/llvm-project/llvm/include/llvm/Support/ |
H A D | Unicode.h | 73 char32_t CodePoint; member
|
/llvm-project/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/llvm/unittests/Support/ |
H A D | UnicodeTest.cpp | 219 return Opt->CodePoint; in TEST()
|
/llvm-project/clang/include/clang/AST/ |
H A D | CommentHTMLNamedCharacterReferences.td | 4 int CodePoint = codePoint;
|
/llvm-project/clang/lib/Sema/ |
H A D | SemaChecking.cpp | 6745 llvm::UTF32 CodePoint; in HandleInvalidAmount() 6750 llvm::convertUTF8Sequence(B, E, &CodePoint, llvm::strictConversion); in HandleInvalidAmount() 6754 CodePoint = (llvm::UTF32)FirstChar; in HandleFlag() 6758 if (CodePoint < 256) in HandleFlag() 6759 OS << "\\x" << llvm::format("%02x", CodePoint); in HandleFlag() 6760 else if (CodePoint <= 0xFFFF) in HandleFlag() 6761 OS << "\\u" << llvm::format("%04x", CodePoint); in HandleFlag() 6763 OS << "\\U" << llvm::format("%08x", CodePoint); in HandleFlag() 6473 llvm::UTF32 CodePoint; HandleInvalidConversionSpecifier() local
|