From 0a4bc8cb6027d3ad8e63303ec9ef28ba76fcae12 Mon Sep 17 00:00:00 2001 From: eidheim Date: Wed, 3 Oct 2018 08:58:38 +0200 Subject: [PATCH] Meson, related to #394: exclude dependency file generation when parsing to silence clang error --- src/compile_commands.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/compile_commands.cc b/src/compile_commands.cc index d9d572b..fa751b5 100644 --- a/src/compile_commands.cc +++ b/src/compile_commands.cc @@ -103,7 +103,8 @@ std::vector CompileCommands::get_arguments(const boost::filesystem: } else if(cmd_arguments[c] == "-o" || cmd_arguments[c] == "-c" || cmd_arguments[c] == "-x" || // Remove language arguments since some tools add languages not understood by clang - (is_header && cmd_arguments[c] == "-include-pch")) { // Header files should not use precompiled headers + (is_header && cmd_arguments[c] == "-include-pch") || // Header files should not use precompiled headers + cmd_arguments[c] == "-MF") { // Exclude dependency file generation ignore_next = true; continue; }