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 | |
void | initWarningFormat () |
void | msg (const char *fmt,...) |
static void | format_warn (const QCString &file, int line, const QCString &text) |
static void | handle_warn_as_error () |
static void | do_warn (bool enabled, const QCString &file, int line, const char *prefix, const char *fmt, va_list args) |
QCString | warn_line (const QCString &file, int line) |
void | warn_ (const QCString &file, int line, const char *fmt,...) |
void | va_warn (const QCString &file, int line, const char *fmt, va_list args) |
void | warn_undoc_ (const QCString &file, int line, const char *fmt,...) |
void | warn_incomplete_doc_ (const QCString &file, int line, const char *fmt,...) |
void | warn_doc_error_ (const QCString &file, int line, const char *fmt,...) |
void | warn_uncond_ (const char *fmt,...) |
void | err_ (const char *fmt,...) |
void | err_full_ (const QCString &file, int line, const char *fmt,...) |
void | term_ (const char *fmt,...) |
void | warn_flush () |
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 176 of file message.cpp.
References QCString::ExplicitSize, format_warn(), prefix, qstrncpy(), and QCString::rawData().
Referenced by err_full_(), va_warn(), warn_(), warn_doc_error_(), warn_incomplete_doc_(), and warn_undoc_().
void err_ | ( | const char * | fmt, |
... ) |
Definition at line 263 of file message.cpp.
References g_errorStr, g_warnFile, and handle_warn_as_error().
Referenced by err_().
|
extern |
Definition at line 272 of file message.cpp.
References do_warn(), g_errorStr, and TRUE.
Referenced by err_full_().
|
extern |
Definition at line 310 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(), and term_().
Definition at line 114 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(), qPrint(), QCString::setNum(), and substitute().
Referenced by do_warn().
|
static |
Definition at line 157 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 err_(), and warn_uncond_().
void initWarningFormat | ( | ) |
Definition at line 41 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(), and term_().
void msg | ( | const char * | fmt, |
... ) |
Definition at line 98 of file message.cpp.
References Config_getBool, Debug::elapsedTime(), g_mutex, Debug::isFlagSet(), and Debug::Time.
Referenced by MemberDefImpl::_writeCallerGraph(), MemberDefImpl::_writeCallGraph(), FileDefImpl::acquireFileVersion(), adjustConfiguration(), Statistics::begin(), checkAndUpdatePath(), devUsage(), anonymous_namespace{tagreader.cpp}::TagFileParser::error(), LayoutParser::error(), exitDoxygen(), format_warn(), generateConceptDocs(), generateConfigFile(), generateDocsForClassList(), generateExampleDocs(), generateFileDocs(), generateFileSources(), generateFormula(), generateNamespaceClassDocs(), generateNamespaceConceptDocs(), generateNamespaceDocs(), generateOutput(), generatePageDocs(), generateSqlite3(), generateXML(), generateXMLForClass(), LayoutDocManager::init(), FormulaManager::initFromRepository(), initializeTables(), initializeViews(), loadExtensions(), loadStylesheet(), LayoutDocManager::parse(), XMLParser::parse(), parseFile(), parseFilesMultiThreading(), parseInput(), VHDLOutlineParser::parseInput(), parseMain(), parseMain(), parseMain(), parseMain(), parseTagFile(), Statistics::print(), Debug::printFlags(), processData(), readDir(), readIncludeFile(), readTagFile(), reportError(), DotManager::run(), runPlantumlContent(), AutoTrace::setExit(), setTranslator(), stopDoxygen(), LayoutNavEntry::url(), usage(), version(), DirDefImpl::writeDirectoryGraph(), ClassDefImpl::writeDocumentationForInnerClasses(), GroupDefImpl::writeGroupGraph(), writeIndex(), and writeIndexHierarchyEntries().
void term_ | ( | const char * | fmt, |
... ) |
Definition at line 280 of file message.cpp.
References Config_getBool, g_errorStr, g_mutex, g_warnFile, g_warnlogFile, and qPrint().
Referenced by term_().
void va_warn | ( | const QCString & | file, |
int | line, | ||
const char * | fmt, | ||
va_list | args ) |
Definition at line 225 of file message.cpp.
References Config_getBool, do_warn(), and g_warningStr.
Referenced by warn_().
void warn_ | ( | const QCString & | file, |
int | line, | ||
const char * | fmt, | ||
... ) |
Definition at line 217 of file message.cpp.
References Config_getBool, do_warn(), and g_warningStr.
Referenced by anonymous_namespace{tagreader.cpp}::TagFileParser::error(), anonymous_namespace{tagreader.cpp}::TagFileParser::p_warn(), anonymous_namespace{tagreader.cpp}::TagFileParser::p_warn(), and warn_().
void warn_doc_error_ | ( | const QCString & | file, |
int | line, | ||
const char * | fmt, | ||
... ) |
Definition at line 246 of file message.cpp.
References Config_getBool, do_warn(), and g_warningStr.
Referenced by warn_doc_error_().
void warn_flush | ( | ) |
Definition at line 303 of file message.cpp.
References g_warnFile.
Referenced by Statistics::end(), and term_().
void warn_incomplete_doc_ | ( | const QCString & | file, |
int | line, | ||
const char * | fmt, | ||
... ) |
Definition at line 238 of file message.cpp.
References Config_getBool, do_warn(), and g_warningStr.
Referenced by warn_incomplete_doc_().
Definition at line 205 of file message.cpp.
References g_warnLineFormat, QCString::isEmpty(), QCString::setNum(), and substitute().
Referenced by addMemberFunction(), checkPageRelations(), computePageRelations(), findGlobalMember(), and term_().
void warn_uncond_ | ( | const char * | fmt, |
... ) |
Definition at line 254 of file message.cpp.
References g_warnFile, g_warningStr, and handle_warn_as_error().
Referenced by warn_uncond_().
void warn_undoc_ | ( | const QCString & | file, |
int | line, | ||
const char * | fmt, | ||
... ) |
Definition at line 230 of file message.cpp.
References Config_getBool, do_warn(), and g_warningStr.
Referenced by warn_undoc_().
|
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(), va_warn(), warn_(), warn_doc_error_(), warn_incomplete_doc_(), warn_uncond_(), and warn_undoc_().
|
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().