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

Function stripCV

lib/valueflow.cpp:539–548  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

537}
538
539static void stripCV(std::vector<const Token*>& toks)
540{
541 auto it =
542 std::find_if(toks.begin(), toks.end(), [&](const Token* tok) {
543 return !Token::Match(tok, "const|volatile");
544 });
545 if (it == toks.begin())
546 return;
547 toks.erase(toks.begin(), it);
548}
549
550static std::vector<std::vector<const Token*>> evaluateTemplateArgs(const Token* tok)
551{

Callers 1

valueFlowTypeTraitsFunction · 0.85

Calls 3

beginMethod · 0.45
endMethod · 0.45
eraseMethod · 0.45

Tested by

no test coverage detected