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

Function areAllParamsTypes

lib/templatesimplifier.cpp:768–776  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

766}
767
768static bool areAllParamsTypes(const std::vector<const Token *> &params)
769{
770 if (params.empty())
771 return false;
772
773 return std::all_of(params.cbegin(), params.cend(), [](const Token* param) {
774 return Token::Match(param->previous(), "typename|class %name% ,|>");
775 });
776}
777
778static bool isTemplateInstantion(const Token* tok)
779{

Callers 1

Calls 1

emptyMethod · 0.45

Tested by

no test coverage detected