fix: hardDefines not correctly handled

This commit is contained in:
Roy Qu 2024-03-26 17:36:17 +08:00
parent df992c5cbc
commit 6cb843a1ee
1 changed files with 1 additions and 0 deletions

View File

@ -40,6 +40,7 @@ void CppPreprocessor::clear()
//option data for the parser //option data for the parser
//{ List of current project's include path } //{ List of current project's include path }
mHardDefines.clear();
mDefines.clear(); mDefines.clear();
//mHardDefines.clear(); // set by "cpp -dM -E -xc NUL" //mHardDefines.clear(); // set by "cpp -dM -E -xc NUL"
mProjectIncludePaths.clear(); mProjectIncludePaths.clear();