Merge branch 'master' of github.com:royqh1979/RedPanda-CPP

This commit is contained in:
Roy Qu 2024-09-12 11:01:59 +08:00
commit 0b39a71d02
1 changed files with 3 additions and 0 deletions

View File

@ -4327,6 +4327,9 @@ void CppParser::handleVar(const QString& typePrefix,bool isExtern,bool isStatic,
}
mIndex=mTokenizer[mIndex]->matchIndex+1;
addedVar.reset();
//If there are multiple var define in the same line, the next token should be ','
if (mIndex>=maxIndex || mTokenizer[mIndex]->text != ",")
return;
break;
default:
if (isIdentChar(mTokenizer[mIndex]->text[0])) {