- fix: keyword 'final' in inhertid class definition is not correctly processed

This commit is contained in:
Roy Qu 2022-05-06 19:20:26 +08:00
parent 7e6d900049
commit e3d7af019d
5 changed files with 475 additions and 458 deletions

View File

@ -7,6 +7,7 @@ Red Panda C++ Version 1.0.7
- fix: index of the longest line not correctly updated when inputting with auto completion open - fix: index of the longest line not correctly updated when inputting with auto completion open
- enhancement: support UTF-8 BOM files - enhancement: support UTF-8 BOM files
- enhancement: add new tool button for "compiler options" - enhancement: add new tool button for "compiler options"
- fix: keyword 'final' in inhertid class definition is not correctly processed
Red Panda C++ Version 1.0.6 Red Panda C++ Version 1.0.6
- fix: gcc compiler set name is not correct in Linux - fix: gcc compiler set name is not correct in Linux

View File

@ -4444,6 +4444,10 @@
<source>Encode in UTF-8 BOM</source> <source>Encode in UTF-8 BOM</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message>
<source>Compiler Options...</source>
<translation type="unfinished"></translation>
</message>
</context> </context>
<context> <context>
<name>NewClassDialog</name> <name>NewClassDialog</name>

File diff suppressed because it is too large Load Diff

View File

@ -4444,6 +4444,10 @@
<source>Encode in UTF-8 BOM</source> <source>Encode in UTF-8 BOM</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message>
<source>Compiler Options...</source>
<translation type="unfinished"></translation>
</message>
</context> </context>
<context> <context>
<name>NewClassDialog</name> <name>NewClassDialog</name>

View File

@ -2774,6 +2774,7 @@ void CppParser::handleStructs(bool isTypedef)
} else if ((mIndex + 2 < mTokenizer.tokenCount()) } else if ((mIndex + 2 < mTokenizer.tokenCount())
&& (mTokenizer[mIndex + 1]->text == "final") && (mTokenizer[mIndex + 1]->text == "final")
&& (mTokenizer[mIndex + 2]->text.front()==',' && (mTokenizer[mIndex + 2]->text.front()==','
|| mTokenizer[mIndex + 2]->text.front()==':'
|| isblockChar(mTokenizer[mIndex + 2]->text.front()))) { || isblockChar(mTokenizer[mIndex + 2]->text.front()))) {
QString command = mTokenizer[mIndex]->text; QString command = mTokenizer[mIndex]->text;
if (!command.isEmpty()) { if (!command.isEmpty()) {