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

Function isConstMethod

lib/templatesimplifier.cpp:759–766  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

757}
758
759static bool isConstMethod(const Token* nameToken)
760{
761 const Token* functionToken = getFunctionToken(nameToken);
762 if (!functionToken)
763 return false;
764 const Token* endToken = functionToken->link();
765 return Token::simpleMatch(endToken, ") const");
766}
767
768static bool areAllParamsTypes(const std::vector<const Token *> &params)
769{

Callers 1

simplifyTemplatesMethod · 0.85

Calls 2

getFunctionTokenFunction · 0.85
simpleMatchFunction · 0.70

Tested by

no test coverage detected