Home
last modified time | relevance | path

Searched refs:tryParse (Results 1 – 25 of 26) sorted by relevance

12

/llvm-project-15.0.7/llvm/unittests/Support/
H A DVersionTupleTest.cpp22 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 DObjCRuntime.cpp48 bool ObjCRuntime::tryParse(StringRef input) { in tryParse() function in ObjCRuntime
89 if (Version.tryParse(verString)) in tryParse()
H A DDarwinSDKInfo.cpp47 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 DCGHLSLRuntime.cpp30 if (Version.tryParse(ValVersionStr) || Version.getBuild() || in addDxilValVersion()
/llvm-project-15.0.7/llvm/lib/Support/
H A DVersionTuple.cpp63 bool VersionTuple::tryParse(StringRef input) { in tryParse() function in VersionTuple
H A DYAMLTraits.cpp1121 if (Val.tryParse(Scalar)) in input()
H A DTriple.cpp1179 Version.tryParse(Name); in parseVersionFromName()
/llvm-project-15.0.7/lldb/source/Interpreter/
H A DOptionGroupPlatform.cpp109 if (m_os_version.tryParse(option_arg)) in SetOptionValue()
/llvm-project-15.0.7/llvm/include/llvm/Support/
H A DVersionTuple.h188 bool tryParse(StringRef string);
/llvm-project-15.0.7/lldb/source/Host/linux/
H A DHostInfoLinux.cpp63 g_fields->m_os_version.tryParse(release); in GetOSVersion()
/llvm-project-15.0.7/clang/include/clang/Basic/
H A DObjCRuntime.h468 bool tryParse(StringRef input);
/llvm-project-15.0.7/clang/lib/Driver/ToolChains/
H A DHLSL.cpp113 if (Version.tryParse(ValVersionStr) || Version.getBuild() || in isLegalValidatorVersion()
H A DAMDGPU.cpp284 V.tryParse(VerStr); in getInstallationPathCandidates()
H A DDarwin.cpp1014 (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 DMSVC.cpp712 if (!Tuple.tryParse(windowsSDKIncludeVersion) && in AddClangSystemIncludeArgs()
/llvm-project-15.0.7/llvm/lib/WindowsDriver/
H A DMSVCPaths.cpp76 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 DPlatformDarwin.cpp847 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 DXcodeSDK.cpp99 version.tryParse(name.slice(0, i - 1)); in ParseSDKVersion()
/llvm-project-15.0.7/lld/MachO/
H A DInputFiles.cpp2066 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 DDriver.cpp651 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 DDWARFUnit.cpp699 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 DHostInfoMacOSX.mm80 version.tryParse(version_str);
/llvm-project-15.0.7/clang/lib/Frontend/
H A DCompilerInvocation.cpp3694 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 DToolChain.cpp1138 if (MSVT.tryParse(MSCompatibilityVersion->getValue())) { in computeMSVCVersion()
/llvm-project-15.0.7/lldb/source/Plugins/Process/gdb-remote/
H A DGDBRemoteCommunicationClient.cpp1283 if (!m_os_version.tryParse(value)) in GetHostInfo()
1286 if (!m_maccatalyst_version.tryParse(value)) in GetHostInfo()

12