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

Function sameTokens

lib/tokenize.cpp:11075–11085  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11073}
11074
11075static bool sameTokens(const Token *first, const Token *last, const Token *other)
11076{
11077 while (other && first->str() == other->str()) {
11078 if (first == last)
11079 return true;
11080 first = first->next();
11081 other = other->next();
11082 }
11083
11084 return false;
11085}
11086
11087static bool alreadyHasNamespace(const Token *first, const Token *last, const Token *end)
11088{

Callers 1

Calls 2

nextMethod · 0.80
strMethod · 0.45

Tested by

no test coverage detected