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

Method add

lib/mathlib.cpp:254–262  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

252}
253
254MathLib::value MathLib::value::add(int v) const
255{
256 MathLib::value temp(*this);
257 if (temp.isInt())
258 temp.mIntValue += v;
259 else
260 temp.mDoubleValue += v;
261 return temp;
262}
263
264MathLib::value MathLib::value::shiftLeft(const MathLib::value &v) const
265{

Callers 10

man_searchFunction · 0.45
MT-Unsafe.pyFile · 0.45
misra_2_7Method · 0.45
find_recursive_callMethod · 0.45
reportErrorMethod · 0.45

Calls 5

intsuffixFunction · 0.85
valueClass · 0.70
toStringFunction · 0.70
isIntMethod · 0.45
strMethod · 0.45

Tested by 3