This fixes argument injection when clang command line contains "--" in the argument.
Previously, the arguments were injected at the end of the command line. It could be added after --, and be interpreted as input file paths.
This fix is needed for a subsequent patch, D92191
It's not obvious to me how this exercises the new -resource-dir logic. Can you walk me through it?