Clang import; do not use FileSettings::cppcheckDefines() when Clang parser is used
This commit is contained in:
parent
4f68d85633
commit
60c7b66636
|
@ -404,6 +404,9 @@ unsigned int CppCheck::check(const ImportProject::FileSettings &fs)
|
||||||
temp.mSettings = mSettings;
|
temp.mSettings = mSettings;
|
||||||
if (!temp.mSettings.userDefines.empty())
|
if (!temp.mSettings.userDefines.empty())
|
||||||
temp.mSettings.userDefines += ';';
|
temp.mSettings.userDefines += ';';
|
||||||
|
if (mSettings.clang)
|
||||||
|
temp.mSettings.userDefines += fs.defines;
|
||||||
|
else
|
||||||
temp.mSettings.userDefines += fs.cppcheckDefines();
|
temp.mSettings.userDefines += fs.cppcheckDefines();
|
||||||
temp.mSettings.includePaths = fs.includePaths;
|
temp.mSettings.includePaths = fs.includePaths;
|
||||||
temp.mSettings.userUndefs = fs.undefs;
|
temp.mSettings.userUndefs = fs.undefs;
|
||||||
|
|
Loading…
Reference in New Issue