summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Shachnev <mitya57@gmail.com>2020-03-01 15:36:33 +0300
committerDmitry Shachnev <mitya57@gmail.com>2020-03-04 17:50:57 +0300
commitd482bfef233be2aea221533dd0c4bd695875fad7 (patch)
tree4ab0cee086785cc343f4b4df68b3af30b2e67fdf
parentce895f066579f71d87c3b46361e291ad7734e88e (diff)
downloadqttools-d482bfef233be2aea221533dd0c4bd695875fad7.tar.gz
QDoc: Fix handling of -isystem option
When qdoc is built with QDOC_PASS_ISYSTEM define, it is possible to pass -isystem options to qdoc, and it will forward them to clang. Commit ce895f066579f71d fixed handling of the -F option, this commit fixes the -isystem option in a similar way. Change-Id: I876546650354ca3ee7f6edd216fd38b3d1a17285 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
-rw-r--r--src/qdoc/clangcodeparser.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/qdoc/clangcodeparser.cpp b/src/qdoc/clangcodeparser.cpp
index f39d69354..ee51e7bd4 100644
--- a/src/qdoc/clangcodeparser.cpp
+++ b/src/qdoc/clangcodeparser.cpp
@@ -1059,6 +1059,9 @@ void ClangCodeParser::initializeParser(const Config &config)
if (p.startsWith(QLatin1String("-I")) || p.startsWith(QLatin1String("-F"))) {
rawpath = p.mid(2).trimmed();
option = p.left(2).toUtf8();
+ } else if (p.startsWith(QLatin1String("-isystem"))) {
+ rawpath = p.mid(8).trimmed();
+ option = "-isystem";
} else {
rawpath = p;
option = "-I";