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

Function skipPointersAndQualifiers

lib/symboldatabase.cpp:5324–5333  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5322}
5323
5324static const Token* skipPointersAndQualifiers(const Token* tok)
5325{
5326 tok = skipPointers(tok);
5327 while (Token::Match(tok, "const|static|volatile")) {
5328 tok = tok->next();
5329 tok = skipPointers(tok);
5330 }
5331
5332 return tok;
5333}
5334
5335bool Scope::isVariableDeclaration(const Token* const tok, const Token*& vartok, const Token*& typetok) const
5336{

Callers 1

isVariableDeclarationMethod · 0.85

Calls 2

skipPointersFunction · 0.85
nextMethod · 0.80

Tested by

no test coverage detected