summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDimitri van Heesch <doxygen@gmail.com>2019-08-13 20:07:45 (GMT)
committerGitHub <noreply@github.com>2019-08-13 20:07:45 (GMT)
commit66ae8f62afbdc98c1c190fcc74a8263e7e6a0aa8 (patch)
treefef8279e2e220a5e663b00d42d8f346bce030b0e
parent80bbd1796e410d1822e16833bcf6002692ff54df (diff)
parenta27369dbf3cccbe4b96bfde1aca49d96d4b396f0 (diff)
downloadDoxygen-66ae8f62afbdc98c1c190fcc74a8263e7e6a0aa8.zip
Doxygen-66ae8f62afbdc98c1c190fcc74a8263e7e6a0aa8.tar.gz
Doxygen-66ae8f62afbdc98c1c190fcc74a8263e7e6a0aa8.tar.bz2
Merge pull request #7193 from albert-github/feature/issue_7190
issue #7190 1.8.16: Blank FILE_PATTERNS => no files processed
-rw-r--r--src/configimpl.h1
-rw-r--r--src/configimpl.l12
2 files changed, 10 insertions, 3 deletions
diff --git a/src/configimpl.h b/src/configimpl.h
index 1594d47..55e056e 100644
--- a/src/configimpl.h
+++ b/src/configimpl.h
@@ -126,6 +126,7 @@ class ConfigList : public ConfigOption
void setWidgetType(WidgetType w) { m_widgetType = w; }
WidgetType widgetType() const { return m_widgetType; }
QStrList *valueRef() { return &m_value; }
+ QStrList getDefault() { return m_defaultValue; }
void writeTemplate(FTextStream &t,bool sl,bool);
void compareDoxyfile(FTextStream &t);
void substEnvVars();
diff --git a/src/configimpl.l b/src/configimpl.l
index bcb5a8c..2d91e12 100644
--- a/src/configimpl.l
+++ b/src/configimpl.l
@@ -1652,11 +1652,17 @@ void Config::checkAndCorrect()
QStrList &filePatternList = Config_getList(FILE_PATTERNS);
if (filePatternList.isEmpty())
{
- ConfigOption * opt = ConfigImpl::instance()->get("FILE_PATTERNS");
- if (opt->kind()==ConfigOption::O_List)
+ ConfigOption * opt = ConfigImpl::instance()->get("FILE_PATTERNS");
+ if (opt->kind()==ConfigOption::O_List)
+ {
+ QStrList l = ((ConfigList*)opt)->getDefault();
+ const char *p = l.first();
+ while (p)
{
- ((ConfigList*)opt)->init();
+ filePatternList.append(p);
+ p = l.next();
}
+ }
}
// add default pattern if needed