diff --git a/RedPandaIDE/parser/cppparser.cpp b/RedPandaIDE/parser/cppparser.cpp index fb0ca9b8..9e6cf6f3 100644 --- a/RedPandaIDE/parser/cppparser.cpp +++ b/RedPandaIDE/parser/cppparser.cpp @@ -4004,7 +4004,8 @@ void CppParser::handleVar(const QString& typePrefix,bool isExtern,bool isStatic, && !(addedVar->properties & StatementProperty::spFunctionPointer) && AutoTypes.contains(addedVar->type)) { //handle e.g.: for(auto x:vec) - int endIndex = indexOfNextRightParenthesis(mIndex+1, maxIndex); + // for(auto x:vec ) is replaced by "for { auto x: vec ;" in handleForAndCatch(); + int endIndex = indexOfNextSemicolon(mIndex+1, maxIndex); QString expressionText; for (int i=mIndex+1;itext; @@ -4336,9 +4337,9 @@ void CppParser::internalParse(const QString &fileName) QStringList preprocessResult = mPreprocessor.result(); #ifdef QT_DEBUG -// stringsToFile(mPreprocessor.result(),QString("r:\\preprocess-%1.txt").arg(extractFileName(fileName))); -// mPreprocessor.dumpDefinesTo("r:\\defines.txt"); -// mPreprocessor.dumpIncludesListTo("r:\\includes.txt"); + // stringsToFile(mPreprocessor.result(),QString("z:\\preprocess-%1.txt").arg(extractFileName(fileName))); + // mPreprocessor.dumpDefinesTo("z:\\defines.txt"); + // mPreprocessor.dumpIncludesListTo("z:\\includes.txt"); #endif //qDebug()<<"preprocess"<= firstLineTop) { QRect rcInval = { @@ -960,7 +960,7 @@ void QSynEdit::invalidateLines(int firstLine, int lastLine) clientWidth(), lastLineBottom - firstLineTop }; invalidateRect(rcInval); - qDebug()<