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

Function hasEmptyCaptureList

lib/symboldatabase.cpp:5811–5818  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5809}
5810
5811static bool hasEmptyCaptureList(const Token* tok) {
5812 if (!Token::simpleMatch(tok, "{"))
5813 return false;
5814 const Token* listTok = tok->astParent();
5815 if (Token::simpleMatch(listTok, "("))
5816 listTok = listTok->astParent();
5817 return Token::simpleMatch(listTok, "[ ]");
5818}
5819
5820bool Scope::hasInlineOrLambdaFunction(const Token** tokStart, bool onlyInline) const
5821{

Callers 1

Calls 2

astParentMethod · 0.80
simpleMatchFunction · 0.70

Tested by

no test coverage detected