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

Function isVclTypeInit

lib/checkclass.cpp:95–106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

93}
94
95static bool isVclTypeInit(const Type *type)
96{
97 if (!type)
98 return false;
99 return std::any_of(type->derivedFrom.begin(), type->derivedFrom.end(), [&](const Type::BaseInfo& baseInfo) {
100 if (!baseInfo.type)
101 return true;
102 if (isVclTypeInit(baseInfo.type))
103 return true;
104 return false;
105 });
106}
107//---------------------------------------------------------------------------
108
109CheckClassImpl::CheckClassImpl(const Tokenizer *tokenizer, const Settings &settings, ErrorLogger &errorLogger)

Callers 1

constructorsMethod · 0.85

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected