When a compilation database is used on Windows, the command lines cannot be parsed using the standard GNU style syntax. LLVM provides functions for parsing Windows style command lines, so use them.
This is a break-off from D23409. Just uploading this here for now as a placeholder, will try to work on a test for this in the meantime.