We should always use TokenizeWindowsCommandLine on Windows.
When compiling clangd with MinGW-W64, Triple.getEnvironment will return EnvironmentType::GNU.
Differential D70164
[Tooling][JSONCompilationDatabase] Fix backslash escaping on Windows Authored by lh123 on Nov 12 2019, 11:02 PM.
Details
We should always use TokenizeWindowsCommandLine on Windows. When compiling clangd with MinGW-W64, Triple.getEnvironment will return EnvironmentType::GNU.
Diff Detail
Event Timeline
| ||||||||||||
I think we can use TokenizeGNUCommandLine instead of CommandLineArgumentParser.