diff options
-rw-r--r-- | src/qdoc/clangcodeparser.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/qdoc/clangcodeparser.cpp b/src/qdoc/clangcodeparser.cpp index 61a5fd639..5342bb34b 100644 --- a/src/qdoc/clangcodeparser.cpp +++ b/src/qdoc/clangcodeparser.cpp @@ -1144,6 +1144,15 @@ void ClangCodeParser::getMoreArgs() else { moreArgs_ = includePaths_; } + + // Canonicalize include paths + for (int i = 0; i < moreArgs_.size(); ++i) { + if (!moreArgs_.at(i).startsWith("-")) { + QFileInfo fi(QDir::current(), moreArgs_[i]); + if (fi.exists()) + moreArgs_[i] = fi.canonicalFilePath().toLatin1(); + } + } } /*! |