| /llvm-project-15.0.7/llvm/unittests/Support/ |
| H A D | VersionTupleTest.cpp | 22 TEST(VersionTuple, tryParse) { in TEST() argument 25 EXPECT_FALSE(VT.tryParse("1")); in TEST() 28 EXPECT_FALSE(VT.tryParse("1.2")); in TEST() 37 EXPECT_TRUE(VT.tryParse("")); in TEST() 38 EXPECT_TRUE(VT.tryParse("1.")); in TEST() 43 EXPECT_TRUE(VT.tryParse("1-2")); in TEST() 44 EXPECT_TRUE(VT.tryParse("1+2")); in TEST() 45 EXPECT_TRUE(VT.tryParse(".1")); in TEST() 46 EXPECT_TRUE(VT.tryParse(" 1")); in TEST() 47 EXPECT_TRUE(VT.tryParse("1 ")); in TEST() [all …]
|
| /llvm-project-15.0.7/clang/lib/Basic/ |
| H A D | ObjCRuntime.cpp | 48 bool ObjCRuntime::tryParse(StringRef input) { in tryParse() function in ObjCRuntime 89 if (Version.tryParse(verString)) in tryParse()
|
| H A D | DarwinSDKInfo.cpp | 47 if (KeyVersion.tryParse(KV.getFirst()) || ValueVersion.tryParse(*Val)) in parseJSON() 70 if (Version.tryParse(*Value)) in getVersionKey()
|
| /llvm-project-15.0.7/clang/lib/CodeGen/ |
| H A D | CGHLSLRuntime.cpp | 30 if (Version.tryParse(ValVersionStr) || Version.getBuild() || in addDxilValVersion()
|
| /llvm-project-15.0.7/llvm/lib/Support/ |
| H A D | VersionTuple.cpp | 63 bool VersionTuple::tryParse(StringRef input) { in tryParse() function in VersionTuple
|
| H A D | YAMLTraits.cpp | 1121 if (Val.tryParse(Scalar)) in input()
|
| H A D | Triple.cpp | 1179 Version.tryParse(Name); in parseVersionFromName()
|
| /llvm-project-15.0.7/lldb/source/Interpreter/ |
| H A D | OptionGroupPlatform.cpp | 109 if (m_os_version.tryParse(option_arg)) in SetOptionValue()
|
| /llvm-project-15.0.7/llvm/include/llvm/Support/ |
| H A D | VersionTuple.h | 188 bool tryParse(StringRef string);
|
| /llvm-project-15.0.7/lldb/source/Host/linux/ |
| H A D | HostInfoLinux.cpp | 63 g_fields->m_os_version.tryParse(release); in GetOSVersion()
|
| /llvm-project-15.0.7/clang/include/clang/Basic/ |
| H A D | ObjCRuntime.h | 468 bool tryParse(StringRef input);
|
| /llvm-project-15.0.7/clang/lib/Driver/ToolChains/ |
| H A D | HLSL.cpp | 113 if (Version.tryParse(ValVersionStr) || Version.getBuild() || in isLegalValidatorVersion()
|
| H A D | AMDGPU.cpp | 284 V.tryParse(VerStr); in getInstallationPathCandidates()
|
| H A D | Darwin.cpp | 1014 (void)NewLinkerVersion.tryParse(A->getValue()); in getLinkerVersion() 1022 if (NewLinkerVersion.tryParse(A->getValue())) in getLinkerVersion() 1694 bool IsValid = !Version.tryParse(OSVersion); in inferSDKInfo()
|
| H A D | MSVC.cpp | 712 if (!Tuple.tryParse(windowsSDKIncludeVersion) && in AddClangSystemIncludeArgs()
|
| /llvm-project-15.0.7/llvm/lib/WindowsDriver/ |
| H A D | MSVCPaths.cpp | 76 if (Tuple.tryParse(CandidateName)) // tryParse() returns true on error. in getHighestNumericTupleInDirectory() 106 SDKVersion.tryParse(*WinSdkVersion); in getWindowsSDKDirViaCommandLine()
|
| /llvm-project-15.0.7/lldb/source/Plugins/Platform/MacOSX/ |
| H A D | PlatformDarwin.cpp | 847 if (!version.tryParse(version_str) || in ParseVersionBuildDir() 1098 if (!result.tryParse(env.lookup("SIMULATOR_RUNTIME_VERSION"))) in GetOSVersion() 1108 if (!result.tryParse(product_version)) in GetOSVersion()
|
| /llvm-project-15.0.7/lldb/source/Utility/ |
| H A D | XcodeSDK.cpp | 99 version.tryParse(name.slice(0, i - 1)); in ParseSDKVersion()
|
| /llvm-project-15.0.7/lld/MachO/ |
| H A D | InputFiles.cpp | 2066 if (start.tryParse(startVersion)) { in handleLDPreviousSymbol() 2072 if (end.tryParse(endVersion)) { in handleLDPreviousSymbol() 2085 if (cVersion.tryParse(compatVersion)) { in handleLDPreviousSymbol() 2119 if (!condition.consume_front("os") || version.tryParse(condition)) in handleLDInstallNameSymbol() 2134 if (versionTup.tryParse(minVersion)) { in handleLDHideSymbol()
|
| H A D | Driver.cpp | 651 if (platformVersion.minimum.tryParse(minVersionStr)) in parsePlatformVersion() 653 if (platformVersion.sdk.tryParse(sdkVersionStr)) in parsePlatformVersion()
|
| /llvm-project-15.0.7/lldb/source/Plugins/SymbolFile/DWARF/ |
| H A D | DWARFUnit.cpp | 699 m_producer_version.tryParse(matches[1]); in ParseProducerInfo() 703 m_producer_version.tryParse(matches[1]); in ParseProducerInfo()
|
| /llvm-project-15.0.7/lldb/source/Host/macosx/objcxx/ |
| H A D | HostInfoMacOSX.mm | 80 version.tryParse(version_str);
|
| /llvm-project-15.0.7/clang/lib/Frontend/ |
| H A D | CompilerInvocation.cpp | 3694 if (Opts.ObjCRuntime.tryParse(value)) in ParseLangArgs() 3742 bool Invalid = GNUCVer.tryParse(A->getValue()); in ParseLangArgs() 3768 if (VT.tryParse(A->getValue())) in ParseLangArgs() 4410 if (Version.tryParse(A->getValue())) in ParseTargetArgs() 4419 if (Version.tryParse(A->getValue())) in ParseTargetArgs()
|
| /llvm-project-15.0.7/clang/lib/Driver/ |
| H A D | ToolChain.cpp | 1138 if (MSVT.tryParse(MSCompatibilityVersion->getValue())) { in computeMSVCVersion()
|
| /llvm-project-15.0.7/lldb/source/Plugins/Process/gdb-remote/ |
| H A D | GDBRemoteCommunicationClient.cpp | 1283 if (!m_os_version.tryParse(value)) in GetHostInfo() 1286 if (!m_maccatalyst_version.tryParse(value)) in GetHostInfo()
|