Commit 268da0c8 authored by Dimitri van Heesch's avatar Dimitri van Heesch

Merge branch 'master' of https://github.com/groleo/doxygen-1 into groleo-master

parents 3598e8fd 5d64c0e2
......@@ -1590,6 +1590,25 @@ void Config::check()
}
checkFileName("GENERATE_TAGFILE");
// sanity check if all depends relations are valid
QListIterator<ConfigOption> it = iterator();
ConfigOption *option;
for (it.toFirst();(option=it.current());++it)
{
QCString depName = option->dependsOn();
if (!depName.isEmpty())
{
ConfigOption * dep = Config::instance()->get(depName);
if (dep->kind()==ConfigOption::O_Bool
&& Config_getBool(depName)==FALSE)
{
msg("disabling %s since its dependency(%s) is also disabled\n",option->name().data(),depName.data());
if (option->kind()==ConfigOption::O_Bool)
Config_getBool(option->name())=FALSE;
}
}
}
}
void Config::init()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment