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

Function succeeds

lib/astutils.cpp:1042–1051  ·  view source on GitHub ↗

If tok1 comes after tok2

Source from the content-addressed store, hash-verified

1040
1041/// If tok1 comes after tok2
1042bool succeeds(const Token* tok1, const Token* tok2)
1043{
1044 if (tok1 == tok2)
1045 return false;
1046 if (!tok1)
1047 return false;
1048 if (!tok2)
1049 return true;
1050 return tok1->index() > tok2->index();
1051}
1052
1053bool isAliasOf(const Token *tok, nonneg int varid, bool* inconclusive)
1054{

Callers 7

getEndOfExprScopeMethod · 0.85
isConstStatementFunction · 0.85
traverseMethod · 0.85
checkScopeMethod · 0.85
retMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected