[PATCH] D23455: [Tooling] Parse compilation database command lines properly on Windows

Alexander Kornienko via cfe-commits cfe-commits at lists.llvm.org
Wed Aug 17 12:08:29 PDT 2016


alexfh added a comment.

In https://reviews.llvm.org/D23455#518317, @zturner wrote:

> We could also provide a command line option to clang-tidy that lets the user specify the command line syntax of the compilation database.  It could choose a smart default (i.e. what we do in this patch after using `llvm::sys::getProcessTriple()`) but if the command line option is specified it could just force that parsing mode.  This way we don't have to get in the business of guessing, which could itself end up having unforeseen edge cases.


If someone is actually interested in this, the option can be added to `CommonOptionsParser`.


https://reviews.llvm.org/D23455





More information about the cfe-commits mailing list