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

Method loadAddons

cli/cmdlineparser.cpp:2210–2224  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2208}
2209
2210bool CmdLineParser::loadAddons(Settings& settings)
2211{
2212 bool result = true;
2213 for (const std::string &addon: settings.addons) {
2214 AddonInfo addonInfo;
2215 const std::string failedToGetAddonInfo = addonInfo.getAddonInfo(addon, settings.exename, settings.debuglookup || settings.debuglookupAddon);
2216 if (!failedToGetAddonInfo.empty()) {
2217 mLogger.printRaw(failedToGetAddonInfo); // TODO: do not print as raw
2218 result = false;
2219 continue;
2220 }
2221 settings.addonInfos.emplace_back(std::move(addonInfo));
2222 }
2223 return result;
2224}
2225
2226bool CmdLineParser::loadCppcheckCfg()
2227{

Callers

nothing calls this directly

Calls 3

getAddonInfoMethod · 0.80
emptyMethod · 0.45
printRawMethod · 0.45

Tested by

no test coverage detected