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

Function matchCurrentType

lib/tokenize.cpp:1036–1043  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1034}
1035
1036static bool matchCurrentType(const Token* tok, std::map<int, std::string>& types)
1037{
1038 if (tok->isC())
1039 return false;
1040 return std::any_of(types.begin(), types.end(), [&](const std::pair<int, std::string>& element) {
1041 return tok->str() == element.second;
1042 });
1043}
1044
1045void Tokenizer::simplifyTypedef()
1046{

Callers 1

simplifyTypedefMethod · 0.85

Calls 4

isCMethod · 0.80
beginMethod · 0.45
endMethod · 0.45
strMethod · 0.45

Tested by

no test coverage detected