| /llvm-project-15.0.7/clang/unittests/Basic/ |
| H A D | CharInfoTest.cpp | 159 TEST(CharInfoTest, isDigit) { in TEST() argument 160 EXPECT_TRUE(isDigit('0')); in TEST() 161 EXPECT_TRUE(isDigit('9')); in TEST() 163 EXPECT_FALSE(isDigit('a')); in TEST() 164 EXPECT_FALSE(isDigit('A')); in TEST() 166 EXPECT_FALSE(isDigit('z')); in TEST() 167 EXPECT_FALSE(isDigit('Z')); in TEST() 169 EXPECT_FALSE(isDigit('.')); in TEST() 170 EXPECT_FALSE(isDigit('_')); in TEST() 172 EXPECT_FALSE(isDigit('/')); in TEST() [all …]
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/ |
| H A D | StringLiteralWithEmbeddedNulCheck.cpp | 68 isDigit(SL->getCodeUnit(Offset + 2)) && in check() 69 isDigit(SL->getCodeUnit(Offset + 3))) { in check()
|
| /llvm-project-15.0.7/libc/test/src/__support/CPP/ |
| H A D | stringview_test.cpp | 161 bool isDigit(char c) { return c >= '0' && c <= '9'; } in isDigit() function 169 ASSERT_TRUE(StringView("123abc").take_while(&isDigit).equals("123")); in TEST() 170 ASSERT_TRUE(StringView("abc123").take_until(&isDigit).equals("abc")); in TEST() 171 ASSERT_TRUE(StringView("123abc").drop_while(&isDigit).equals("abc")); in TEST() 172 ASSERT_TRUE(StringView("abc123").drop_until(&isDigit).equals("123")); in TEST()
|
| /llvm-project-15.0.7/llvm/lib/Demangle/ |
| H A D | RustDemangle.cpp | 176 static inline bool isDigit(const char C) { return '0' <= C && C <= '9'; } in isDigit() function 188 return isDigit(C) || isLower(C) || isUpper(C) || C == '_'; in isValid() 911 } else if (isDigit(C)) { in parseBase62Number() 941 if (!isDigit(C)) { in parseDecimalNumber() 953 while (isDigit(look())) { in parseDecimalNumber() 987 if (isDigit(C)) in parseHexNumber() 1059 if (isDigit(C)) { in decodePunycodeDigit()
|
| /llvm-project-15.0.7/llvm/lib/MC/MCParser/ |
| H A D | AsmLexer.cpp | 79 while (isDigit(*CurPtr)) in LexFloatLiteral() 92 while (isDigit(*CurPtr)) in LexFloatLiteral() 137 while (isDigit(*CurPtr)) in LexHexFloatLiteral() 155 if (CurPtr[-1] == '.' && isDigit(*CurPtr)) { in LexIdentifier() 157 while (isDigit(*CurPtr)) in LexIdentifier() 270 if (isDigit(*LookAhead)) { in doHexLookAhead() 493 if (!isDigit(CurPtr[0])) { in LexDigit()
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/ |
| H A D | DraftStore.cpp | 40 if (S.empty() || !llvm::isDigit(S.back())) { in increment() 47 if (I == E || !llvm::isDigit(*I)) { in increment()
|
| H A D | Hover.cpp | 815 if (llvm::isDigit(Rest.front())) { in isHardLineBreakIndicator() 816 llvm::StringRef AfterDigit = Rest.drop_while(llvm::isDigit); in isHardLineBreakIndicator()
|
| /llvm-project-15.0.7/llvm/lib/Support/ |
| H A D | StringRef.cpp | 64 if (isDigit(Data[I]) && isDigit(RHS.Data[I])) { in compare_numeric() 69 bool ld = J < Length && isDigit(Data[J]); in compare_numeric() 70 bool rd = J < RHS.Length && isDigit(RHS.Data[J]); in compare_numeric() 406 if (Str[0] == '0' && Str.size() > 1 && isDigit(Str[1])) { in GetAutoSenseRadix()
|
| H A D | RISCVISAInfo.cpp | 132 while (Pos > 0 && isDigit(Ext[Pos])) in findFirstNonVersionCharacter() 134 if (Pos > 0 && Ext[Pos] == 'p' && isDigit(Ext[Pos - 1])) { in findFirstNonVersionCharacter() 136 while (Pos > 0 && isDigit(Ext[Pos])) in findFirstNonVersionCharacter() 352 MajorStr = In.take_while(isDigit); in getExtensionVersion() 356 MinorStr = In.take_while(isDigit); in getExtensionVersion()
|
| /llvm-project-15.0.7/clang/lib/Frontend/ |
| H A D | LayoutOverrideSource.cpp | 131 while (!LineStr.empty() && isDigit(LineStr[0])) { in LayoutOverrideSource() 134 while (Idx < LineStr.size() && isDigit(LineStr[Idx])) in LayoutOverrideSource()
|
| /llvm-project-15.0.7/lld/Common/ |
| H A D | Strings.cpp | 66 return !s.empty() && !isDigit(s[0]) && in isValidCIdentifier()
|
| /llvm-project-15.0.7/clang/lib/Basic/ |
| H A D | Diagnostic.cpp | 598 if (!isDigit(*I) && !isPunctuation(*I)) { in ScanFormat() 599 for (I++; I != E && !isDigit(*I) && *I != '{'; I++) ; in ScanFormat() 905 if (!isDigit(DiagStr[0])) { in FormatDiagnostic() 924 assert(isDigit(*DiagStr) && "Invalid format for argument in diagnostic"); in FormatDiagnostic() 932 assert(*DiagStr == ',' && isDigit(*(DiagStr + 1)) && in FormatDiagnostic()
|
| H A D | TargetInfo.cpp | 558 if (isDigit(Name[0])) { in isValidGCCRegisterName() 601 if (isDigit(Name[0])) { in getNormalizedGCCRegisterName()
|
| /llvm-project-15.0.7/clang/include/clang/Basic/ |
| H A D | CharInfo.h | 99 LLVM_READONLY inline bool isDigit(unsigned char c) { in isDigit() function
|
| /llvm-project-15.0.7/mlir/lib/Tools/PDLL/CodeGen/ |
| H A D | MLIRGen.cpp | 448 assert(llvm::isDigit(name[0]) && in genExprImpl() 460 if (llvm::isDigit(name[0])) { in genExprImpl() 482 if (llvm::isDigit(name[0])) in genExprImpl()
|
| /llvm-project-15.0.7/llvm/include/llvm/ADT/ |
| H A D | StringExtras.h | 96 inline bool isDigit(char C) { return C >= '0' && C <= '9'; } in isDigit() function 108 inline bool isAlnum(char C) { return isAlpha(C) || isDigit(C); } in isAlnum()
|
| /llvm-project-15.0.7/mlir/tools/mlir-tblgen/ |
| H A D | EnumsGen.cpp | 25 using llvm::isDigit; 38 if (!str.empty() && isDigit(static_cast<unsigned char>(str.front()))) { in makeIdentifier()
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/support/ |
| H A D | Markup.cpp | 141 return llvm::all_of(Content, llvm::isDigit); in needsLeadingEscape() 148 llvm::all_of(Before, llvm::isDigit) && After.startswith(" "); in needsLeadingEscape()
|
| /llvm-project-15.0.7/clang/include/clang/Lex/ |
| H A D | LiteralSupport.h | 170 while (ptr != ThisTokEnd && (isDigit(*ptr) || isDigitSeparator(*ptr))) in SkipDigits()
|
| /llvm-project-15.0.7/llvm/lib/WindowsDriver/ |
| H A D | MSVCPaths.cpp | 213 while (*sp && !llvm::isDigit(*sp)) in getSystemRegistryString() 218 while (*ep && (llvm::isDigit(*ep) || (*ep == '.'))) in getSystemRegistryString()
|
| /llvm-project-15.0.7/mlir/lib/AsmParser/ |
| H A D | Lexer.cpp | 228 return llvm::all_of(str, llvm::isDigit); in lexBareIdentifierOrKeyword()
|
| /llvm-project-15.0.7/clang/lib/Lex/ |
| H A D | TokenConcatenation.cpp | 269 isDigit(FirstChar) || in AvoidConcat()
|
| /llvm-project-15.0.7/llvm/lib/CodeGen/AsmPrinter/ |
| H A D | AsmPrinterInlineAsm.cpp | 235 while (isDigit(*IDEnd)) in EmitInlineAsmStr()
|
| /llvm-project-15.0.7/llvm/lib/Target/AMDGPU/ |
| H A D | AMDGPULibFunc.cpp | 490 while (!s.empty() && isDigit(s.front())) { in eatNumber() 611 if (isDigit(TC)) { in parseItaniumParam()
|
| /llvm-project-15.0.7/llvm/include/llvm/TableGen/ |
| H A D | Record.h | 2021 bool IsDigitPart = isDigit(Curr[0]); in RecordParts() 2023 bool IsDigit = isDigit(Curr[I]); in RecordParts() 2028 IsDigitPart = isDigit(Curr[I]); in RecordParts()
|