diff options
-rw-r--r-- | src/qdoc/clangcodeparser.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/qdoc/clangcodeparser.cpp b/src/qdoc/clangcodeparser.cpp index 5bda5296b..87c9282ce 100644 --- a/src/qdoc/clangcodeparser.cpp +++ b/src/qdoc/clangcodeparser.cpp @@ -1226,6 +1226,8 @@ void ClangCodeParser::buildPCH() for (const auto &p : qAsConst(includePaths_)) { if (p.endsWith(module)) { QByteArray candidate = p + "/" + module; + if (p.startsWith("-I")) + candidate = candidate.mid(2); if (QFile::exists(QString::fromUtf8(candidate))) { header = candidate; break; |