CLI: Checking imported project with clang

This commit is contained in:
Daniel Marjamäki 2020-02-02 14:36:33 +01:00
parent 216698c164
commit 894497e704
1 changed files with 3 additions and 2 deletions

View File

@ -362,9 +362,10 @@ unsigned int CppCheck::check(const ImportProject::FileSettings &fs)
temp.mSettings.userDefines += fs.cppcheckDefines();
temp.mSettings.includePaths = fs.includePaths;
temp.mSettings.userUndefs = fs.undefs;
if (fs.platformType != Settings::Unspecified) {
if (fs.platformType != Settings::Unspecified)
temp.mSettings.platform(fs.platformType);
}
if (mSettings.clang)
temp.check(Path::simplifyPath(fs.filename));
std::ifstream fin(fs.filename);
return temp.checkFile(Path::simplifyPath(fs.filename), fs.cfg, fin);
}