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

Method replaceVarDecl

lib/clangimport.cpp:270–276  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

268 }
269
270 void replaceVarDecl(const Variable *from, Variable *to) {
271 for (auto &it: mDeclMap) {
272 Decl &decl = it.second;
273 if (decl.var == from)
274 decl.var = to;
275 }
276 }
277
278 void ref(const std::string &addr, Token *tok) {
279 auto it = mDeclMap.find(addr);

Callers 1

createScopeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected