Cppcheck: Using both --clang and --project
This commit is contained in:
parent
ec5cdc4b0d
commit
2898a2925d
|
@ -419,6 +419,8 @@ unsigned int CppCheck::check(const ImportProject::FileSettings &fs)
|
|||
temp.mSettings.includePaths.insert(temp.mSettings.includePaths.end(), fs.systemIncludePaths.cbegin(), fs.systemIncludePaths.cend());
|
||||
temp.check(Path::simplifyPath(fs.filename));
|
||||
}
|
||||
if (mSettings.clang)
|
||||
return temp.check(fs.filename);
|
||||
std::ifstream fin(fs.filename);
|
||||
unsigned int returnValue = temp.checkFile(Path::simplifyPath(fs.filename), fs.cfg, fin);
|
||||
mSettings.nomsg.addSuppressions(temp.mSettings.nomsg.getSuppressions());
|
||||
|
|
Loading…
Reference in New Issue