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

Function variable

lib/token.h:1232–1238  ·  view source on GitHub ↗

* Associate this token with given variable * @param v Variable to be associated */

Source from the content-addressed store, hash-verified

1230 * @param v Variable to be associated
1231 */
1232 void variable(const Variable *v) {
1233 mImpl->mVariable = v;
1234 if (v || mImpl->mVarId)
1235 tokType(eVariable);
1236 else if (mTokType == eVariable)
1237 tokType(eName);
1238 }
1239
1240 /**
1241 * @return a pointer to the variable associated with this token.

Callers 1

checkMethod · 0.85

Calls 1

tokTypeFunction · 0.85

Tested by

no test coverage detected