![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <codeparser.h>
Public Member Functions | |
CodeParser () | |
The constructor adds this code parser to the static list of code parsers. | |
virtual | ~CodeParser () |
The destructor removes this code parser from the static list of code parsers. | |
virtual void | initializeParser ()=0 |
virtual void | terminateParser () |
Terminating a code parser is trivial. | |
virtual QString | language ()=0 |
virtual QStringList | sourceFileNameFilter ()=0 |
virtual void | parseSourceFile (const Location &location, const QString &filePath, CppCodeParser &cpp_code_parser)=0 |
Static Public Member Functions | |
static void | initialize () |
All the code parsers in the static list are initialized here, after the qdoc configuration variables have been set. | |
static void | terminate () |
All the code parsers in the static list are terminated here. | |
static CodeParser * | parserForLanguage (const QString &language) |
static CodeParser * | parserForSourceFile (const QString &filePath) |
static void | setLink (Node *node, Node::LinkType linkType, const QString &arg) |
static bool | isWorthWarningAbout (const Doc &doc) |
Test for whether a doc comment warrants warnings. |
Static Public Attributes | |
static const QSet< QString > | common_meta_commands |
Static Protected Member Functions | |
static void | extractPageLinkAndDesc (QStringView arg, QString *link, QString *desc) |
Protected Attributes | |
QDocDatabase * | m_qdb {} |
Definition at line 107 of file codeparser.h.
CodeParser::CodeParser | ( | ) |
The constructor adds this code parser to the static list of code parsers.
Definition at line 23 of file codeparser.cpp.
References m_qdb, and QDocDatabase::qdocDB().
|
virtual |
The destructor removes this code parser from the static list of code parsers.
Definition at line 33 of file codeparser.cpp.
|
staticprotected |
Definition at line 92 of file codeparser.cpp.
|
static |
All the code parsers in the static list are initialized here, after the qdoc configuration variables have been set.
Definition at line 50 of file codeparser.cpp.
Referenced by processQdocconfFile().
|
pure virtual |
Implemented in QmlCodeParser.
|
static |
Test for whether a doc comment warrants warnings.
Returns true if qdoc should report that it has found something wrong with the qdoc comment in doc. Sometimes, qdoc should not report the warning, for example, when the comment contains the internal
command, which normally means qdoc will not use the comment in the documentation anyway, so there is no point in reporting warnings about it.
Definition at line 135 of file codeparser.cpp.
References InclusionFilter::processInternalDocs().
Referenced by ClangCodeParser::parse_cpp_file(), CppCodeParser::processMetaCommand(), and CppCodeParser::processTopicCommand().
|
pure virtual |
Implemented in QmlCodeParser.
|
static |
Definition at line 65 of file codeparser.cpp.
|
static |
Definition at line 74 of file codeparser.cpp.
Referenced by parseSourceFiles().
|
pure virtual |
Implemented in QmlCodeParser.
|
static |
Definition at line 117 of file codeparser.cpp.
|
pure virtual |
Implemented in QmlCodeParser.
|
static |
All the code parsers in the static list are terminated here.
Definition at line 59 of file codeparser.cpp.
Referenced by processQdocconfFile().
|
virtual |
Terminating a code parser is trivial.
Reimplemented in QmlCodeParser.
Definition at line 41 of file codeparser.cpp.
Definition at line 110 of file codeparser.h.
|
protected |
Definition at line 139 of file codeparser.h.
Referenced by CodeParser().