Cppcheck: Fix; Do not run clang twice
This commit is contained in:
parent
7719b27e44
commit
1e9f67936e
|
@ -419,10 +419,8 @@ unsigned int CppCheck::check(const ImportProject::FileSettings &fs)
|
||||||
temp.mSettings.platform(fs.platformType);
|
temp.mSettings.platform(fs.platformType);
|
||||||
if (mSettings.clang) {
|
if (mSettings.clang) {
|
||||||
temp.mSettings.includePaths.insert(temp.mSettings.includePaths.end(), fs.systemIncludePaths.cbegin(), fs.systemIncludePaths.cend());
|
temp.mSettings.includePaths.insert(temp.mSettings.includePaths.end(), fs.systemIncludePaths.cbegin(), fs.systemIncludePaths.cend());
|
||||||
temp.check(Path::simplifyPath(fs.filename));
|
return temp.check(Path::simplifyPath(fs.filename));
|
||||||
}
|
}
|
||||||
if (mSettings.clang)
|
|
||||||
return temp.check(fs.filename);
|
|
||||||
std::ifstream fin(fs.filename);
|
std::ifstream fin(fs.filename);
|
||||||
unsigned int returnValue = temp.checkFile(Path::simplifyPath(fs.filename), fs.cfg, fin);
|
unsigned int returnValue = temp.checkFile(Path::simplifyPath(fs.filename), fs.cfg, fin);
|
||||||
mSettings.nomsg.addSuppressions(temp.mSettings.nomsg.getSuppressions());
|
mSettings.nomsg.addSuppressions(temp.mSettings.nomsg.getSuppressions());
|
||||||
|
|
Loading…
Reference in New Issue