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

Function getConfigsElseIsFalse

lib/preprocessor.cpp:574–580  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

572}
573
574static bool getConfigsElseIsFalse(const std::vector<std::string> &configs_if, const std::string &userDefines)
575{
576 return std::any_of(configs_if.cbegin(), configs_if.cend(),
577 [&](const std::string &cfg) {
578 return hasDefine(userDefines, cfg);
579 });
580}
581
582static const simplecpp::Token *gotoEndIf(const simplecpp::Token *cmdtok)
583{

Callers 1

getConfigsFunction · 0.85

Calls 1

hasDefineFunction · 0.85

Tested by

no test coverage detected