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

Function isConvertedToView

lib/valueflow.cpp:2859–2867  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2857}
2858
2859static bool isConvertedToView(const Token* tok, const Settings& settings)
2860{
2861 std::vector<ValueType> vtParents = getParentValueTypes(tok, settings);
2862 return std::any_of(vtParents.cbegin(), vtParents.cend(), [&](const ValueType& vt) {
2863 if (!vt.container)
2864 return false;
2865 return vt.container->view;
2866 });
2867}
2868
2869static bool isContainerOfPointers(const Token* tok, const Settings& settings)
2870{

Callers 1

valueFlowLifetimeFunction · 0.85

Calls 1

getParentValueTypesFunction · 0.85

Tested by

no test coverage detected