From 894497e70494641dfb95432405f7780a3c3fb3f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Sun, 2 Feb 2020 14:36:33 +0100 Subject: [PATCH] CLI: Checking imported project with clang --- lib/cppcheck.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/cppcheck.cpp b/lib/cppcheck.cpp index 020a7e49e..4e78ec3fb 100644 --- a/lib/cppcheck.cpp +++ b/lib/cppcheck.cpp @@ -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); }