- fix: In sdcc project, parser are not correctly inited as sdcc parser.

This commit is contained in:
Roy Qu 2024-04-15 22:24:57 +08:00
parent d8b467b867
commit 0867947c70
2 changed files with 3 additions and 0 deletions

View File

@ -147,6 +147,7 @@ Red Panda C++ Version 2.27
- change: Don't generate project resource files for sdcc project.
- fix: Name of the macro for project private resource header is not correct.
- fix: In sdcc project, sdcc keywords are not in completion suggest list.
- fix: In sdcc project, parser are not correctly inited as sdcc parser.
Red Panda C++ Version 2.26
- enhancement: Code suggestion for embedded std::vectors.

View File

@ -247,6 +247,8 @@ void resetCppParser(std::shared_ptr<CppParser> parser, int compilerSetIndex)
compilerSetIndex=pSettings->compilerSets().defaultIndex();
}
Settings::PCompilerSet compilerSet = pSettings->compilerSets().getSet(compilerSetIndex);
if (compilerSet && compilerSet->compilerType()==CompilerType::SDCC)
parser->setLanguage(ParserLanguage::SDCC);
parser->clearIncludePaths();
bool isCpp = parser->language()==ParserLanguage::CPlusPlus;
if (compilerSet) {