diff options
| author | Martin Smith <[email protected]> | 2012-10-25 12:44:16 +0200 |
|---|---|---|
| committer | Martin Smith <[email protected]> | 2012-10-25 13:04:31 +0200 |
| commit | 34d2a7e6b68cfff59c29018b4aea1a7af38512da (patch) | |
| tree | 64efb340de7340d3a7e914f65cfe719ed2aa98ae /src/tools/qdoc/location.cpp | |
| parent | 600f2397b8d3d336b5d6faf8b49815641fe6f523 (diff) | |
qdoc: Don't load index in -prepare phase
qdoc was loading index files during the -prepare
phase, which it shouldn't do. The index files it
was loading were from modules other than the one
qdoc was running on. They had not been deleted
because qdoc only clears the output directory of
the module it is running on.
Also added a static function to the Location class
to print information messages on standard error.
This is useful to see what qdoc is doing and when
it is doing it because these log messages are
interleaved in the qdoc error messages. More of
these log messages will be added as needed.
Also removed some unneeded qDebug() stuff in
the code that processes the dependencies from
the qdocconf file.
Task number: QTBUG-27707
Change-Id: I1eec8d6ec89ff040969c2a1f62f21f551f347e05
Reviewed-by: Tor Arne Vestbø <[email protected]>
Diffstat (limited to 'src/tools/qdoc/location.cpp')
| -rw-r--r-- | src/tools/qdoc/location.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/tools/qdoc/location.cpp b/src/tools/qdoc/location.cpp index 89646331250..48e5d6153c3 100644 --- a/src/tools/qdoc/location.cpp +++ b/src/tools/qdoc/location.cpp @@ -336,6 +336,15 @@ void Location::information(const QString& message) } /*! + Prints \a message to \c stderr followed by a \c{'\n'}. + */ +void Location::logToStdErr(const QString& message) +{ + fprintf(stderr, "%s\n", message.toLatin1().data()); + fflush(stderr); +} + +/*! Report a program bug, including the \a hint. */ void Location::internalError(const QString& hint) |
