diff --git a/lib/symboldatabase.cpp b/lib/symboldatabase.cpp index 33ab2af97..a7edd4e41 100644 --- a/lib/symboldatabase.cpp +++ b/lib/symboldatabase.cpp @@ -438,6 +438,23 @@ SymbolDatabase::SymbolDatabase(const Tokenizer *tokenizer, const Settings *setti tok = tok1; } + + // function prototype + else if (Token::simpleMatch(argStart->link(), ") ;")) + { + /** @todo save function prototypes in database someday */ + tok = argStart->link()->next(); + continue; + } + + // function returning function pointer prototype + else if (Token::simpleMatch(argStart->link(), ") ) (") && + Token::simpleMatch(argStart->link()->tokAt(2)->link(), ") ;")) + { + /** @todo save function prototypes in database someday */ + tok = argStart->link()->tokAt(2)->link()->next(); + continue; + } } } else if (scope->type == Scope::eFunction || scope->isLocal())