diff --git a/src/project.cc b/src/project.cc index f3c2547e..bf3f4968 100644 --- a/src/project.cc +++ b/src/project.cc @@ -75,6 +75,10 @@ struct ProjectConfig { // TODO: See // https://github.com/Valloric/ycmd/blob/master/ycmd/completers/cpp/flags.py. +// Flags '-include' and '-include-pch' are blacklisted here cause libclang returns error in case when +// precompiled header was generated by a different compiler (even two different builds of same version +// of clang for the same platform are incompatible). Note that libclang always generate it's own pch +// internally. For details, see https://github.com/Valloric/ycmd/issues/892 . std::vector kBlacklistMulti = { "-MF", "-MT", "-MQ", "-o", "--serialize-diagnostics", "-Xclang", "-include", "-include-pch"};