diff options
author | Dimitri van Heesch <doxygen@gmail.com> | 2020-05-15 09:28:16 (GMT) |
---|---|---|
committer | Dimitri van Heesch <doxygen@gmail.com> | 2020-05-15 09:34:17 (GMT) |
commit | 10787eed95266bb1a13c892fe4cf5a695dac1559 (patch) | |
tree | 3267c7bc4580d4de7ec5797b5658038ad53e3941 /src/message.cpp | |
parent | 12843822b09f0aa3f426387986354d9e1303e41e (diff) | |
download | Doxygen-10787eed95266bb1a13c892fe4cf5a695dac1559.zip Doxygen-10787eed95266bb1a13c892fe4cf5a695dac1559.tar.gz Doxygen-10787eed95266bb1a13c892fe4cf5a695dac1559.tar.bz2 |
Refactoring
- Makes doxycfg library more self contained
- renames _doxygen library to doxymain
- Modernizes Debug implementation
- Moves Doxygen::runningTime into Debug
- Moves full version string to libversion
- Removed mentioning of file version in messages (when
FILE_VERSION_FILTER is used)
- Move substitute functions into QCString
Diffstat (limited to 'src/message.cpp')
-rw-r--r-- | src/message.cpp | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/src/message.cpp b/src/message.cpp index 4e07d56..a787357 100644 --- a/src/message.cpp +++ b/src/message.cpp @@ -1,6 +1,6 @@ /****************************************************************************** * - * Copyright (C) 1997-2015 by Dimitri van Heesch. + * Copyright (C) 1997-2020 by Dimitri van Heesch. * * Permission to use, copy, modify, and distribute this software and its * documentation under the terms of the GNU General Public License is hereby @@ -14,13 +14,9 @@ */ #include <stdio.h> -#include <qdatetime.h> #include "config.h" -#include "util.h" #include "debug.h" -#include "doxygen.h" #include "portable.h" -#include "filedef.h" #include "message.h" static QCString outputFormat; @@ -110,7 +106,7 @@ void msg(const char *fmt, ...) { if (Debug::isFlagSet(Debug::Time)) { - printf("%.3f sec: ",((double)Doxygen::runningTime.elapsed())/1000.0); + printf("%.3f sec: ",((double)Debug::elapsedTime())/1000.0); } va_list args; va_start(args, fmt); @@ -125,15 +121,6 @@ static void format_warn(const char *file,int line,const char *text) QCString lineSubst; lineSubst.setNum(line); QCString textSubst = text; QCString versionSubst; - if (file) // get version from file name - { - bool ambig; - FileDef *fd=findFileDef(Doxygen::inputNameLinkedMap,file,ambig); - if (fd) - { - versionSubst = fd->getVersion(); - } - } // substitute markers by actual values bool warnAsError = Config_getBool(WARN_AS_ERROR); QCString msgText = |