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

Method toString

lib/checkbufferoverrun.cpp:913–921  ·  view source on GitHub ↗

Convert data into xml string */

Source from the content-addressed store, hash-verified

911
912 /** Convert data into xml string */
913 std::string toString() const override
914 {
915 std::string xml;
916 if (!unsafeArrayIndex.empty())
917 xml = " <array-index>\n" + CTU::toString(unsafeArrayIndex) + " </array-index>\n";
918 if (!unsafePointerArith.empty())
919 xml += " <pointer-arith>\n" + CTU::toString(unsafePointerArith) + " </pointer-arith>\n";
920 return xml;
921 }
922 };
923}
924

Callers

nothing calls this directly

Calls 2

toStringFunction · 0.70
emptyMethod · 0.45

Tested by

no test coverage detected