The docparser.h
File Reference
Included Headers
Classes Index
class | IDocParser |
opaque parser interface More... | |
class | IDocNodeAST |
opaque representation of the abstract syntax tree (AST) More... | |
Typedefs Index
using | IDocParserPtr = std::unique_ptr< IDocParser > |
pointer to parser interface More... | |
using | IDocNodeASTPtr = std::unique_ptr< IDocNodeAST > |
Functions Index
IDocParserPtr | createDocParser () |
factory function to create a parser More... | |
IDocNodeASTPtr | validatingParseDoc (IDocParser &parserIntf, const QCString &fileName, int startLine, const Definition *ctx, const MemberDef *md, const QCString &input, bool indexWords, bool isExample, const QCString &exampleName, bool singleLine, bool linkFromIndex, bool markdownSupport=Config_getBool(MARKDOWN_SUPPORT), bool autolinkSupport=Config_getBool(AUTOLINK_SUPPORT)) |
IDocNodeASTPtr | validatingParseText (IDocParser &parser, const QCString &input) |
IDocNodeASTPtr | validatingParseTitle (IDocParser &parserIntf, const QCString &fileName, int lineNr, const QCString &input) |
IDocNodeASTPtr | createRef (IDocParser &parser, const QCString &target, const QCString &context, const QCString &srcFile="", int srcLine=-1) |
void | docFindSections (const QCString &input, const Definition *d, const QCString &fileName) |
Typedefs
IDocNodeASTPtr
|
Definition at line 57 of file docparser.h.
IDocParserPtr
|
pointer to parser interface
Definition at line 41 of file docparser.h.
Functions
createDocParser()
|
factory function to create a parser
Declaration at line 44 of file docparser.h, definition at line 55 of file docparser.cpp.
Referenced by addPerlModDocBlock, convertMapFile, RTFGenerator::endIndexSection, generateBriefDoc, OutputList::generateDoc, generateHtmlOutput, getSQLDocBlock, parseCommentAsHtml, parseCommentAsText, OutputList::parseText, replaceRef, LayoutNavEntry::url, ConceptDefImpl::writeBriefDescription, DirDefImpl::writeBriefDescription, FileDefImpl::writeBriefDescription, GroupDefImpl::writeBriefDescription, ModuleDefImpl::writeBriefDescription, NamespaceDefImpl::writeBriefDescription, MemberDefImpl::writeDeclaration, ClassDefImpl::writeDeclarationLink, ConceptDefImpl::writeDeclarationLink, ModuleDefImpl::writeDeclarationLink, MemberList::writePlainDeclarations and writeXMLDocBlock.
createRef()
|
Declaration at line 102 of file docparser.h, definition at line 2163 of file docparser.cpp.
References DocParser::context, DocParserContext::fileName, QCString::isEmpty, DocTokenizer::setLineNr and DocParser::tokenizer.
Referenced by convertMapFile, replaceRef and LayoutNavEntry::url.
docFindSections()
|
Searches for section and anchor commands in the input Sections found will be added to the SectionManager.
Declaration at line 109 of file docparser.h, definition at line 2176 of file docparser.cpp.
References DocTokenizer::findSections and DocParser::tokenizer.
Referenced by ClassDefImpl::findSectionsInDocumentation, ConceptDefImpl::findSectionsInDocumentation, FileDefImpl::findSectionsInDocumentation, GroupDefImpl::findSectionsInDocumentation, MemberDefImpl::findSectionsInDocumentation, MemberGroup::findSectionsInDocumentation, ModuleDefImpl::findSectionsInDocumentation, NamespaceDefImpl::findSectionsInDocumentation and PageDefImpl::findSectionsInDocumentation.
validatingParseDoc()
|
Main entry point for the comment block parser.
- Parameters
-
parserIntf The parser object created via createDocParser()
fileName File in which the documentation block is found (or the name of the example file in case isExample is TRUE).
startLine Line at which the documentation block is found.
ctx Class or namespace to which this block belongs.
md Member definition to which the documentation belongs. Can be 0.
input String representation of the documentation block.
indexWords Indicates whether or not words should be put in the search index.
isExample TRUE if the documentation belongs to an example.
exampleName Base name of the example file (0 if isExample is FALSE).
singleLine Output should be presented on a single line, so without starting a new paragraph at the end.
linkFromIndex TRUE if the documentation is generated from an index page. In this case context is not used to determine the relative path when making a link.
markdownSupport TRUE if the input needs to take markdown markup into account.
autolinkSupport TRUE if the input need to perform auto linking of words
- Returns
An object representing the abstract syntax tree. Ownership of the pointer is handed over to the caller.
Declaration at line 83 of file docparser.h, definition at line 1922 of file docparser.cpp.
References Definition::anchor, QCString::at, DocParserContext::autolinkSupport, DocParser::checkUnOrMultipleDocumentedParams, DocParser::context, DocParserContext::context, QCString::data, Definition::definitionType, MemberDef::detectUndocumentedParams, DocParserContext::exampleName, FALSE, DocParserContext::fileName, Definition::getLanguage, getLanguageFromFileName, getLanguageSpecificSeparator, Definition::getOutputFileBase, Doxygen::globalScope, DocParserContext::hasParamCommand, DocParserContext::hasReturnCommand, DocParserContext::includeFileLength, DocParserContext::includeFileOffset, DocParserContext::includeFileText, DocTokenizer::init, DocParserContext::initialStyleStack, DocParserContext::inSeeBlock, DocParserContext::insideHtmlLink, QCString::isEmpty, DocParserContext::isExample, Debug::isFlagSet, MemberDef::isFunction, DocParserContext::lang, QCString::length, DocParserContext::markdownSupport, DocParserContext::memberDef, Definition::name, DocParserContext::nodeStack, DocParserContext::paramsFound, Debug::PrintTree, DocParser::processCopyDoc, Definition::qualifiedName, relativePathToRoot, DocParserContext::relPath, DocTokenizer::resetToken, DocParserContext::retvalsFound, DocParserContext::scope, Doxygen::searchIndex, DocParserContext::searchUrl, DocTokenizer::setLineNr, DocParserContext::styleStack, substitute, toGroupDef, DocParserContext::token, DocParser::tokenizer, toPageDef, Definition::TypeClass, Definition::TypeGroup, Definition::TypeNamespace, Definition::TypePage and DocParserContext::xmlComment.
Referenced by addPerlModDocBlock, generateBriefDoc, OutputList::generateDoc, generateHtmlOutput, getSQLDocBlock, parseCommentAsText, ConceptDefImpl::writeBriefDescription, DirDefImpl::writeBriefDescription, FileDefImpl::writeBriefDescription, GroupDefImpl::writeBriefDescription, ModuleDefImpl::writeBriefDescription, NamespaceDefImpl::writeBriefDescription, MemberDefImpl::writeDeclaration, ClassDefImpl::writeDeclarationLink, ConceptDefImpl::writeDeclarationLink, ModuleDefImpl::writeDeclarationLink, MemberList::writePlainDeclarations and writeXMLDocBlock.
validatingParseText()
|
Main entry point for parsing simple text fragments. These fragments are limited to words, whitespace and symbols.
Declaration at line 94 of file docparser.h, definition at line 2105 of file docparser.cpp.
References DocParserContext::autolinkSupport, Config_getBool, DocParser::context, DocParserContext::context, QCString::data, DocParserContext::exampleName, FALSE, DocParserContext::fileName, DocParserContext::hasParamCommand, DocParserContext::hasReturnCommand, DocParserContext::includeFileLength, DocParserContext::includeFileOffset, DocParserContext::includeFileText, DocTokenizer::init, DocParserContext::initialStyleStack, DocParserContext::inSeeBlock, DocParserContext::insideHtmlLink, QCString::isEmpty, DocParserContext::isExample, Debug::isFlagSet, DocParserContext::lang, DocParserContext::markdownSupport, DocParserContext::memberDef, DocParserContext::nodeStack, DocParserContext::paramsFound, Debug::PrintTree, DocParserContext::relPath, DocTokenizer::resetToken, DocParserContext::retvalsFound, DocParserContext::searchUrl, DocTokenizer::setLineNr, DocParserContext::styleStack, DocParserContext::token, DocParser::tokenizer and DocParserContext::xmlComment.
Referenced by RTFGenerator::endIndexSection and OutputList::parseText.
validatingParseTitle()
|
Main entry point for parsing titles. These allow limited markup commands
Declaration at line 98 of file docparser.h, definition at line 2053 of file docparser.cpp.
References DocParserContext::autolinkSupport, Config_getBool, DocParser::context, DocParserContext::context, DocParserContext::exampleName, FALSE, DocParserContext::fileName, DocParserContext::hasParamCommand, DocParserContext::hasReturnCommand, DocParserContext::includeFileLength, DocParserContext::includeFileOffset, DocParserContext::includeFileText, DocParserContext::initialStyleStack, DocParserContext::inSeeBlock, DocParserContext::insideHtmlLink, QCString::isEmpty, DocParserContext::isExample, Debug::isFlagSet, DocParserContext::lang, DocParserContext::markdownSupport, DocParserContext::memberDef, DocParserContext::nodeStack, DocParserContext::paramsFound, Debug::PrintTree, DocParserContext::relPath, DocTokenizer::resetToken, DocParserContext::retvalsFound, DocParserContext::searchUrl, DocParserContext::styleStack, DocParserContext::token, DocParser::tokenizer and DocParserContext::xmlComment.
Referenced by parseCommentAsHtml.
Generated via doxygen2docusaurus by Doxygen 1.14.0.