|
Doxygen
|
#include <src/code.h>
Classes | |
| struct | Private |
Public Member Functions | |
| CCodeParser () | |
| ~CCodeParser () override | |
| void | parseCode (OutputCodeList &codeOutIntf, const QCString &scopeName, const QCString &input, SrcLangExt lang, bool stripCodeComments, const CodeParserOptions &options) override |
| Parses a source file or fragment with the goal to produce highlighted and cross-referenced output. | |
| void | resetCodeParserState () override |
| Resets the state of the code parser. | |
| void | setInsideCodeLine (bool inp) |
| bool | insideCodeLine () const |
Private Attributes | |
| std::unique_ptr< Private > | p |
| CCodeParser::CCodeParser | ( | ) |
Definition at line 4053 of file code.l.
References CCodeParser(), Debug::isFlagSet(), Debug::Lex_code, p, and resetCodeParserState().
Referenced by CCodeParser().
|
override |
| bool CCodeParser::insideCodeLine | ( | ) | const |
|
overridevirtual |
Parses a source file or fragment with the goal to produce highlighted and cross-referenced output.
| [in] | codeOutList | interface for writing the result. |
| [in] | scopeName | Name of scope to which the code belongs. |
| [in] | input | Actual code in the form of a string |
| [in] | lang | The programming language of the code fragment. |
| [in] | stripCodeComments | signals whether or not for the code block the doxygen comments should be stripped. |
| [in] | options | Additional options to configure the parser. |
Implements CodeParserInterface.
Definition at line 4091 of file code.l.
References FileDef::absFilePath(), CodeParserOptions::collectXRefs(), Config_getBool, convertNameToFile(), countLines(), createFileDef(), QCString::data(), DBG_CTX, endCodeLine(), CodeParserOptions::endLine(), CodeParserOptions::exampleName(), FALSE, CodeParserOptions::fileDef(), FileDef::fileName(), getResolvedNamespace(), CodeParserOptions::inlineFragment(), QCString::isEmpty(), CodeParserOptions::isExample(), Debug::Lex_code, CodeParserOptions::memberDef(), Definition::name(), p, qPrint(), CodeParserOptions::searchCtx(), setCurrentDoc(), setParameterList(), CodeParserOptions::showLineNumbers(), startCodeLine(), CodeParserOptions::startLine(), OutputCodeList::stripCodeComments(), and TRUE.
|
overridevirtual |
Resets the state of the code parser.
Since multiple code fragments can together form a single example, an explicit function is used to reset the code parser state.
Implements CodeParserInterface.
Definition at line 4067 of file code.l.
Referenced by CCodeParser().
| void CCodeParser::setInsideCodeLine | ( | bool | inp | ) |
|
private |
Definition at line 47 of file code.h.
Referenced by CCodeParser(), insideCodeLine(), parseCode(), resetCodeParserState(), setInsideCodeLine(), and ~CCodeParser().