| /llvm-project-15.0.7/libcxx/test/std/strings/string.conversions/ |
| H A D | stoi.pass.cpp | 22 assert(std::stoi("0") == 0); in main() 23 assert(std::stoi("-0") == 0); in main() 24 assert(std::stoi("-10") == -10); in main() 25 assert(std::stoi(" 10") == 10); in main() 44 (void)std::stoi("", &idx); in main() 62 (void)std::stoi("a1", &idx); in main() 71 assert(std::stoi(L"0") == 0); in main() 72 assert(std::stoi(L"-0") == 0); in main() 73 assert(std::stoi(L"-10") == -10); in main() 74 assert(std::stoi(L" 10") == 10); in main() [all …]
|
| /llvm-project-15.0.7/third-party/benchmark/test/ |
| H A D | string_util_gtest.cc | 70 TEST(StringUtilTest, stoi){{size_t pos = 0; in TEST() argument 71 EXPECT_EQ(0, benchmark::stoi("0", &pos)); in TEST() 76 EXPECT_EQ(-17, benchmark::stoi("-17", &pos)); in TEST() 81 EXPECT_EQ(1357, benchmark::stoi("1357", &pos)); in TEST() 86 EXPECT_EQ(10, benchmark::stoi("1010", &pos, 2)); in TEST() 91 EXPECT_EQ(520, benchmark::stoi("1010", &pos, 8)); in TEST() 96 EXPECT_EQ(1010, benchmark::stoi("1010", &pos, 10)); in TEST() 101 EXPECT_EQ(4112, benchmark::stoi("1010", &pos, 16)); in TEST() 106 EXPECT_EQ(0xBEEF, benchmark::stoi("BEEF", &pos, 16)); in TEST() 110 { ASSERT_THROW(benchmark::stoi("this is a test"), std::invalid_argument); } in TEST()
|
| /llvm-project-15.0.7/openmp/libomptarget/include/ |
| H A D | SourceInfo.h | 86 Filename(removePath(getSubstring(0))), Line(std::stoi(getSubstring(2))), in SourceInfo() 87 Column(std::stoi(getSubstring(3))) {} in SourceInfo() 91 Filename(removePath(getSubstring(1))), Line(std::stoi(getSubstring(2))), in SourceInfo() 92 Column(std::stoi(getSubstring(3))) {} in SourceInfo()
|
| H A D | Debug.h | 76 InfoLevel.store(std::stoi(EnvStr)); in getInfoLevelInternal() 90 DebugLevel = std::stoi(EnvStr); in getDebugLevel()
|
| /llvm-project-15.0.7/openmp/libomptarget/plugins/remote/include/ |
| H A D | Utils.h | 75 MaxSize = std::stoi(Env); 77 BlockSize = std::stoi(Env); 79 Timeout = std::stoi(Env1);
|
| /llvm-project-15.0.7/third-party/benchmark/src/ |
| H A D | string_util.h | 54 int stoi(const std::string& str, size_t* pos = nullptr, int base = 10); 58 using std::stoi; // NOLINT(misc-unused-using-decls)
|
| H A D | string_util.cc | 212 int stoi(const std::string& str, size_t* pos, int base) { in stoi() function
|
| H A D | sysinfo.cc | 507 int CurID = benchmark::stoi(value); in GetNumCPUs()
|
| /llvm-project-15.0.7/lldb/test/API/tools/lldb-vscode/optimized/ |
| H A D | main.cpp | 10 int optimized = argc > 1 ? std::stoi(argv[1]) : 0; in main()
|
| /llvm-project-15.0.7/lldb/unittests/tools/lldb-server/inferior/ |
| H A D | thread_inferior.cpp | 18 thread_count = std::stoi(argv[1], nullptr, 10); in main()
|
| /llvm-project-15.0.7/openmp/runtime/test/tasking/hidden_helper_task/ |
| H A D | common.h | 59 return std::stoi(env); in get_num_hidden_helper_threads()
|
| /llvm-project-15.0.7/libcxx/test/support/ |
| H A D | parse_integer.h | 22 return std::stoi(str);
|
| /llvm-project-15.0.7/libcxx/test/std/thread/thread.condition/thread.condition.condvarany/ |
| H A D | wait_terminates.sh.cpp | 116 int id = std::stoi(argv[1]); in main()
|
| /llvm-project-15.0.7/openmp/libomptarget/plugins/cuda/src/ |
| H A D | rtl.cpp | 542 EnvTeamLimit = std::stoi(EnvStr); in DeviceRTLTy() 547 EnvTeamThreadLimit = std::stoi(EnvStr); in DeviceRTLTy() 552 EnvNumTeams = std::stoi(EnvStr); in DeviceRTLTy() 557 DynamicMemorySize = std::stoi(EnvStr); in DeviceRTLTy() 563 NumInitialStreams = std::stoi(EnvStr); in DeviceRTLTy() 941 DeviceEnv.DebugKind = std::stoi(EnvStr); in loadBinary()
|
| /llvm-project-15.0.7/libcxx/src/ |
| H A D | string.cpp | 225 int stoi(const string& str, size_t* idx, int base) { in stoi() function 258 int stoi(const wstring& str, size_t* idx, int base) { in stoi() function
|
| /llvm-project-15.0.7/lldb/source/Host/posix/ |
| H A D | ProcessLauncherPosixFork.cpp | 178 int fd = std::stoi(iter->path().substr(proc_fd_path.size() + 1)); in ChildFunc()
|
| /llvm-project-15.0.7/openmp/libomptarget/plugins/amdgpu/src/ |
| H A D | rtl.cpp | 964 Res = std::stoi(EnvStr); in readEnv() 1806 HostDeviceEnv.DebugKind = std::stoi(EnvStr); in DeviceEnvironment() 2182 TeamsPerCU = std::stoi(TeamsPerCUEnvStr); in __tgt_rtl_init_device()
|
| /llvm-project-15.0.7/polly/lib/Exchange/ |
| H A D | JSONExporter.cpp | 665 auto Size = std::stoi(SizesArray[i].getAsString()->str()); in importArrays()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/modernize/ |
| H A D | AvoidBindCheck.cpp | 288 B.PlaceHolderIndex = std::stoi(std::string(Matches[1])); in buildBindArguments()
|
| /llvm-project-15.0.7/libcxx/include/ |
| H A D | string | 463 int stoi (const string& str, size_t* idx = nullptr, int base = 10); 483 int stoi (const wstring& str, size_t* idx = nullptr, int base = 10); 4511 _LIBCPP_FUNC_VIS int stoi (const string& __str, size_t* __idx = nullptr, int __base… 4532 _LIBCPP_FUNC_VIS int stoi (const wstring& __str, size_t* __idx = nullptr, int __bas…
|
| /llvm-project-15.0.7/llvm/lib/Transforms/IPO/ |
| H A D | OpenMPOpt.cpp | 4696 std::stoi(K->getFnAttribute(Attr).getValueAsString().str()); in foldKernelFnAttribute()
|
| /llvm-project-15.0.7/lldb/source/Core/ |
| H A D | IOHandlerCursesGUI.cpp | 1344 int GetInteger() { return std::stoi(m_content); } in GetInteger()
|
| /llvm-project-15.0.7/clang/lib/Driver/ToolChains/ |
| H A D | Clang.cpp | 3455 if (std::stoi(Val.str()) <= 0) in RenderTrivialAutoVarInitOptions()
|