summaryrefslogtreecommitdiff
path: root/src/qdoc/cppcodeparser.cpp
diff options
context:
space:
mode:
authorMartin Smith <martin.smith@qt.io>2016-05-23 13:06:46 +0200
committerMartin Smith <martin.smith@qt.io>2017-08-10 07:32:16 +0000
commitc9cc240cdc67d816aef5e65ffacf152d9313dd1b (patch)
tree0be2c9ead13ab5376fdf6ed568af1ba936dd6d6b /src/qdoc/cppcodeparser.cpp
parent21ca107f47600d729431828f562c6baca5ad4fb0 (diff)
downloadqttools-c9cc240cdc67d816aef5e65ffacf152d9313dd1b.tar.gz
qdoc: Reduce total clang parse time
Including the module's private headers in the PCH database can reduce the qdoc run time for the module by a few minutes. Apparently, including the private headers significantly reduces the number of header files that must be re-parsed. This change adds the module's private headers to the pre-compiled header database. When it finds the module's module header, it copies that module header to the temporary directory where it will construct the PCH. Then it finds the module's private header subdirectory, constructs the path to each header in that directory, and appends it to the temporary module header. Then it passes this augmented module header to clang to construct the PCH. Change-Id: Ie67485c7070ef7487345db90a8b27c64f5caa0f2 Reviewed-by: Topi Reiniƶ <topi.reinio@qt.io>
Diffstat (limited to 'src/qdoc/cppcodeparser.cpp')
0 files changed, 0 insertions, 0 deletions