[cfe-dev] Tooling command-line conventions
Kim Gräsman
kim.grasman at gmail.com
Mon Aug 12 12:47:54 PDT 2013
Hi all,
I'm looking into porting a pre-Tooling tool to Tooling to allow use of
compilation databases.
But our tool was built to be invoked from the build system, and
exposes the same command-line interface as Clang, with some additional
prefixed switches (e.g. tool -Xtool --toolswitch=value -I . foo.cpp).
It seems Tooling and LLVM's CommandLine library instead separates tool
switches and Clang switches with a double dash (e.g. tool
-toolswitch=value -- -I . foo.cpp)
Is there a clean way to combine Tooling's handling of compilation
databases with prefixed switches to get the benefits of both modes?
Do other people write tools based on Tooling to snap into Make-like
build systems?
Thanks,
- Kim
More information about the cfe-dev
mailing list