fix: parser not correct initialized with the default compiler set

This commit is contained in:
Roy Qu 2022-01-18 13:29:48 +08:00
parent 52a29a4d43
commit 3fca3e7216
1 changed files with 1 additions and 1 deletions

View File

@ -600,7 +600,7 @@ void resetCppParser(std::shared_ptr<CppParser> parser, int compilerSetIndex)
parser->setParseLocalHeaders(true);
// Set options depending on the current compiler set
// TODO: do this every time OnCompilerSetChanged
if (compilerSetIndex<-1) {
if (compilerSetIndex<0) {
compilerSetIndex=pSettings->compilerSets().defaultIndex();
}
Settings::PCompilerSet compilerSet = pSettings->compilerSets().getSet(compilerSetIndex);