From ce97272fc05f0de96039186ce1796e9d4ae62ac4 Mon Sep 17 00:00:00 2001 From: Roy Qu Date: Sat, 4 May 2024 12:33:35 +0800 Subject: [PATCH] fix: Crash when has source line like "std::cout << (3+4*4>5*(4+3)-1 && (4-3>5)) < code format -> Program, Choose astyle path button doesn't work. - fix: project not correctly reparsed after rename unit. - enhancement: support C++ 17 structured binding in stl map containers foreach loop. + - fix: Crash when has source line like "std::cout << (3+4*4>5*(4+3)-1 && (4-3>5)) <text; mIndex++; break; + case ',': + tempType=""; + mIndex++; + break; case '(': if (mTokenizer[mIndex]->matchIndex+1matchIndex+1]->text=='(') { @@ -4361,8 +4365,8 @@ void CppParser::handleVar(const QString& typePrefix,bool isExtern,bool isStatic, } mIndex++; } else { - tempType=""; - mIndex++; + mIndex = indexOfNextPeriodOrSemicolon(mIndex, maxIndex); + return; } } }