The CommentScanner
Class Reference
Declaration
Included Headers
Public Constructors Index
CommentScanner () | |
Public Destructor Index
~CommentScanner () | |
Public Member Functions Index
bool | parseCommentBlock (OutlineParserInterface *parser, Entry *curEntry, const QCString &comment, const QCString &fileName, int &lineNr, bool isBrief, bool isJavadocStyle, bool isInbody, Protection &prot, int &position, bool &newEntryNeeded, bool markdownEnabled, GuardedSectionStack *guards) |
Invokes the comment block parser with the request to parse a single comment block. More... | |
void | initGroupInfo (Entry *entry) |
void | enterFile (const QCString &fileName, int lineNr) |
void | leaveFile (const QCString &fileName, int lineNr) |
void | enterCompound (const QCString &fileName, int line, const QCString &name) |
void | leaveCompound (const QCString &fileName, int line, const QCString &name) |
void | open (Entry *e, const QCString &fileName, int line, bool implicit=false) |
void | close (Entry *e, const QCString &fileName, int line, bool foundInline, bool implicit=false) |
Private Member Attributes Index
std::unique_ptr< Private > | p |
Definition at line 53 of file commentscan.h.
Public Constructors
CommentScanner()
|
Declaration at line 56 of file commentscan.h, definition at line 4703 of file commentscan.l.
References Debug::isFlagSet, Debug::Lex_commentscan and p.
Public Destructor
~CommentScanner()
|
Declaration at line 57 of file commentscan.h, definition at line 4711 of file commentscan.l.
Reference p.
Public Member Functions
close()
|
Declaration at line 117 of file commentscan.h, definition at line 4934 of file commentscan.l.
Reference p.
enterCompound()
Declaration at line 114 of file commentscan.h, definition at line 4916 of file commentscan.l.
Reference p.
enterFile()
|
Declaration at line 112 of file commentscan.h, definition at line 4904 of file commentscan.l.
Reference p.
Referenced by generateHtmlForComment.
initGroupInfo()
|
Declaration at line 111 of file commentscan.h, definition at line 4898 of file commentscan.l.
Reference p.
leaveCompound()
Declaration at line 115 of file commentscan.h, definition at line 4922 of file commentscan.l.
Reference p.
leaveFile()
|
Declaration at line 113 of file commentscan.h, definition at line 4910 of file commentscan.l.
Reference p.
Referenced by generateHtmlForComment.
open()
Declaration at line 116 of file commentscan.h, definition at line 4928 of file commentscan.l.
Reference p.
parseCommentBlock()
|
Invokes the comment block parser with the request to parse a single comment block.
- Parameters
-
[in] parser The language parse that invoked this function. The comment block parse may invoke ParserInterface::parsePrototype() in order to parse the argument of a @fn command.
[in] curEntry The Entry to which the comment block belongs. Any information (like documentation) that is found in the comment block will be stored in this entry.
[in] comment A string representing the actual comment block. Note that leading *'s are already stripped from the comment block.
[in] fileName The name of the file in which the comment is found. Mainly used for producing warnings.
[inout] lineNr The line number at which the comment block was found. When the function returns it will be set to the last line parsed.
[in] isBrief TRUE iff this comment block represents a brief description.
[in] isJavadocStyle TRUE iff this comment block is in "Javadoc" style. This means that it starts as a brief description until the end of the sentences is found and then proceeds as a detailed description.
[in] isInbody TRUE iff this comment block is located in the body of a function.
[inout] prot The protection level in which this comment block was found. Commands in the comment block may override this.
[inout] position The character position within comment where the comment block starts. Typically used in case the comment block contains multiple structural commands.
[out] newEntryNeeded Boolean that is TRUE if the comment block parser finds that a the comment block finishes the entry and a new one needs to be started.
[in] markdownEnabled Indicates if markdown specific processing should be done.
[inout] guards Tracks nested conditional sections (if,ifnot,..)
- Returns
TRUE if the comment requires further processing. The parameter newEntryNeeded will typically be true in this case and position will indicate the offset inside the comment string where to proceed parsing. FALSE indicates no further processing is needed.
Declaration at line 97 of file commentscan.h, definition at line 4716 of file commentscan.l.
References addOutput, AUTO_TRACE, AUTO_TRACE_EXIT, checkFormula, comment, Debug::CommentScan, Entry::docLine, FALSE, getOverloadDocs, initParser, QCString::isEmpty, Debug::Lex_commentscan, OutputBrief, OutputDoc, p, Debug::print, qPrint, qsnprintf, setOutput, stripLeadingAndTrailingEmptyLines, Trace::trunc, warn and XRef_None.
Referenced by generateHtmlForComment and CitationManager::generatePage.
Private Member Attributes
p
|
Definition at line 120 of file commentscan.h.
Referenced by close, CommentScanner, enterCompound, enterFile, initGroupInfo, leaveCompound, leaveFile, open, parseCommentBlock and ~CommentScanner.
The documentation for this class was generated from the following files:
Generated via doxygen2docusaurus by Doxygen 1.14.0.