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

Method varDecl

lib/clangimport.cpp:260–268  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

258 }
259
260 void varDecl(const std::string &addr, Token *def, Variable *var) {
261 Decl decl(def, var);
262 mDeclMap.emplace(addr, decl);
263 def->varId(++mVarId);
264 def->variable(var);
265 if (def->valueType())
266 var->setValueType(*def->valueType());
267 notFound(addr);
268 }
269
270 void replaceVarDecl(const Variable *from, Variable *to) {
271 for (auto &it: mDeclMap) {

Callers 2

createTokensVarDeclMethod · 0.80

Calls 2

variableMethod · 0.80
setValueTypeMethod · 0.45

Tested by

no test coverage detected