summaryrefslogtreecommitdiffstats
path: root/doc/manual.asciidoc
diff options
context:
space:
mode:
authorPeter Collingbourne <peter@pcc.me.uk>2013-02-28 08:28:23 (GMT)
committerPeter Collingbourne <peter@pcc.me.uk>2013-03-10 03:22:58 (GMT)
commite99c493bc7a7d06cd0de91c3ac670315800e760b (patch)
tree61040729cebf3b6a722576cbf94393180d39d577 /doc/manual.asciidoc
parenta010af66eb621b6a26b99ac46cad78f460802713 (diff)
downloadNinja-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/manual.asciidoc')
-rw-r--r--doc/manual.asciidoc6
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