- fix: function pointers not correctly handle in code parser;
- fix: var assignment not correctly handled in code parser; - fix: function args not correctly handled in code parser;
This commit is contained in:
parent
bcc1b8dc09
commit
a1c80cc562
|
@ -1281,8 +1281,8 @@ PStatement CppParser::addStatement(const PStatement& parent,
|
||||||
PStatement CppParser::addStatement(const PStatement &parent, const QString &fileName, const QString &aType, const QString &command, int argStart, int argEnd, const QString &value, int line, StatementKind kind, const StatementScope &scope, const StatementClassScope &classScope, bool isDefinition, bool isStatic)
|
PStatement CppParser::addStatement(const PStatement &parent, const QString &fileName, const QString &aType, const QString &command, int argStart, int argEnd, const QString &value, int line, StatementKind kind, const StatementScope &scope, const StatementClassScope &classScope, bool isDefinition, bool isStatic)
|
||||||
{
|
{
|
||||||
Q_ASSERT(mTokenizer[argStart]->text=='(');
|
Q_ASSERT(mTokenizer[argStart]->text=='(');
|
||||||
QString args("(");
|
QString args;
|
||||||
QString noNameArgs("(");
|
QString noNameArgs;
|
||||||
|
|
||||||
int start=argStart+1;
|
int start=argStart+1;
|
||||||
bool typeGetted = false;
|
bool typeGetted = false;
|
||||||
|
@ -1336,8 +1336,8 @@ PStatement CppParser::addStatement(const PStatement &parent, const QString &file
|
||||||
args+=mTokenizer[i]->text;
|
args+=mTokenizer[i]->text;
|
||||||
}
|
}
|
||||||
|
|
||||||
args.push_back(")");
|
args="("+args.trimmed()+")";
|
||||||
noNameArgs.push_back(")");
|
noNameArgs="("+noNameArgs.trimmed()+")";
|
||||||
return addStatement(
|
return addStatement(
|
||||||
parent,
|
parent,
|
||||||
fileName,
|
fileName,
|
||||||
|
|
Loading…
Reference in New Issue