From 99388cc4721a6c2280a6ec8c69c254d757304125 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B8rgen=20Sverre=20Lien=20Sell=C3=A6g?= Date: Tue, 5 Jul 2022 20:06:01 +0200 Subject: [PATCH] fixes #452. I don't know why the compile commands insterts these? --- src/compile_commands.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compile_commands.cpp b/src/compile_commands.cpp index 731f95b..2c5e43a 100644 --- a/src/compile_commands.cpp +++ b/src/compile_commands.cpp @@ -151,7 +151,7 @@ std::vector CompileCommands::get_arguments(const boost::filesystem: cmd_arguments[c] == "-MF") { // Exclude dependency file generation ignore_next = true; } - else if(cmd_arguments[c] == "-c") { + else if(cmd_arguments[c] == "-c" || cmd_arguments[c] == "--") { } else arguments.emplace_back(cmd_arguments[c]);