|
Doxygen
|
#include <cstdio>#include <cstdlib>#include <mutex>#include <atomic>#include <unordered_set>#include "config.h"#include "debug.h"#include "portable.h"#include "message.h"#include "doxygen.h"#include "fileinfo.h"#include "dir.h"#include "md5hash.h"Go to the source code of this file.
Functions | |
| static bool | checkWarnMessage (std::string_view msg) |
| static void | format_warn (const DString &file, int line, const DString &text) |
| static void | handle_warn_as_error () |
| static void | do_warn (const DString &file, int line, const char *prefix, fmt::string_view fmt, fmt::format_args args) |
| void | msg_ (fmt::string_view fmt, fmt::format_args args) |
| void | warn_ (WarningType type, const DString &file, int line, fmt::string_view fmt, fmt::format_args args) |
| void | warn_uncond_ (fmt::string_view fmt, fmt::format_args args) |
| void | err_ (fmt::string_view fmt, fmt::format_args args) |
| void | err_full_ (const DString &file, int line, fmt::string_view fmt, fmt::format_args args) |
| void | term_ (fmt::string_view fmt, fmt::format_args args) |
| DString | warn_line (const DString &file, int line) |
| void | warn_flush () |
| void | initWarningFormat () |
| void | finishWarnExit () |
Variables | |
| static DString | g_warnFormat |
| static DString | g_warnLineFormat |
| static const char * | g_warningStr = "warning: " |
| static const char * | g_errorStr = "error: " |
| static FILE * | g_warnFile = stderr |
| static WARN_AS_ERROR_t | g_warnBehavior = WARN_AS_ERROR_t::NO |
| static DString | g_warnlogFile |
| static bool | g_warnlogTemp = false |
| static std::atomic_bool | g_warnStat = false |
| static std::mutex | g_mutex |
| static std::unordered_set< std::string > | g_warnHash |
|
static |
Definition at line 46 of file message.cpp.
References g_warnHash, md5str(), and msg.
Referenced by err_(), format_warn(), term_(), and warn_uncond_().
|
static |
Definition at line 116 of file message.cpp.
References format_warn(), handle_warn_as_error(), and prefix.
Referenced by warn_().
| void err_ | ( | fmt::string_view | fmt, |
| fmt::format_args | args ) |
Definition at line 169 of file message.cpp.
References checkWarnMessage(), g_errorStr, g_mutex, g_warnFile, and handle_warn_as_error().
Referenced by err_fmt().
| void err_full_ | ( | const DString & | file, |
| int | line, | ||
| fmt::string_view | fmt, | ||
| fmt::format_args | args ) |
Definition at line 180 of file message.cpp.
References format_warn(), and g_errorStr.
Referenced by err_full_fmt().
| void finishWarnExit | ( | ) |
Definition at line 289 of file message.cpp.
References err, Portable::fclose(), g_warnBehavior, g_warnFile, g_warnlogFile, g_warnlogTemp, g_warnStat, Portable::openInputStream(), and Portable::unlink().
Referenced by generateOutput().
Definition at line 51 of file message.cpp.
References checkWarnMessage(), Config_getBool, DString::data(), DString::empty(), g_mutex, g_warnBehavior, g_warnFile, g_warnFormat, g_warnlogFile, g_warnStat, DString::length(), msg, DString::setNum(), substitute(), and DString::view().
Referenced by do_warn(), and err_full_().
|
static |
Definition at line 95 of file message.cpp.
References Config_getBool, DString::data(), g_mutex, g_warnBehavior, g_warnFile, g_warnlogFile, g_warnStat, DString::length(), and qPrint().
Referenced by do_warn(), err_(), and warn_uncond_().
| void initWarningFormat | ( | ) |
Definition at line 231 of file message.cpp.
References Config_getEnum, Config_getString, FileInfo::dirPath(), DString::empty(), err, Dir::exists(), Portable::fclose(), Portable::fopen(), g_errorStr, g_warnBehavior, g_warnFile, g_warnFormat, g_warningStr, g_warnLineFormat, g_warnlogFile, g_warnlogTemp, Dir::mkdir(), Portable::pid(), DString::sprintf(), and DString::str().
Referenced by checkConfiguration().
| void msg_ | ( | fmt::string_view | fmt, |
| fmt::format_args | args ) |
Definition at line 124 of file message.cpp.
References Config_getBool, Debug::elapsedTime(), g_mutex, Debug::isFlagSet(), and Debug::Time.
Referenced by msg_fmt().
| void term_ | ( | fmt::string_view | fmt, |
| fmt::format_args | args ) |
Definition at line 187 of file message.cpp.
References checkWarnMessage(), Config_getBool, g_errorStr, g_mutex, g_warnFile, and g_warnlogFile.
Referenced by term_fmt().
| void warn_ | ( | WarningType | type, |
| const DString & | file, | ||
| int | line, | ||
| fmt::string_view | fmt, | ||
| fmt::format_args | args ) |
Definition at line 139 of file message.cpp.
References Config_getBool, do_warn(), DocError, g_warningStr, Generic, IncompleteDoc, Layout, and Undocumented.
Referenced by warn_fmt().
| void warn_flush | ( | ) |
Definition at line 209 of file message.cpp.
References DString::empty(), g_warnLineFormat, DString::setNum(), and substitute().
Referenced by addMemberFunction(), checkPageRelations(), computePageRelations(), and findGlobalMember().
| void warn_uncond_ | ( | fmt::string_view | fmt, |
| fmt::format_args | args ) |
Definition at line 158 of file message.cpp.
References checkWarnMessage(), g_errorStr, g_mutex, g_warnFile, g_warningStr, and handle_warn_as_error().
Referenced by warn_uncond_fmt().
|
static |
Definition at line 35 of file message.cpp.
Referenced by err_(), err_full_(), initWarningFormat(), term_(), and warn_uncond_().
|
static |
Definition at line 41 of file message.cpp.
Referenced by err_(), format_warn(), handle_warn_as_error(), msg_(), term_(), and warn_uncond_().
|
static |
Definition at line 37 of file message.cpp.
Referenced by finishWarnExit(), format_warn(), handle_warn_as_error(), and initWarningFormat().
|
static |
Definition at line 36 of file message.cpp.
Referenced by err_(), finishWarnExit(), format_warn(), handle_warn_as_error(), initWarningFormat(), term_(), warn_flush(), and warn_uncond_().
|
static |
Definition at line 32 of file message.cpp.
Referenced by format_warn(), and initWarningFormat().
|
static |
Definition at line 42 of file message.cpp.
Referenced by checkWarnMessage().
|
static |
Definition at line 34 of file message.cpp.
Referenced by initWarningFormat(), warn_(), and warn_uncond_().
|
static |
Definition at line 33 of file message.cpp.
Referenced by initWarningFormat(), and warn_line().
|
static |
Definition at line 38 of file message.cpp.
Referenced by finishWarnExit(), format_warn(), handle_warn_as_error(), initWarningFormat(), and term_().
|
static |
Definition at line 39 of file message.cpp.
Referenced by finishWarnExit(), and initWarningFormat().
|
static |
Definition at line 40 of file message.cpp.
Referenced by finishWarnExit(), format_warn(), and handle_warn_as_error().