qdoc: Simplify config code for reading file paths
authorTopi Reinio <topi.reinio@digia.com>
Thu, 3 Apr 2014 08:50:02 +0000 (10:50 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Fri, 2 May 2014 07:56:24 +0000 (09:56 +0200)
commit9e44204bf84edcfe2befaaa9b7280257c9268548
treee9ea0cb7f5cbac8ed98b345b104fd4ed99d31ca7
parent2e44a9e4918cd6d9d7f33f61330c456249dd9b0f
qdoc: Simplify config code for reading file paths

This change greatly simplifies the code used for
reading paths from config files: near-identical
functions Config::getCanonicalPathList() and
Config::getPathList() are combined into one, and
the use of Config::getCleanPathList() is
replaced with the above.

Effectively, all paths read from the config files
are now converted into canonical ones.

It also adds support for absolute paths in config
files.

Task-number: QTBUG-36193
Change-Id: I2dc1ee6a67a400e056404ec1c09c6e81f643aa77
Reviewed-by: Martin Smith <martin.smith@digia.com>
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@digia.com>
src/tools/qdoc/config.cpp
src/tools/qdoc/config.h
src/tools/qdoc/cppcodeparser.cpp
src/tools/qdoc/doc.cpp
src/tools/qdoc/generator.cpp
src/tools/qdoc/main.cpp