qdoc: qdoc now can run in 2 passes
authorMartin Smith <martin.smith@digia.com>
Thu, 11 Oct 2012 12:04:21 +0000 (14:04 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Sat, 13 Oct 2012 03:51:19 +0000 (05:51 +0200)
commit9dbe3dc3a6ad41adfd3aa1e58885f1abc6a0890e
tree6e60ced29f3632614471cb5cbe78ddb48253e50c
parent8473b6d05c50046b41f553fbfc1f6d2236d3607f
qdoc: qdoc now can run in 2 passes

Two command line options have been added, -prepare and -generate.
If you run qdoc with -prepare, qdoc reads and parses the source
files but does not generate the documentation. It only creates
the .index file for the module you are running qdoc on.

If you run qdoc with -generate, qdoc reads and parses the source
files as well as the .index files created by running qdoc with
-prepare, and it generates the documentation but no .index file.

If you run without either option, qdoc runs as before, i.e. it
runs both passes as a single pass.

Task number: QTBUG-27539

Change-Id: Idbfe3f0f9dff58283596b504f00dff3f70f6e371
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@digia.com>
Reviewed-by: Martin Smith <martin.smith@digia.com>
src/tools/qdoc/ditaxmlgenerator.cpp
src/tools/qdoc/generator.cpp
src/tools/qdoc/generator.h
src/tools/qdoc/htmlgenerator.cpp
src/tools/qdoc/main.cpp