summaryrefslogtreecommitdiff
path: root/src/qdoc/cppcodeparser.cpp
diff options
context:
space:
mode:
authorMartin Smith <martin.smith@qt.io>2017-02-09 14:21:24 +0100
committerMartin Smith <martin.smith@qt.io>2017-08-10 07:34:24 +0000
commit7414d80fb8b1e7ea895456d2dbaee6b811aa297f (patch)
tree84256e6e6798c75ed7aeacefc38e8f19f068316e /src/qdoc/cppcodeparser.cpp
parent2cb31888282c693b7917e1a0f86f11daef854f8c (diff)
downloadqttools-7414d80fb8b1e7ea895456d2dbaee6b811aa297f.tar.gz
qdoc: Create and Visit the PCH always
The PCH for module QtPlatformHeaders was not being built because there are no .cpp files there, and clangqdoc was only building the PCH when it was asked to parse the first .cpp file. Now it builds the PCH by a direct call from the main.cpp file, after the headers have been gathered into a list, but before the .cpp files are parsed. This does reduce the qdoc error count by a few, but it does not fix the documentation for QtPlatformHeaders. From my debugging, it appears that visiting the PCH produces no qdoc nodes for the C++ classes and functions, etc in the PCH. This update also improves the selection of default include paths when inadequate include paths are provided. That is the case for module QtPlatformHeaders, where no include paths are provided. The algorithm for constructing a list of reasonable guesses is modified here. Change-Id: I0dee8dc0279894a4482df30703657558cdb098de Reviewed-by: Topi Reiniƶ <topi.reinio@qt.io>
Diffstat (limited to 'src/qdoc/cppcodeparser.cpp')
0 files changed, 0 insertions, 0 deletions