Skip to content

Commit

Permalink
Refactoring: Fix some issues in reporting warnings for Doxywizard's c…
Browse files Browse the repository at this point in the history
…onfig parser
  • Loading branch information
doxygen committed Dec 25, 2020
1 parent c73dccc commit 479c58a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions addon/doxywizard/config_doxyw.l
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ static void processString()
{
std::string str = g_str.trimmed().toStdString();
config_warn("Invalid value for '%s' tag at line %d, file %s: Value '%s' is not properly quoted\n",
qPrintable(g_cmd),yylineno,qPrintable(g_yyFileName),str.c_str());
qPrintable(g_cmd),yylineno-1,qPrintable(g_yyFileName),str.c_str());
}
warned=true;
}
Expand Down Expand Up @@ -269,7 +269,7 @@ static void processList()
{
std::string str = g_str.trimmed().toStdString();
config_warn("Invalid value for '%s' tag at line %d, file %s: Values in list '%s' are not properly space %sseparated\n",
qPrintable(g_cmd),yylineno,qPrintable(g_yyFileName),str.c_str(),allowCommaAsSeparator?"or comma ":"");
qPrintable(g_cmd),yylineno-1,qPrintable(g_yyFileName),str.c_str(),allowCommaAsSeparator?"or comma ":"");
warned=true;
}
needsSeparator=false;
Expand All @@ -288,7 +288,7 @@ static void processList()
{
std::string str = g_str.trimmed().toStdString();
config_warn("Invalid value for '%s' tag at line %d, file %s: Values in list '%s' are not properly quoted\n",
g_cmd.data(),yylineno,g_yyFileName.data(),str.c_str());
qPrintable(g_cmd),yylineno-1,qPrintable(g_yyFileName),str.c_str());
}
}

Expand Down

0 comments on commit 479c58a

Please sign in to comment.