From 34a26c7dd7a73316b80783131ab03489286f4feb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Thu, 9 Jan 2020 19:15:01 +0100 Subject: [PATCH] Clang import; Pass include paths to clang --- lib/cppcheck.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/cppcheck.cpp b/lib/cppcheck.cpp index 8f7d041b9..b77b7a045 100644 --- a/lib/cppcheck.cpp +++ b/lib/cppcheck.cpp @@ -269,6 +269,9 @@ unsigned int CppCheck::check(const std::string &path) } } + for (const std::string &i: mSettings.includePaths) + flags += "-I" + i + " "; + const std::string cmd = clang + " -cc1 -ast-dump " + flags + path; std::pair res = executeCommand(cmd); if (!res.first) {