diff options
author | Peter Collingbourne <peter@pcc.me.uk> | 2013-02-28 08:28:23 (GMT) |
---|---|---|
committer | Peter Collingbourne <peter@pcc.me.uk> | 2013-03-10 03:22:58 (GMT) |
commit | e99c493bc7a7d06cd0de91c3ac670315800e760b (patch) | |
tree | 61040729cebf3b6a722576cbf94393180d39d577 /doc | |
parent | a010af66eb621b6a26b99ac46cad78f460802713 (diff) | |
download | Ninja-e99c493bc7a7d06cd0de91c3ac670315800e760b.zip Ninja-e99c493bc7a7d06cd0de91c3ac670315800e760b.tar.gz Ninja-e99c493bc7a7d06cd0de91c3ac670315800e760b.tar.bz2 |
Add compdb tool
This tool helps convert Ninja build files to a compilation database
of the form used by Clang tooling.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/manual.asciidoc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/doc/manual.asciidoc b/doc/manual.asciidoc index 1e5b70b..ea26b8d 100644 --- a/doc/manual.asciidoc +++ b/doc/manual.asciidoc @@ -283,6 +283,12 @@ Files created but not referenced in the graph are not removed. This tool takes in account the +-v+ and the +-n+ options (note that +-n+ implies +-v+). +`compdb`:: given a list of rules, each of which is expected to be a +C family language compiler rule whose first input is the name of the +source file, prints on standard output a compilation database in the +http://clang.llvm.org/docs/JSONCompilationDatabase.html[JSON format] expected +by the Clang tooling interface. +_Available since Ninja 1.2._ Writing your own Ninja files |