diff --git a/NEWS.md b/NEWS.md index f0b59c84..5de33bcf 100644 --- a/NEWS.md +++ b/NEWS.md @@ -65,6 +65,9 @@ Red Panda C++ Version 2.27 - fix: No icons for inherited class private members. - fix: Ctrl+Return insert linebreak shouldn't scroll unnecessarilly. - enhancement: Move caret to line begin would scroll to the begin if possible. + - fix: Filename in tables in the debug panel are not correctly eroded. + - enhancement: Tooltip info for the stacktrace table in the debug panel. + - fix: '*=' is treadted as '*' when parsing. Red Panda C++ Version 2.26 - enhancement: Code suggestion for embedded std::vectors. diff --git a/RedPandaIDE/parser/cppparser.cpp b/RedPandaIDE/parser/cppparser.cpp index d3a21616..ff21b334 100644 --- a/RedPandaIDE/parser/cppparser.cpp +++ b/RedPandaIDE/parser/cppparser.cpp @@ -2249,8 +2249,8 @@ void CppParser::checkAndHandleMethodOrVar(KeywordType keywordType) // function call, skip it mIndex=moveToEndOfStatement(mIndex,true); } - } else if (mTokenizer[mIndex]->text.startsWith('*') - || mTokenizer[mIndex]->text.startsWith('&') + } else if (mTokenizer[mIndex]->text == "*" + || mTokenizer[mIndex]->text == "&" || mTokenizer[mIndex]->text=="::" || tokenIsIdentifier(mTokenizer[mIndex]->text) ) { @@ -3930,8 +3930,8 @@ void CppParser::handleStructs(bool isTypedef) int pos = mTokenizer[i]->text.indexOf('['); command += mTokenizer[i]->text.mid(0,pos) + ' '; args = mTokenizer[i]->text.mid(pos); - } else if (mTokenizer[i]->text.front() == '*' - || mTokenizer[i]->text.front() == '&') { // do not add spaces after pointer operator + } else if (mTokenizer[i]->text == "*" + || mTokenizer[i]->text == "&") { // do not add spaces after pointer operator command += mTokenizer[i]->text; } else { command += mTokenizer[i]->text + ' '; @@ -4575,8 +4575,8 @@ void CppParser::internalParse(const QString &fileName) handleInheritances(); // qDebug()<<"parse"<