fix #331 Don't show function prototype tip for function name that contains namespace alias
This commit is contained in:
parent
e2aacd2361
commit
3ae25776b6
|
@ -153,7 +153,14 @@ QList<PStatement> CppParser::getListOfFunctions(const QString &fileName, const Q
|
|||
if (mParsing)
|
||||
return result;
|
||||
|
||||
PStatement statement = doFindStatementOf(fileName,phrase, line);
|
||||
QStringList expression = splitExpression(phrase);
|
||||
PStatement scopeStatement = doFindScopeStatement(fileName,line);
|
||||
int pos = 0;
|
||||
PEvalStatement evalStatement = doEvalExpression(fileName, expression, pos, scopeStatement, PEvalStatement(), false, true);
|
||||
if (!evalStatement)
|
||||
return result;
|
||||
PStatement statement = evalStatement->baseStatement;
|
||||
|
||||
if (!statement)
|
||||
return result;
|
||||
if (statement->kind == StatementKind::Preprocessor) {
|
||||
|
|
Loading…
Reference in New Issue