summaryrefslogtreecommitdiff
path: root/src/qdoc/main.cpp
diff options
context:
space:
mode:
authorTopi Reinio <topi.reinio@qt.io>2017-10-18 12:17:26 +0200
committerTopi Reiniƶ <topi.reinio@qt.io>2017-10-24 12:20:04 +0000
commit4cd7a4291eb9cb4ca1653e204928d9ac997f4f11 (patch)
treee615bbe8e92fd4f6b161e37f20158da0e38d3616 /src/qdoc/main.cpp
parentcc5e1cfdf7707267c6cbb0dea65ea329879bff01 (diff)
downloadqttools-4cd7a4291eb9cb4ca1653e204928d9ac997f4f11.tar.gz
qdoc: Introduce 'warninglimit' configuration variable
This variable is primarily meant for testing the documentation builds in the CI system; if the warning count exceeds the set limit, QDoc uses the total number of warnings as exit code. The warning limit is enforced when either warninglimit.enabled = true, or QDOC_ENABLE_WARNINGLIMIT environment variable is set. This also provides a method to override the CI failing a documentation build; the author can increase the warning limit to let the build pass, hopefully with a good excuse in the code review. Change-Id: If455a9636f2c63b41798523dd4acb3183a00229c Reviewed-by: Martin Smith <martin.smith@qt.io> Reviewed-by: Frederik Gladhorn <frederik.gladhorn@qt.io>
Diffstat (limited to 'src/qdoc/main.cpp')
-rw-r--r--src/qdoc/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qdoc/main.cpp b/src/qdoc/main.cpp
index 90cd1ec76..a88533ebe 100644
--- a/src/qdoc/main.cpp
+++ b/src/qdoc/main.cpp
@@ -786,5 +786,5 @@ int main(int argc, char **argv)
qDebug() << "main(): qdoc database deleted";
#endif
- return EXIT_SUCCESS;
+ return Location::exitCode();
}