MCPcopy Create free account
hub / github.com/cppcheck-opensource/cppcheck / toString

Function toString

externals/simplecpp/simplecpp.cpp:103–109  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

101static const simplecpp::TokenString HAS_INCLUDE("__has_include");
102
103template<class T> static std::string toString(T t)
104{
105 // NOLINTNEXTLINE(misc-const-correctness) - false positive
106 std::ostringstream ostr;
107 ostr << t;
108 return ostr.str();
109}
110
111#ifdef SIMPLECPP_DEBUG_MACRO_EXPANSION
112static std::string locstring(const simplecpp::Location &loc)

Callers 10

constFoldMulDivRemMethod · 0.70
constFoldAddSubMethod · 0.70
constFoldShiftMethod · 0.70
constFoldComparisonMethod · 0.70
constFoldBitwiseMethod · 0.70
constFoldLogicalOpMethod · 0.70
expandMethod · 0.70
simplifySizeofFunction · 0.70
simplifyNumbersFunction · 0.70

Calls 1

strMethod · 0.45

Tested by

no test coverage detected