- fix: In sdcc project, parser are not correctly inited as sdcc parser.
This commit is contained in:
parent
d8b467b867
commit
0867947c70
1
NEWS.md
1
NEWS.md
|
@ -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.
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue