diff options
author | Topi Reinio <topi.reinio@qt.io> | 2019-03-04 12:41:28 +0100 |
---|---|---|
committer | Aapo Keskimolo <aapo.keskimolo@qt.io> | 2019-03-11 17:02:01 +0000 |
commit | 81b3f3e63ae0739d4e4840e4f401f78d829e0daf (patch) | |
tree | 268ce1fd8032dd0c9ae610f2378ab9732027cee5 /tests | |
parent | 75c119b6fafc24deb829d7badb62954a81c820c1 (diff) |
Fix documentation build on Clang-enabled QDoc
When building documentation with QDoc from Qt 5.11 or later, C++
sources are parsed by Clang. Clang expects a complete set of
include paths for resolving the types in the documented API, as
well as a module header to build a precompiled header from.
To do this, convert the /doc directory to a proper subproject
and add suitable dependencies to get the right include paths
from qmake. As QmlLive is not a Qt module, docs must also
maintain a 'dummy' module header that is passed to Clang.
Fix also remaining documentation warnings, most importantly,
the syntax of \fn commands.
Change-Id: I2e912dbc509e2bd40691463e4608081372b5d6a2
Reviewed-by: Kavindra Palaraja <kpalaraja@luxoft.com>
Reviewed-by: Svetlana Abramenkova <sabramenkova@luxoft.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/tests.pro | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/tests.pro b/tests/tests.pro index 3179cdf..332d12f 100644 --- a/tests/tests.pro +++ b/tests/tests.pro @@ -1,3 +1,4 @@ +include(../doc/doc.pri) TEMPLATE = subdirs |