Doxygen
|
#include <cstdio>
#include <cstdlib>
#include <mutex>
#include <atomic>
#include "config.h"
#include "debug.h"
#include "portable.h"
#include "message.h"
#include "doxygen.h"
#include "fileinfo.h"
#include "dir.h"
Go to the source code of this file.
Functions | |
static void | format_warn (const QCString &file, int line, const QCString &text) |
static void | handle_warn_as_error () |
static void | do_warn (const QCString &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 QCString &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 QCString &file, int line, fmt::string_view fmt, fmt::format_args args) |
void | term_ (fmt::string_view fmt, fmt::format_args args) |
QCString | warn_line (const QCString &file, int line) |
void | warn_flush () |
void | initWarningFormat () |
void | finishWarnExit () |
Variables | |
static QCString | g_warnFormat |
static QCString | 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 QCString | g_warnlogFile |
static bool | g_warnlogTemp = false |
static std::atomic_bool | g_warnStat = false |
static std::mutex | g_mutex |
|
static |
Definition at line 109 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 159 of file message.cpp.
References g_errorStr, g_warnFile, and handle_warn_as_error().
Referenced by err_fmt().
void err_full_ | ( | const QCString & | file, |
int | line, | ||
fmt::string_view | fmt, | ||
fmt::format_args | args ) |
Definition at line 167 of file message.cpp.
References format_warn(), and g_errorStr.
Referenced by err_full_fmt().
void finishWarnExit | ( | ) |
Definition at line 276 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 43 of file message.cpp.
References Config_getBool, QCString::data(), g_mutex, g_warnBehavior, g_warnFile, g_warnFormat, g_warnlogFile, g_warnStat, QCString::isEmpty(), QCString::length(), msg, QCString::setNum(), and substitute().
Referenced by do_warn(), and err_full_().
|
static |
Definition at line 88 of file message.cpp.
References Config_getBool, QCString::data(), g_mutex, g_warnBehavior, g_warnFile, g_warnlogFile, g_warnStat, QCString::length(), and qPrint().
Referenced by do_warn(), err_(), and warn_uncond_().
void initWarningFormat | ( | ) |
Definition at line 218 of file message.cpp.
References Config_getEnum, Config_getString, FileInfo::dirPath(), 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(), and Portable::pid().
Referenced by checkConfiguration().
void msg_ | ( | fmt::string_view | fmt, |
fmt::format_args | args ) |
Definition at line 117 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 174 of file message.cpp.
References Config_getBool, g_errorStr, g_mutex, g_warnFile, and g_warnlogFile.
Referenced by term_fmt().
void warn_ | ( | WarningType | type, |
const QCString & | file, | ||
int | line, | ||
fmt::string_view | fmt, | ||
fmt::format_args | args ) |
Definition at line 132 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 196 of file message.cpp.
References g_warnLineFormat, QCString::isEmpty(), QCString::setNum(), and substitute().
Referenced by addMemberFunction(), checkPageRelations(), computePageRelations(), and findGlobalMember().
void warn_uncond_ | ( | fmt::string_view | fmt, |
fmt::format_args | args ) |
Definition at line 151 of file message.cpp.
References g_warnFile, g_warningStr, and handle_warn_as_error().
Referenced by warn_uncond_fmt().
|
static |
Definition at line 33 of file message.cpp.
Referenced by err_(), err_full_(), initWarningFormat(), and term_().
|
static |
Definition at line 39 of file message.cpp.
Referenced by format_warn(), handle_warn_as_error(), msg_(), and term_().
|
static |
Definition at line 35 of file message.cpp.
Referenced by finishWarnExit(), format_warn(), handle_warn_as_error(), and initWarningFormat().
|
static |
Definition at line 34 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 30 of file message.cpp.
Referenced by format_warn(), and initWarningFormat().
|
static |
Definition at line 32 of file message.cpp.
Referenced by initWarningFormat(), warn_(), and warn_uncond_().
|
static |
Definition at line 31 of file message.cpp.
Referenced by initWarningFormat(), and warn_line().
|
static |
Definition at line 36 of file message.cpp.
Referenced by finishWarnExit(), format_warn(), handle_warn_as_error(), initWarningFormat(), and term_().
|
static |
Definition at line 37 of file message.cpp.
Referenced by finishWarnExit(), and initWarningFormat().
|
static |
Definition at line 38 of file message.cpp.
Referenced by finishWarnExit(), format_warn(), and handle_warn_as_error().