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

Method isInvalidConstFunctionType

lib/tokenize.cpp:647–654  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

645 }
646
647 bool isInvalidConstFunctionType(const std::map<std::string, TypedefSimplifier>& m) const {
648 if (!Token::Match(mTypedefToken, "typedef const %name% %name% ;"))
649 return false;
650 const auto it = m.find(mTypedefToken->strAt(2));
651 if (it == m.end())
652 return false;
653 return Token::Match(it->second.mNameToken, "%name% (");
654 }
655
656 bool fail() const {
657 return mFail;

Callers 1

simplifyTypedefMethod · 0.80

Calls 2

findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected