[PATCH] clang-modernize: Add SubprocessCompilationDatabase
Kim Gräsman
kim.grasman at gmail.com
Fri Oct 11 00:13:48 PDT 2013
Hi Edwin,
On Fri, Oct 11, 2013 at 12:34 AM, Edwin Vane <edwin.vane at intel.com> wrote:
>
> The problem is the FixedCompilationDatabase mangles the arguments you pass. FixedCompilationDatabase as a result has some preconditions: the name of the compiler should not be present nor should be the filename to operate on. Check CompilationDatabase.h for a better description. As stated in the patch summary we need a simpler compilation database that simply accepts a full list of args and then provides those same args back upon request.
This sounds nice, but the name feels a little funny... Isn't it just a
LiteralCompilationDatabase? The subprocess forwarding is just one use
case, unless I'm missing something. I'm still interested in allowing
tools to act as CXX replacements in build systems, for example, and it
feels like this is as step on the way there?
- K
More information about the cfe-commits
mailing list