- fix: Crash if there's no period/semicolon after variable definition with intializer.
This commit is contained in:
parent
c796208840
commit
1a95f59ddd
|
@ -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])) {
|
||||
|
|
Loading…
Reference in New Issue