summaryrefslogtreecommitdiffstats
path: root/src/doxygen.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/doxygen.cpp')
-rw-r--r--src/doxygen.cpp21
1 files changed, 8 insertions, 13 deletions
diff --git a/src/doxygen.cpp b/src/doxygen.cpp
index 04a8b57..a2eb53a 100644
--- a/src/doxygen.cpp
+++ b/src/doxygen.cpp
@@ -10258,21 +10258,17 @@ void readConfiguration(int argc, char **argv)
}
else if (qstricmp(formatName,"html")==0)
{
+ Config::init();
if (optind+4<argc || QFileInfo("Doxyfile").exists())
+ // explicit config file mentioned or default found on disk
{
QCString df = optind+4<argc ? argv[optind+4] : QCString("Doxyfile");
- if (!Config::parse(df))
+ if (!Config::parse(df)) // parse the config file
{
err("error opening or reading configuration file %s!\n",argv[optind+4]);
cleanUpDoxygen();
exit(1);
}
- Config::postProcess(TRUE);
- Config::checkAndCorrect();
- }
- else
- {
- Config::init();
}
if (optind+3>=argc)
{
@@ -10280,6 +10276,8 @@ void readConfiguration(int argc, char **argv)
cleanUpDoxygen();
exit(1);
}
+ Config::postProcess(TRUE);
+ Config::checkAndCorrect();
QCString outputLanguage=Config_getEnum(OUTPUT_LANGUAGE);
if (!setTranslator(outputLanguage))
@@ -10307,6 +10305,7 @@ void readConfiguration(int argc, char **argv)
}
else if (qstricmp(formatName,"latex")==0)
{
+ Config::init();
if (optind+4<argc || QFileInfo("Doxyfile").exists())
{
QCString df = optind+4<argc ? argv[optind+4] : QCString("Doxyfile");
@@ -10316,12 +10315,6 @@ void readConfiguration(int argc, char **argv)
cleanUpDoxygen();
exit(1);
}
- Config::postProcess(TRUE);
- Config::checkAndCorrect();
- }
- else // use default config
- {
- Config::init();
}
if (optind+3>=argc)
{
@@ -10329,6 +10322,8 @@ void readConfiguration(int argc, char **argv)
cleanUpDoxygen();
exit(1);
}
+ Config::postProcess(TRUE);
+ Config::checkAndCorrect();
QCString outputLanguage=Config_getEnum(OUTPUT_LANGUAGE);
if (!setTranslator(outputLanguage))