summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Wicking <paul.wicking@qt.io>2018-09-20 15:00:52 +0200
committerPaul Wicking <paul.wicking@qt.io>2018-09-20 15:55:27 +0000
commit0e48dff881f8f2eda07dc07057e12cf0fbdda062 (patch)
treefe9245e7def4ea8f37f49dd74b4eb4688a67d90b
parent8f7cf4b535f90231947e8a9efaa5a10c2566cab4 (diff)
downloadqttools-0e48dff881f8f2eda07dc07057e12cf0fbdda062.tar.gz
Doc: Update QDoc manual to describe auto-detection of libclang
Task-number: QTBUG-67189 Change-Id: I89ec651eb22530e517d9b4cae62da4accb295bd7 Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
-rw-r--r--src/qdoc/doc/qdoc-guide/qdoc-guide.qdoc49
1 files changed, 29 insertions, 20 deletions
diff --git a/src/qdoc/doc/qdoc-guide/qdoc-guide.qdoc b/src/qdoc/doc/qdoc-guide/qdoc-guide.qdoc
index 71c8c81f3..0c3d8b092 100644
--- a/src/qdoc/doc/qdoc-guide/qdoc-guide.qdoc
+++ b/src/qdoc/doc/qdoc-guide/qdoc-guide.qdoc
@@ -632,25 +632,34 @@
\previouspage Getting Started with QDoc
\nextpage Creating QDoc Configuration Files
- If you are going to build QDoc from source, the following prerequisites
- apply:
+ QDoc uses libclang when parsing C++ files as well as function signatures in
+ \l {fn-command} {\\fn} commands. libclang is part of
+ \l {https://llvm.org/}{the LLVM Compiler Infrastructure Project}.
+ If you are going to build QDoc from source, you need to install
+ \l{http://clang.llvm.org}{LLVM 6.0} or greater first. You can find the
+ required pre-built binaries
+ \l {http://releases.llvm.org/download.html}{here}.
+
+ The build system uses the tool \c llvm-config to discover the location of
+ Clang on your system, and relies on it being in the c\ PATH environment
+ variable. \c llvm-config is commonly installed with Clang and libclang on
+ Linux systems, and also on macOS if LLVM is installed with Brew. The
+ installation binaries provided for Windows do not include \c llvm-config,
+ but requires that you build the debug version of LLVM from source.
+
+ If \c llvm-config is not in your \c PATH environment variable, or not
+ installed on your system, you can still build QDoc, by manually setting the
+ environment variable \c LLVM_INSTALL_DIR to point to the directory where
+ LLVM is installed. This directory should be the top level directory. For
+ example, on a Linux or macOS system with LLVM installed to \c /usr/llvm:
- \list 1
- \li Install \l{http://clang.llvm.org}{LLVM 6.0} or greater.
- The pre-built binaries needed can be found
- \l {http://releases.llvm.org/download.html}{here}.
- \li Set the environment variable \c LLVM_INSTALL_DIR to point to the
- directory where LLVM is installed. This should be the top level
- directory. For example, on a Linux or macOS system with LLVM
- installed to \c /usr/llvm:
- \badcode
- $ export LLVM_INSTALL_DIR=/usr/llvm
- \endcode
-
- On a Windows system with LLVM installed to \c
- {C:\Program Files\LLVM}:
- \badcode
- C:\> setx LLVM_INSTALL_DIR "C:\Program Files\LLVM"
- \endcode
- \endlist
+ \badcode
+ $ export LLVM_INSTALL_DIR=/usr/llvm
+ \endcode
+
+ On a Windows system with LLVM installed to \c {C:\Program Files\LLVM}:
+
+ \badcode
+ C:\> setx LLVM_INSTALL_DIR "C:\Program Files\LLVM"
+ \endcode
*/