- fix: function declaration's parameters not correctly parsed, if it have a definition which have different parameter names

This commit is contained in:
royqh1979 2021-10-23 16:35:36 +08:00
parent 581e59d719
commit d7cbd855ff
2 changed files with 3 additions and 1 deletions

View File

@ -1,5 +1,7 @@
Version 0.7.2
- fix: rainbow parenthesis stop functioning when change editor's general options
- fix: issue count not correctly displayed when syntax check/compile finished
- fix: function declaration's parameters not correctly parsed, if it have a definition which have different parameter names
Version 0.7.1
- fix: can't add bookmark at a breakpoint line

View File

@ -2086,7 +2086,7 @@ void CppParser::handleMethod(const QString &sType, const QString &sName, const Q
mClassScope,
true,
isStatic);
scanMethodArgs(functionStatement, functionStatement->args);
scanMethodArgs(functionStatement, sArgs);
// add variable this to the class function
if (functionClass && functionClass->kind == StatementKind::skClass &&
!isStatic) {