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

Function evaluateTemplateArgs

lib/valueflow.cpp:550–560  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

548}
549
550static std::vector<std::vector<const Token*>> evaluateTemplateArgs(const Token* tok)
551{
552 std::vector<std::vector<const Token*>> result;
553 while (tok) {
554 const Token* next = tok->nextTemplateArgument();
555 const Token* end = next ? next->previous() : findTypeEnd(tok);
556 result.push_back(evaluateType(tok, end));
557 tok = next;
558 }
559 return result;
560}
561
562static void valueFlowTypeTraits(TokenList& tokenlist, const Settings& settings)
563{

Callers 1

valueFlowTypeTraitsFunction · 0.85

Calls 4

evaluateTypeFunction · 0.85
nextTemplateArgumentMethod · 0.80
findTypeEndFunction · 0.70
push_backMethod · 0.45

Tested by

no test coverage detected