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

Function setDifference

lib/programmemory.cpp:1277–1282  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1275}
1276
1277static std::vector<const Token*> setDifference(const std::vector<const Token*>& v1, const std::vector<const Token*>& v2)
1278{
1279 std::vector<const Token*> result;
1280 std::set_difference(v1.begin(), v1.end(), v2.begin(), v2.end(), std::back_inserter(result), &TokenExprIdCompare);
1281 return result;
1282}
1283
1284static bool evalSameCondition(const ProgramMemory& state,
1285 const Token* storedValue,

Callers 1

executeMultiConditionMethod · 0.85

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected