Browse Source

Ignore arguments in compile commands after and including --

merge-requests/413/head
eidheim 3 years ago
parent
commit
5611ff5b21
  1. 4
      src/compile_commands.cpp

4
src/compile_commands.cpp

@ -151,8 +151,10 @@ std::vector<std::string> CompileCommands::get_arguments(const boost::filesystem:
cmd_arguments[c] == "-MF") { // Exclude dependency file generation
ignore_next = true;
}
else if(cmd_arguments[c] == "-c" || cmd_arguments[c] == "--") {
else if(cmd_arguments[c] == "-c") {
}
else if(cmd_arguments[c] == "--") // End of command options
break;
else
arguments.emplace_back(cmd_arguments[c]);
}

Loading…
Cancel
Save