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

Function getVariableChangedStart

lib/checkother.cpp:1816–1824  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1814}
1815
1816static const Token* getVariableChangedStart(const Variable* p)
1817{
1818 if (p->isArgument())
1819 return p->scope()->bodyStart;
1820 const Token* start = p->nameToken()->next();
1821 if (start->isSplittedVarDeclEq())
1822 start = start->tokAt(3);
1823 return start;
1824}
1825
1826static bool isConstPointerVariable(const Variable* p, const Settings& settings)
1827{

Callers 1

isConstPointerVariableFunction · 0.85

Calls 4

scopeMethod · 0.80
nextMethod · 0.80
nameTokenMethod · 0.45
tokAtMethod · 0.45

Tested by

no test coverage detected