The message.h
File Reference
Included Headers
Namespaces Index
namespace | fmt |
Classes Index
struct | formatter<T> |
struct | formatter<QCString> |
struct | formatter<Protection> |
adds support for formatting Protected More... | |
struct | formatter<Specifier> |
struct | formatter<MethodTypes> |
adds support for formatting MethodTypes More... | |
struct | formatter<RelatesType> |
adds support for formatting RelatesType More... | |
struct | formatter<Relationship> |
adds support for formatting RelationShip More... | |
struct | formatter<SrcLangExt> |
adds support for formatting SrcLangExt More... | |
struct | formatter<MemberType> |
adds support for formatting MemberType More... | |
struct | formatter<TypeSpecifier> |
adds support for formatting TypeSpecifier More... | |
struct | formatter<EntryType> |
struct | formatter<MemberListType> |
adds support for formatting MemberListType More... | |
Enumerations Index
enum class | WarningType { ... } |
Functions Index
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 | initWarningFormat () |
void | warn_flush () |
void | finishWarnExit () |
template <typename ... Args> | |
void | err_fmt (fmt::format_string< Args... > fmt, Args &&... args) |
template <typename ... Args> | |
void | err_full_fmt (const QCString &file, int line, fmt::format_string< Args... > fmt, Args &&... args) |
template <typename ... Args> | |
void | term_fmt (fmt::format_string< Args... > fmt, Args &&... args) |
template <typename ... Args> | |
void | msg_fmt (fmt::format_string< Args... > fmt, Args &&... args) |
template <typename ... Args> | |
void | warn_fmt (WarningType type, const QCString &file, int line, fmt::format_string< Args... > fmt, Args &&... args) |
template <typename ... Args> | |
void | warn_uncond_fmt (fmt::format_string< Args... > fmt, Args &&... args) |
template <std::size_t N> | |
constexpr bool | has_newline_at_end (const char(&str)[N]) |
Macro Definitions Index
#define | msg_no_newline_allowed(x) static_assert(!has_newline_at_end(x),"text: \"" x "\" should not have \\n at end"); |
#define | msg_newline_required(x) static_assert(has_newline_at_end(x),"text: \"" x "\" should have \\n at end"); |
#define | msg(fmt, ...) msg_fmt(FMT_STRING(fmt),##__VA_ARGS__) |
#define | warn(file, line, fmt, ...) ... |
#define | warn_undoc(file, line, fmt, ...) ... |
#define | warn_incomplete_doc(file, line, fmt, ...) ... |
#define | warn_doc_error(file, line, fmt, ...) ... |
#define | warn_layout(file, line, fmt, ...) ... |
#define | warn_uncond(fmt, ...) ... |
#define | err(fmt, ...) ... |
#define | err_full(file, line, fmt, ...) ... |
#define | term(fmt, ...) ... |
Functions
err_()
|
Declaration at line 37 of file message.h, definition at line 175 of file message.cpp.
References checkWarnMessage, g_errorStr, g_mutex, g_warnFile and handle_warn_as_error.
Referenced by err_fmt.
err_fmt()
|
err_full_()
|
Declaration at line 38 of file message.h, definition at line 186 of file message.cpp.
References format_warn and g_errorStr.
Referenced by err_full_fmt.
err_full_fmt()
|
finishWarnExit()
|
Declaration at line 43 of file message.h, definition at line 295 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.
has_newline_at_end()
| constexpr |
Definition at line 83 of file message.h.
initWarningFormat()
|
Declaration at line 41 of file message.h, definition at line 237 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.
msg_()
|
Declaration at line 34 of file message.h, definition at line 130 of file message.cpp.
References Config_getBool, Debug::elapsedTime, g_mutex, Debug::isFlagSet and Debug::Time.
Referenced by msg_fmt.
msg_fmt()
|
term_()
|
Declaration at line 39 of file message.h, definition at line 193 of file message.cpp.
References checkWarnMessage, Config_getBool, g_errorStr, g_mutex, g_warnFile and g_warnlogFile.
Referenced by term_fmt.
term_fmt()
|
warn_()
|
Declaration at line 35 of file message.h, definition at line 145 of file message.cpp.
References Config_getBool, do_warn, DocError, g_warningStr, Generic, IncompleteDoc, Layout and Undocumented.
Referenced by warn_fmt.
warn_flush()
|
Declaration at line 42 of file message.h, definition at line 230 of file message.cpp.
Reference g_warnFile.
Referenced by Statistics::end.
warn_fmt()
|
warn_line()
|
Declaration at line 40 of file message.h, definition at line 215 of file message.cpp.
References g_warnLineFormat, QCString::isEmpty, QCString::setNum and substitute.
Referenced by addMemberFunction, checkPageRelations, computePageRelations and findGlobalMember.
warn_uncond_()
|
Declaration at line 36 of file message.h, definition at line 164 of file message.cpp.
References checkWarnMessage, g_errorStr, g_mutex, g_warnFile, g_warningStr and handle_warn_as_error.
Referenced by warn_uncond_fmt.
warn_uncond_fmt()
|
Definition at line 76 of file message.h.
Reference warn_uncond_.
Macro Definitions
err
|
- Value
-
do { \ msg_newline_required(fmt); \ err_fmt(FMT_STRING(fmt),##__VA_ARGS__); \ } while (0)
Definition at line 127 of file message.h.
Referenced by MemberDefImpl::_writeReimplements, FileDefImpl::acquireFileVersion, DefinitionImpl::addInnerCompound, addValidAliasToMap, adjustBoolSetting, adjustColorStyleSetting, adjustConfiguration, adjustStringSetting, RTFGenerator::beginRTFDocument, bindIntParameter, bindTextParameter, Config::checkAndCorrect, checkFileName, checkList, checkPngResult, classInheritedProtectionLevel, convertMapFile, DotFilePatcher::convertMapFile, copyExtraFiles, copyFile, copyIcon, copyLatexStyleSheet, copyLogo, ResourceMgr::copyResourceAs, copyStyleSheet, MemberList::countDecMembers, createCroppedEPS, createCroppedPDF, createDVIFile, createEPSbboxFile, PerlModGenerator::createOutputDir, PerlModGenerator::createOutputFile, createPNG, createPostscriptFile, HtmlHelp::Private::createProjectFile, DotManager::createRunner, FlowChart::createSVG, createSVGFromPDF, createSVGFromPDFviaInkscape, RTFGenerator::decIndentLevel, NamespaceLinkedRefMap::declVisible, elemIsVisible, Htags::execute, extractBoundingBox, fileToString, DocParser::findAndCopyImage, FlowChart::findLabel, finishWarnExit, generateDEF, generateFormula, generateOutput, CitationManager::generatePage, generateSqlite3, generateXML, generateXMLForClass, generateXMLForConcept, generateXMLForDir, generateXMLForFile, generateXMLForGroup, generateXMLForModule, generateXMLForNamespace, generateXMLForPage, FilterCache::getFileContentsPipe, DocPara::handleShowDate, hasNonReferenceNestedGroupRec, hasNonReferenceNestedNamespaceRec, hasNonReferenceSuperClassRec, LatexDocVisitor::incIndentLevel, RTFDocVisitor::incIndentLevel, RTFGenerator::incIndentLevel, RTFGenerator::init, initializeTables, initializeViews, initWarningFormat, CitationManager::insertCrossReferencesForBibFile, FileDefImpl::insertMember, GroupDefImpl::insertMember, NamespaceDefImpl::insertMember, ClassDefImpl::internalInsertMember, ClassDefImpl::isBaseClass, ClassDefImpl::isSubClass, VhdlDocGen::isSubClass, loadExtensions, Htags::loadFilemap, loadStylesheet, openDbConnection, DocbookDocVisitor::operator(), DocbookDocVisitor::operator(), HtmlDocVisitor::operator(), HtmlDocVisitor::operator(), LatexDocVisitor::operator(), LatexDocVisitor::operator(), PerlModDocVisitor::operator(), PerlModDocVisitor::operator(), PerlModDocVisitor::operator(), RTFDocVisitor::operator(), RTFDocVisitor::operator(), TextDocVisitor::operator(), XmlDocVisitor::operator(), DotGraph::prepareDotFile, prepareStatement, preProcessFile, RTFGenerator::preProcessFileInplace, DotRunner::readBoundingBox, readCodeFragment, readConfiguration, readInputFile, readTagFile, readTextFileByName, FileDefImpl::removeMember, GroupDefImpl::removeMember, replaceVariables, resetPDFSize, DotFilePatcher::run, runHtmlHelpCompiler, runQHelpGenerator, StyleData::setStyle, showDate, SysTimeKeeper::stop, testRTFOutput, updateEPSBoundingBox, updateLanguageMapping, SearchIndexExternal::write, ResourceMgr::writeCategory, writeCombineScript, MemberDefImpl::writeDeclaration, writeDefaultLayoutFile, FileDefImpl::writeDetailedDescription, writeDiaGraphFromFile, ConceptDefImpl::writeDocumentation, DirDefImpl::writeDocumentation, FileDefImpl::writeDocumentation, GroupDefImpl::writeDocumentation, MemberList::writeDocumentation, ModuleDefImpl::writeDocumentation, NamespaceDefImpl::writeDocumentation, ClassDefImpl::writeDocumentationContents, HtmlGenerator::writeExternalSearchPage, ClassDiagram::writeFigure, FlowChart::writeFlowChart, writeJavasScriptSearchDataPage, MemberList::writePlainDeclarations, HtmlGenerator::writeSearchPage, DefinitionImpl::writeSourceDef, HtmlGenerator::writeStyleInfo and writeTagFile.
err_full
|
- Value
-
do { \ msg_no_newline_allowed(fmt); \ err_full_fmt(file,line,FMT_STRING(fmt),##__VA_ARGS__); \ } while (0)
Definition at line 132 of file message.h.
Referenced by NamespaceDefImpl::compoundTypeString, do_mscgen_generate, DotRunner::run, runPlantumlContent, writeDiaGraphFromFile and writeMscGraphFromFile.
msg
|
Definition at line 94 of file message.h.
Referenced by MemberDefImpl::_writeCallerGraph, MemberDefImpl::_writeCallGraph, FileDefImpl::acquireFileVersion, adjustConfiguration, Statistics::begin, checkAndUpdatePath, devUsage, anonymous{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, readConfiguration, readDir, readIncludeFile, readTagFile, reportError, DotManager::run, runPlantumlContent, AutoTrace::setExit, setTranslator, stopDoxygen, LayoutNavEntry::url, usage, version, DirDefImpl::writeDirectoryGraph, ClassDefImpl::writeDocumentationForInnerClasses, GroupDefImpl::writeGroupGraph, writeIndex and writeIndexHierarchyEntries.
msg_newline_required
|
msg_no_newline_allowed
|
term
|
- Value
-
do { \ msg_newline_required(fmt); \ term_fmt(FMT_STRING(fmt),##__VA_ARGS__); \ } while (0)
Definition at line 137 of file message.h.
Referenced by SearchIndexInfo::add, Qhp::addContentsItem, addTillEndOfString, adjustConfiguration, checkPageRelations, compareDoxyfile, computePageRelations, createOutputDirectory, createSubDirs, generateConfigFile, FormulaManager::generateImages, generateOutput, DocbookGenerator::init, HtmlGenerator::init, LatexGenerator::init, ManGenerator::init, RTFGenerator::init, Crawlmap::initialize, DocSets::initialize, EclipseHelp::initialize, HtmlHelp::initialize, HtmlHelpRecoder::initialize, Qhp::initialize, Sitemap::initialize, parseInput, DotGraph::prepareDotFile, processUntilMatchingTerminator, OutputGenerator::startPlainFile, transcodeCharacterBuffer, writeDotGraphFromFile, writeDotImageMapFromFile, ClassDiagram::writeFigure, DotGfxHierarchyTable::writeGraph, writeJavasScriptSearchDataPage, writeLatexMakefile and writeMakeBat.
warn
|
- Value
-
do { \ msg_no_newline_allowed(fmt); \ warn_fmt(WarningType::Generic,file,line,FMT_STRING(fmt),##__VA_ARGS__); \ } while (0)
Definition at line 97 of file message.h.
Referenced by addAnchor, addClassToGroups, addConceptToGroups, addDirToGroups, ModuleManager::addDocs, addExampleToGroups, addGroupToGroups, addIncludeFile, addMemberDocs, addMemberFunction, addMemberToGroups, addModuleToGroups, addNamespaceToGroups, addRelatedPage, addSection, addXRefItem, buildExampleList, buildFileList, buildFunctionList, buildGroupListFiltered, buildInterfaceAndServiceList, checkBlocks, checkFormula, DocGroup::close, convertCppComments, decrLevel, endCondSection, endCondSection, DocGroup::enterCompound, anonymous{tagreader.cpp}::TagFileParser::error, Markdown::Private::extractTitleId, findClassRelation, findDefineDocumentation, findDirDocumentation, findEnumDocumentation, findGlobalMember, findMainPage, findMember, getConvertLatexMacro, MemberDefImpl::getOutputFileBase, DocPara::handleCite, DocPara::handleCommand, DocPara::handleDoxyConfig, handleElse, handleElseIf, handleEndIf, handleEndParBlock, handleExample, handleFileInfoResult, handleInheritanceGraph, handleMemberOf, vhdl::parser::VhdlErrorHandler::handleOtherError, handleParBlock, vhdl::parser::VhdlErrorHandler::handleParseError, handleRelated, handleRelatedAlso, handleSubpage, handleToc, vhdl::parser::VhdlErrorHandler::handleUnexpectedToken, CitationManager::insertCrossReferencesForBibFile, ClassDefImpl::internalInsertMember, DocGroup::leaveFile, vhdl::parser::VhdlTokenManagerErrorHandler::lexicalError, vhdl::parser::VhdlTokenManagerErrorHandler::lexicalError, loadExtensions, loadStylesheet, otherCaseDone, CondParser::parse, CommentScanner::parseCommentBlock, parseIncludeOptions, parseMain, parsePrototype, parsePrototype, pop_state, pop_state, pop_state, Preprocessor::processFile, processSection, readIncludeFile, resolveClassNestingRelations, subrHandleCommentBlock, substituteKeywords, tryAddEnumDocsToGroupMember, MemberDefImpl::virtualness, MemberDefImpl::warnIfUndocumented, writeDirTreeNode, writeExceptionListImpl and writeGroupTreeNode.
warn_doc_error
|
- Value
-
do { \ msg_no_newline_allowed(fmt); \ warn_fmt(WarningType::DocError,file,line,FMT_STRING(fmt),##__VA_ARGS__); \ } while (0)
Definition at line 112 of file message.h.
Referenced by DocParser::checkArgumentName, DocParser::checkRetvalName, DocParser::checkUnOrMultipleDocumentedParams, DocParser::defaultHandleToken, DocAnchor::DocAnchor, DocCite::DocCite, DocEmoji::DocEmoji, DocFormula::DocFormula, DocHtmlCaption::DocHtmlCaption, DocRef::DocRef, DocParser::errorHandleDefaultToken, DocParser::findAndCopyImage, DocParser::handleAHref, DocParser::handleAnchor, DocPara::handleCite, DocPara::handleCommand, DocPara::handleDoxyConfig, DocPara::handleEmoji, DocPara::handleFile, DocPara::handleHtmlEndTag, DocPara::handleHtmlStartTag, DocPara::handleIFile, DocPara::handleILine, DocParser::handleImage, DocParser::handleImg, DocPara::handleInclude, DocPara::handleIncludeOperator, DocParser::handleInternalRef, DocPara::handleLink, DocParser::handleLinkedWord, DocParser::handlePrefix, DocPara::handleRef, DocPara::handleSection, DocPara::handleShowDate, DocPara::handleStartCode, DocParser::handleStyleArgument, DocParser::handleStyleLeave, DocParser::handleUnclosedStyleCommands, DocDiaFile::parse, DocDotFile::parse, DocHRef::parse, DocHtmlBlockQuote::parse, DocHtmlCaption::parse, DocHtmlDescList::parse, DocHtmlDescTitle::parse, DocHtmlDetails::parse, DocHtmlHeader::parse, DocHtmlList::parse, DocHtmlRow::parse, DocHtmlSummary::parse, DocHtmlTable::parse, DocInclude::parse, DocIncOperator::parse, DocIndexEntry::parse, DocInternal::parse, DocLink::parse, DocMscFile::parse, DocPara::parse, DocParamList::parse, DocPlantUmlFile::parse, DocRef::parse, DocRoot::parse, DocSecRefItem::parse, DocSecRefList::parse, DocSection::parse, DocText::parse, DocHtmlList::parseXml, DocHtmlRow::parseXml, DocParamList::parseXml, DocParser::processCopyDoc, readIncludeFile, DocParser::readTextFileByName and MemberDefImpl::warnIfUndocumentedParams.
warn_incomplete_doc
|
- Value
-
do { \ msg_no_newline_allowed(fmt); \ warn_fmt(WarningType::IncompleteDoc,file,line,FMT_STRING(fmt),##__VA_ARGS__); \ } while (0)
Definition at line 107 of file message.h.
Referenced by DocParser::checkUnOrMultipleDocumentedParams.
warn_layout
|
- Value
-
do { \ msg_no_newline_allowed(fmt); \ warn_fmt(WarningType::Layout,file,line,FMT_STRING(fmt),##__VA_ARGS__); \ } while (0)
Definition at line 117 of file message.h.
Referenced by LayoutParser::error, mergeDocEntryLists, LayoutParser::startElement and LayoutParser::startNavEntry.
warn_uncond
|
- Value
-
do { \ msg_newline_required(fmt); \ warn_uncond_fmt(FMT_STRING(fmt),##__VA_ARGS__); \ } while (0)
Definition at line 122 of file message.h.
Referenced by MemberDefImpl::_writeCallerGraph, MemberDefImpl::_writeCallGraph, Config::checkAndCorrect, checkMarkdownMainfile, computeVerifiedDotPath, getCurrentDateTime, FormulaManager::initFromRepository, minClassDistance, parseInput, readDir, readFileOrDirectory, searchInputFiles, Config::updateObsolete, HtmlEntityMapper::validate, ClassDefImpl::writeCollaborationGraph, GroupDefImpl::writeGroupGraph, FileDefImpl::writeIncludedByGraph, FileDefImpl::writeIncludeGraph and ClassDefImpl::writeInheritanceGraph.
warn_undoc
|
- Value
-
do { \ msg_no_newline_allowed(fmt); \ warn_fmt(WarningType::Undocumented,file,line,FMT_STRING(fmt),##__VA_ARGS__); \ } while (0)
Definition at line 102 of file message.h.
Referenced by computeClassRelations, findMember, MemberDefImpl::warnIfUndocumented and warnUndocumentedNamespaces.
Generated via doxygen2docusaurus by Doxygen 1.14.0.