The docparser.cpp
File Reference
Included Headers
Functions Index
IDocParserPtr | createDocParser () |
factory function to create a parser More... | |
static QCString | extractCopyDocId (const char *data, size_t &j, size_t len) |
static size_t | isCopyBriefOrDetailsCmd (const char *data, size_t i, size_t len, bool &brief) |
static size_t | isVerbatimSection (const char *data, size_t i, size_t len, QCString &endMarker) |
static size_t | skipToEndMarker (const char *data, size_t i, size_t len, const QCString &endMarker) |
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, bool autolinkSupport) |
IDocNodeASTPtr | validatingParseTitle (IDocParser &parserIntf, const QCString &fileName, int lineNr, const QCString &input) |
IDocNodeASTPtr | validatingParseText (IDocParser &parserIntf, const QCString &input) |
IDocNodeASTPtr | createRef (IDocParser &parserIntf, const QCString &target, const QCString &context, const QCString &srcFile, int srcLine) |
void | docFindSections (const QCString &input, const Definition *d, const QCString &fileName) |
Macro Definitions Index
#define | AUTO_TRACE(...) (void)0 |
#define | AUTO_TRACE_ADD(...) (void)0 |
#define | AUTO_TRACE_EXIT(...) (void)0 |
#define | CHECK_FOR_COMMAND(str, action) ... |
Functions
createDocParser()
|
factory function to create a parser
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()
|
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.
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.
extractCopyDocId()
| static |
Definition at line 1678 of file docparser.cpp.
References FALSE, literal_at and TRUE.
Referenced by DocParser::processCopyDoc.
isCopyBriefOrDetailsCmd()
| static |
Definition at line 1755 of file docparser.cpp.
References CHECK_FOR_COMMAND, FALSE and TRUE.
Referenced by DocParser::processCopyDoc.
isVerbatimSection()
| static |
Definition at line 1766 of file docparser.cpp.
Reference CHECK_FOR_COMMAND.
Referenced by DocParser::processCopyDoc.
skipToEndMarker()
| static |
Definition at line 1790 of file docparser.cpp.
References QCString::data, QCString::length and qstrncmp.
Referenced by DocParser::processCopyDoc.
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.
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.
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
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.
Macro Definitions
AUTO_TRACE
|
Definition at line 47 of file docparser.cpp.
AUTO_TRACE_ADD
|
Definition at line 48 of file docparser.cpp.
AUTO_TRACE_EXIT
|
Definition at line 49 of file docparser.cpp.
CHECK_FOR_COMMAND
|
- Value
-
do if ((i+sizeof(str)<len) && literal_at(data+i+1,str)) \ { j=i+sizeof(str); action; } while(0)
Definition at line 1751 of file docparser.cpp.
Referenced by isCopyBriefOrDetailsCmd and isVerbatimSection.
Generated via doxygen2docusaurus by Doxygen 1.14.0.