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

Function typesMatch

lib/checkio.cpp:551–554  ·  view source on GitHub ↗

Utility function returning whether iToTest equals iTypename or iOptionalPrefix+iTypename

Source from the content-addressed store, hash-verified

549
550// Utility function returning whether iToTest equals iTypename or iOptionalPrefix+iTypename
551static inline bool typesMatch(const std::string& iToTest, const std::string& iTypename, const std::string& iOptionalPrefix = "std::")
552{
553 return (iToTest == iTypename) || (iToTest == iOptionalPrefix + iTypename);
554}
555
556void CheckIOImpl::checkWrongPrintfScanfArguments()
557{

Callers 1

checkFormatStringMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected