Let qdoc respect excludedirs for examples.
Change-Id: I01063b38122aea3615801ff013c8c4a1589327fc Reviewed-by: Martin Smith <martin.smith@nokia.com>
This commit is contained in:
parent
b856c2f8b4
commit
3d13156025
@ -503,11 +503,10 @@ QStringList Config::getAllFiles(const QString &filesVar,
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
QStringList Config::getExampleQdocFiles()
|
QStringList Config::getExampleQdocFiles(const QSet<QString> &excludedDirs,
|
||||||
|
const QSet<QString> &excludedFiles)
|
||||||
{
|
{
|
||||||
QStringList result;
|
QStringList result;
|
||||||
QSet<QString> excludedDirs;
|
|
||||||
QSet<QString> excludedFiles;
|
|
||||||
QStringList dirs = getStringList("exampledirs");
|
QStringList dirs = getStringList("exampledirs");
|
||||||
QString nameFilter = " *.qdoc";
|
QString nameFilter = " *.qdoc";
|
||||||
|
|
||||||
|
@ -86,7 +86,7 @@ public:
|
|||||||
const QString& dirsVar,
|
const QString& dirsVar,
|
||||||
const QSet<QString> &excludedDirs = QSet<QString>(),
|
const QSet<QString> &excludedDirs = QSet<QString>(),
|
||||||
const QSet<QString> &excludedFiles = QSet<QString>());
|
const QSet<QString> &excludedFiles = QSet<QString>());
|
||||||
QStringList getExampleQdocFiles();
|
QStringList getExampleQdocFiles(const QSet<QString> &excludedDirs, const QSet<QString> &excludedFiles);
|
||||||
static QStringList getFilesHere(const QString& dir,
|
static QStringList getFilesHere(const QString& dir,
|
||||||
const QString& nameFilter,
|
const QString& nameFilter,
|
||||||
const Location &location = Location(),
|
const Location &location = Location(),
|
||||||
|
@ -367,7 +367,7 @@ static void processQdocconfFile(const QString &fileName)
|
|||||||
Find all the qdoc files in the example dirs, and add
|
Find all the qdoc files in the example dirs, and add
|
||||||
them to the source files to be parsed.
|
them to the source files to be parsed.
|
||||||
*/
|
*/
|
||||||
QStringList exampleQdocList = config.getExampleQdocFiles();
|
QStringList exampleQdocList = config.getExampleQdocFiles(excludedDirs, excludedFiles);
|
||||||
for (int i=0; i<exampleQdocList.size(); ++i) {
|
for (int i=0; i<exampleQdocList.size(); ++i) {
|
||||||
if (!sources.contains(exampleQdocList[i])) {
|
if (!sources.contains(exampleQdocList[i])) {
|
||||||
sources.insert(exampleQdocList[i],exampleQdocList[i]);
|
sources.insert(exampleQdocList[i],exampleQdocList[i]);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user