summaryrefslogtreecommitdiffstats
path: root/src/message.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <doxygen@gmail.com>2021-02-13 12:38:47 (GMT)
committerDimitri van Heesch <doxygen@gmail.com>2021-02-20 19:17:46 (GMT)
commitbcca6a94dd16f07c883fcd4c4d2026032afcda37 (patch)
treed5f0c1278f03980ff9bec3e7fa32942bf7896207 /src/message.cpp
parent7aec8d3d0b74aa0f9c9c90a1f3e5c33348b59917 (diff)
downloadDoxygen-bcca6a94dd16f07c883fcd4c4d2026032afcda37.zip
Doxygen-bcca6a94dd16f07c883fcd4c4d2026032afcda37.tar.gz
Doxygen-bcca6a94dd16f07c883fcd4c4d2026032afcda37.tar.bz2
Refactoring: replace QRegExp by std::regex in pre.l
Diffstat (limited to 'src/message.cpp')
-rw-r--r--src/message.cpp55
1 files changed, 0 insertions, 55 deletions
diff --git a/src/message.cpp b/src/message.cpp
index 5f06984..6c7c8ac 100644
--- a/src/message.cpp
+++ b/src/message.cpp
@@ -25,12 +25,6 @@
static QCString outputFormat;
static const char *warning_str = "warning: ";
static const char *error_str = "error: ";
-//static int warnFormatOrder; // 1 = $file,$line,$text
-// // 2 = $text,$line,$file
-// // 3 = $line,$text,$file
-// // 4 = $file,$text,$line
-// // 5 = $text,$file,$line
-// // 6 = $line,$file,$text
static FILE *warnFile = stderr;
@@ -47,55 +41,6 @@ static std::mutex g_mutex;
void initWarningFormat()
{
-// int filePos = Config_getString(WARN_FORMAT).find("$file");
-// int linePos = Config_getString(WARN_FORMAT).find("$line");
-// int textPos = Config_getString(WARN_FORMAT).find("$text");
-//
-// // sort items on position (there are 6 cases)
-// warnFormatOrder = 1;
-// if (filePos>linePos && filePos>textPos)
-// {
-// if (linePos>textPos) // $text,$line,$file
-// {
-// warnFormatOrder = 2;
-// }
-// else // $line,$text,$file
-// {
-// warnFormatOrder = 3;
-// }
-// }
-// else if (filePos<linePos && filePos<textPos)
-// {
-// if (linePos>textPos) // $file,$text,$line
-// {
-// warnFormatOrder = 4;
-// }
-// }
-// else if (filePos<linePos && filePos>textPos) // $text,$file,$line
-// {
-// warnFormatOrder = 5;
-// }
-// else // $line,$file,$text
-// {
-// warnFormatOrder = 6;
-// }
-// outputFormat =
-// substitute(
-// substitute(
-// substitute(
-// Config_getString(WARN_FORMAT),
-// "$file","%s"
-// ),
-// "$text","%s"
-// ),
-// "$line","%d"
-// )+'\n';
-
- // replace(QRegExp("\\$file"),"%s").
- // replace(QRegExp("\\$text"),"%s").
- // replace(QRegExp("\\$line"),"%d")+
- // '\n';
-
outputFormat = Config_getString(WARN_FORMAT);
if (!Config_getString(WARN_LOGFILE).isEmpty())