From 59769df8b5ce4d864d3d4df14d62ec5e1d3411ad Mon Sep 17 00:00:00 2001 From: Pavel Davydov Date: Mon, 26 Mar 2018 16:21:23 +0300 Subject: [PATCH] Blacklist '-include' and '-include-pch' flags. (#545) --- src/project.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/project.cc b/src/project.cc index a194b31f..f3c2547e 100644 --- a/src/project.cc +++ b/src/project.cc @@ -76,7 +76,7 @@ struct ProjectConfig { // TODO: See // https://github.com/Valloric/ycmd/blob/master/ycmd/completers/cpp/flags.py. std::vector kBlacklistMulti = { - "-MF", "-MT", "-MQ", "-o", "--serialize-diagnostics", "-Xclang"}; + "-MF", "-MT", "-MQ", "-o", "--serialize-diagnostics", "-Xclang", "-include", "-include-pch"}; // Blacklisted flags which are always removed from the command line. std::vector kBlacklist = {