Home
last modified time | relevance | path

Searched refs:to_string (Results 1 – 25 of 330) sorted by relevance

12345678910>>...14

/llvm-project-15.0.7/libcxx/test/std/numerics/rand/rand.eng/rand.eng.lcong/
H A Dctor_result_type.pass.cpp32 std::string to_string(T const& e) { in to_string() function
46 assert(to_string(e) == "5"); in test1()
51 assert(to_string(e) == "5"); in test1()
56 assert(to_string(e) == "1"); in test1()
68 assert(to_string(e) == "0"); in test2()
73 assert(to_string(e) == "0"); in test2()
78 assert(to_string(e) == "0"); in test2()
90 assert(to_string(e) == "3"); in test3()
95 assert(to_string(e) == "5"); in test3()
100 assert(to_string(e) == "3"); in test3()
[all …]
/llvm-project-15.0.7/libcxx/test/std/utilities/template.bitset/bitset.members/
H A Dto_string.pass.cpp52 …std::wstring s = v.template to_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> … in test_to_string()
56 std::wstring s = v.template to_string<wchar_t, std::char_traits<wchar_t> >(); in test_to_string()
61 std::string s = v.template to_string<char>(); in test_to_string()
65 std::string s = v.to_string(); in test_to_string()
74 std::wstring s = v.template to_string<wchar_t, std::char_traits<wchar_t> >('0'); in test_to_string()
79 std::string s = v.template to_string<char>('0'); in test_to_string()
83 std::string s = v.to_string('0'); in test_to_string()
92 std::wstring s = v.template to_string<wchar_t, std::char_traits<wchar_t> >('0', '1'); in test_to_string()
97 std::string s = v.template to_string<char>('0', '1'); in test_to_string()
101 std::string s = v.to_string('0', '1'); in test_to_string()
[all …]
/llvm-project-15.0.7/libcxx/test/std/strings/string.conversions/
H A Dto_string.pass.cpp33 std::string s = std::to_string(T(0)); in test_signed()
39 std::string s = std::to_string(T(12345)); in test_signed()
45 std::string s = std::to_string(T(-12345)); in test_signed()
51 std::string s = std::to_string(std::numeric_limits<T>::max()); in test_signed()
57 std::string s = std::to_string(std::numeric_limits<T>::min()); in test_signed()
68 std::string s = std::to_string(T(0)); in test_unsigned()
74 std::string s = std::to_string(T(12345)); in test_unsigned()
80 std::string s = std::to_string(std::numeric_limits<T>::max()); in test_unsigned()
92 std::string s = std::to_string(T(0)); in test_float()
98 std::string s = std::to_string(T(12345)); in test_float()
[all …]
/llvm-project-15.0.7/flang/lib/Lower/
H A DMangler.cpp204 return "i" + std::to_string(kind); in typeToString()
206 return "r" + std::to_string(kind); in typeToString()
208 return "z" + std::to_string(kind); in typeToString()
210 return "l" + std::to_string(kind); in typeToString()
212 return "c" + std::to_string(kind); in typeToString()
227 typeId.append(std::to_string(extent)).append("x"); in mangleArrayLiteral()
255 return "i" + std::to_string(i.getWidth()); in typeToString()
258 return "z" + std::to_string(cplx.getFKind()); in typeToString()
261 return "r" + std::to_string(real.getFKind()); in typeToString()
264 return "f" + std::to_string(f.getWidth()); in typeToString()
[all …]
/llvm-project-15.0.7/lldb/unittests/SymbolFile/DWARF/
H A DDWARFASTParserClangTests.cpp342 HasValue(std::to_string(int_min))); in TEST_F()
344 HasValue(std::to_string(int_min + 1))); in TEST_F()
346 HasValue(std::to_string(int_min + 2))); in TEST_F()
359 HasValue(std::to_string(int_max - 2))); in TEST_F()
361 HasValue(std::to_string(int_max - 1))); in TEST_F()
363 HasValue(std::to_string(int_max))); in TEST_F()
369 HasValue(std::to_string(int_max / 2))); in TEST_F()
371 HasValue(std::to_string(int_min / 2))); in TEST_F()
387 HasValue(std::to_string(uint_max / 2))); in TEST_F()
391 HasValue(std::to_string(uint_max - 2))); in TEST_F()
[all …]
/llvm-project-15.0.7/flang/unittests/Runtime/
H A DFormat.cpp63 results.push_back("T"s + std::to_string(n)); in HandleAbsolutePosition()
68 results.push_back("TL"s + std::to_string(-n)); in HandleRelativePosition()
70 results.push_back(std::to_string(n) + 'X'); in HandleRelativePosition()
77 str = std::to_string(edit.repeat) + '*' + str; in Report()
83 str += std::to_string(*edit.width); in Report()
86 str += "."s + std::to_string(*edit.digits); in Report()
89 str += "E"s + std::to_string(*edit.expoDigits); in Report()
/llvm-project-15.0.7/mlir/utils/gdb-scripts/
H A Dprettyprinters.py19 def to_string(self): member in StoragePrinter
32 def to_string(self): member in TupleTypeStoragePrinter
45 def to_string(self): member in FusedLocationStoragePrinter
95 def to_string(self): member in get_type_id_printer.TypeIdPrinter
117 def to_string(self): member in get_attr_or_type_printer.AttrOrTypePrinter
145 def to_string(self): member in ImplPrinter
/llvm-project-15.0.7/lldb/unittests/Utility/
H A DEventTest.cpp15 static std::string to_string(const EventDataBytes &E) { in to_string() function
22 EXPECT_EQ(R"("foo")", to_string(EventDataBytes("foo"))); in TEST()
23 EXPECT_EQ("01 02 03", to_string(EventDataBytes("\x01\x02\x03"))); in TEST()
/llvm-project-15.0.7/lld/MachO/
H A DConcatOutputSection.cpp186 log("thunks = " + std::to_string(thunkMap.size()) + in estimateStubsInRangeVA()
187 ", potential = " + std::to_string(maxPotentialThunks) + in estimateStubsInRangeVA()
188 ", stubs = " + std::to_string(in.stubs->getSize()) + ", isecVA = " + in estimateStubsInRangeVA()
328 std::to_string(thunkInfo.sequence++)); in finalize()
352 ": funcs = " + std::to_string(thunkMap.size()) + in finalize()
353 ", relocs = " + std::to_string(relocCount) + in finalize()
354 ", all calls = " + std::to_string(callSiteCount) + in finalize()
355 ", thunk calls = " + std::to_string(thunkCallCount) + in finalize()
356 ", thunks = " + std::to_string(thunkCount)); in finalize()
/llvm-project-15.0.7/llvm/utils/gdb-scripts/
H A Dprettyprinters.py25 def to_string(self): member in SmallStringPrinter
39 def to_string(self): member in StringRefPrinter
64 def to_string(self): member in SmallVectorPrinter
101 def to_string(self): member in ArrayRefPrinter
124 def to_string(self): member in ExpectedPrinter
142 def to_string(self): member in OptionalPrinter
204 def to_string(self): member in DenseMapPrinter
244 def to_string(self): member in StringMapPrinter
357 def to_string(self): member in TwinePrinter
389 def to_string(self): member in PointerIntPairPrinter
[all …]
/llvm-project-15.0.7/llvm/lib/DebugInfo/DWARF/
H A DDWARFTypePrinter.cpp291 OS << std::to_string(*V->getAsSignedConstant()); in appendTemplateParameters()
308 OS << std::to_string(*V->getAsSignedConstant()); in appendTemplateParameters()
311 OS << std::to_string(*V->getAsSignedConstant()); in appendTemplateParameters()
313 OS << std::to_string(*V->getAsSignedConstant()); in appendTemplateParameters()
315 OS << std::to_string(*V->getAsSignedConstant()); in appendTemplateParameters()
318 OS << std::to_string(*V->getAsSignedConstant()); in appendTemplateParameters()
321 OS << std::to_string(*V->getAsUnsignedConstant()); in appendTemplateParameters()
324 OS << std::to_string(*V->getAsUnsignedConstant()); in appendTemplateParameters()
327 OS << std::to_string(*V->getAsUnsignedConstant()); in appendTemplateParameters()
381 OS << to_string(llvm::format("'\\x%02x'", Val)); in appendTemplateParameters()
[all …]
/llvm-project-15.0.7/libcxx/test/std/numerics/rand/rand.eng/rand.eng.mers/
H A Dctor_result_type.pass.cpp35 to_string(T const &e) in to_string() function
142 assert(to_string(e1) == a); in test1()
253 assert(to_string(e1) == a); in test2()
/llvm-project-15.0.7/libcxx/test/std/numerics/rand/rand.eng/rand.eng.sub/
H A Dctor_result_type.pass.cpp33 to_string(T const &e) in to_string() function
48 assert(to_string(e1) == a); in test1()
59 assert(to_string(e1) == a); in test2()
/llvm-project-15.0.7/mlir/lib/Dialect/Linalg/Transforms/
H A DCodegenStrategy.cpp35 std::string currentStr = std::to_string(stepCount); in configurePassPipeline()
37 std::string nextStr = std::to_string(stepCount + 1); in configurePassPipeline()
39 auto filter = (currentState.str() == std::to_string(0)) in configurePassPipeline()
/llvm-project-15.0.7/libcxx/utils/gdb/libcxx/
H A Dprinters.py154 def to_string(self): member in StdTuplePrinter
198 def to_string(self): member in StdStringPrinter
245 def to_string(self): member in StdUniquePtrPrinter
268 def to_string(self): member in StdSharedPointerPrinter
378 def to_string(self): member in StdVectorPrinter
403 def to_string(self): member in StdBitsetPrinter
458 def to_string(self): member in StdDequePrinter
487 def to_string(self): member in StdListPrinter
516 def to_string(self): member in StdQueueOrStackPrinter
534 def to_string(self): member in StdPriorityQueuePrinter
[all …]
/llvm-project-15.0.7/clang-tools-extra/docs/clang-tidy/checks/boost/
H A Duse-to-string.rst8 ``std::to_string`` and ``std::to_wstring``.
10 It doesn't replace conversion from floating points despite the ``to_string``
20 auto str = std::to_string(42);
/llvm-project-15.0.7/libcxx/src/
H A Dstring.cpp366 string to_string (int val) { return i_to_string< string>(val); } in to_string() function
367 string to_string (long val) { return i_to_string< string>(val); } in to_string() function
368 string to_string (long long val) { return i_to_string< string>(val); } in to_string() function
369 string to_string (unsigned val) { return i_to_string< string>(val); } in to_string() function
370 string to_string (unsigned long val) { return i_to_string< string>(val); } in to_string() function
371 string to_string (unsigned long long val) { return i_to_string< string>(val); } in to_string() function
382 string to_string (float val) { return as_string(snprintf, initial_string< string>()(),… in to_string() function
383 string to_string (double val) { return as_string(snprintf, initial_string< string>()(),… in to_string() function
384 string to_string (long double val) { return as_string(snprintf, initial_string< string>()(),… in to_string() function
/llvm-project-15.0.7/bolt/lib/Passes/
H A DRetpolineInsertion.cpp93 Ctx.createNamedTempSymbol(Twine(RetpolineTag + "_BB" + to_string(I))); in createNewRetpoline()
179 return "__retpoline_r" + to_string(BrInfo.BranchReg) + "_"; in createRetpolineFunctionTag()
197 ? "r" + to_string(MemRef.BaseRegNum) in createRetpolineFunctionTag()
201 MemRef.DispExpr ? "+" + DispExprStr : "+" + to_string(MemRef.DispValue); in createRetpolineFunctionTag()
204 ? "+" + to_string(MemRef.ScaleValue) + "*" + in createRetpolineFunctionTag()
205 to_string(MemRef.IndexRegNum) in createRetpolineFunctionTag()
209 ? "_seg_" + to_string(MemRef.SegRegNum) in createRetpolineFunctionTag()
/llvm-project-15.0.7/llvm/unittests/Object/
H A DObjectFileTest.cpp17 EXPECT_EQ("SectionedAddress{0x00000047}", to_string(SectionedAddress{0x47})); in TEST()
19 to_string(SectionedAddress{0x47, 42})); in TEST()
/llvm-project-15.0.7/flang/lib/Optimizer/Support/
H A DKindMapping.cpp317 result += k.first + std::to_string(k.second) + ":" + std::to_string(v); in mapToString()
324 result.append(k.first + std::to_string(k.second) + ":"); in mapToString()
381 return std::string("a") + std::to_string(defaultMap.find('a')->second) + in defaultsToString()
382 std::string("c") + std::to_string(defaultMap.find('c')->second) + in defaultsToString()
383 std::string("d") + std::to_string(defaultMap.find('d')->second) + in defaultsToString()
384 std::string("i") + std::to_string(defaultMap.find('i')->second) + in defaultsToString()
385 std::string("l") + std::to_string(defaultMap.find('l')->second) + in defaultsToString()
386 std::string("r") + std::to_string(defaultMap.find('r')->second); in defaultsToString()
/llvm-project-15.0.7/llvm/unittests/ADT/
H A DStringExtrasTest.cpp206 EXPECT_EQ(std::to_string(MaxUint64), utostr(MaxUint64)); in TEST()
207 EXPECT_EQ(std::to_string(MaxUint64), utostr(MaxUint64, /*isNeg=*/false)); in TEST()
211 EXPECT_EQ("-" + std::to_string(MaxInt64), utostr(MaxInt64, /*isNeg=*/true)); in TEST()
213 EXPECT_EQ("-" + std::to_string(MinusMinInt64), in TEST()
215 EXPECT_EQ("-" + std::to_string(MaxUint64), utostr(MaxUint64, /*isNeg=*/true)); in TEST()
222 EXPECT_EQ(std::to_string(MinInt64), itostr(MinInt64)); in TEST()
223 EXPECT_EQ(std::to_string(MaxInt64), itostr(MaxInt64)); in TEST()
/llvm-project-15.0.7/polly/lib/External/isl/
H A Dlibisl-gdb.py11 def to_string (self): member in IslObjectPrinter
36 def to_string (self): member in IslIntPrinter
70 print(printer.to_string())
/llvm-project-15.0.7/llvm/unittests/DebugInfo/DWARF/
H A DDWARFLocationExpressionTest.cpp26 EXPECT_EQ("None: 1, 2", to_string(DWARFLocationExpression{None, {1, 2}})); in TEST()
29 to_string(DWARFLocationExpression{DWARFAddressRange{0x42, 0x47}, {1}})); in TEST()
/llvm-project-15.0.7/llvm/lib/CodeGen/
H A DMIRVRegNamerUtils.cpp45 return Reg.getName() + "__" + std::to_string(Counter); in getVRegRenameMap()
65 return std::to_string(Hash).substr(0, 5); in getInstructionOpcodeHash()
135 return std::to_string(HashMI).substr(0, 5); in getInstructionOpcodeHash()
146 std::string Prefix = "bb" + std::to_string(CurrentBBNumber) + "_"; in renameInstsInMBB()
/llvm-project-15.0.7/llvm/lib/Support/
H A DSmallVector.cpp64 std::to_string(MinSize) + in report_size_overflow()
66 std::to_string(MaxSize) + ")"; in report_size_overflow()
80 std::to_string(MaxSize); in report_at_maximum_capacity()

12345678910>>...14