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

Method setLocationMacros

lib/cppcheck.cpp:108–115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

106 }
107
108 void setLocationMacros(const Token* startTok, const std::vector<std::string>& files)
109 {
110 mLocationMacros.clear();
111 for (const Token* tok = startTok; tok; tok = tok->next()) {
112 if (!tok->getMacroName().empty())
113 mLocationMacros[Location(files[tok->fileIndex()], tok->linenr())].emplace(tok->getMacroName());
114 }
115 }
116
117 void resetExitCode()
118 {

Callers 1

checkInternalMethod · 0.80

Calls 5

nextMethod · 0.80
fileIndexMethod · 0.80
LocationClass · 0.70
clearMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected