Blacklist '-include' and '-include-pch' flags. (#545)

This commit is contained in:
Pavel Davydov 2018-03-26 16:21:23 +03:00 committed by Fangrui Song
parent 7a6ceae500
commit a6e62aa28c

View File

@ -76,7 +76,7 @@ struct ProjectConfig {
// TODO: See
// https://github.com/Valloric/ycmd/blob/master/ycmd/completers/cpp/flags.py.
std::vector<std::string> 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<std::string> kBlacklist = {