From a491b9af915e6ea027ecd94848746aaa8dd44293 Mon Sep 17 00:00:00 2001 From: Ben D Date: Mon, 4 Jul 2016 14:33:47 +0200 Subject: [PATCH] extended fix to MSYS2's libclang to '-isystem' --- src/cmake.cc | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/src/cmake.cc b/src/cmake.cc index 990c7ba..e2786f2 100644 --- a/src/cmake.cc +++ b/src/cmake.cc @@ -72,16 +72,18 @@ bool CMake::update_default_build(const boost::filesystem::path &default_build_pa if(exit_status==EXIT_SUCCESS) { #ifdef _WIN32 //Temporary fix to MSYS2's libclang auto compile_commands_file=filesystem::read(compile_commands_path); - size_t pos=0; - while((pos=compile_commands_file.find("-I/", pos))!=std::string::npos) { - if(pos+3