look for function prototypes but don't save them in the symbol database yet
This commit is contained in:
parent
47a90851f1
commit
3babf6a9eb
|
@ -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())
|
||||
|
|
Loading…
Reference in New Issue