![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <doc.h>
Public Types | |
enum | Sections { NoSection = -1 , Section1 = 1 , Section2 = 2 , Section3 = 3 , Section4 = 4 } |
Public Member Functions | |
Doc ()=default | |
Doc (const Location &start_loc, const Location &end_loc, const QString &source, const QSet< QString > &metaCommandSet, const QSet< QString > &topics) | |
Parse the qdoc comment source. | |
Doc (const Doc &doc) | |
~Doc () | |
Doc & | operator= (const Doc &doc) |
const Location & | location () const |
Returns the starting location of a qdoc comment. | |
const Location & | startLocation () const |
Returns the starting location of a qdoc comment. | |
bool | isEmpty () const |
const QString & | source () const |
const Text & | body () const |
Text | briefText (bool inclusive=false) const |
Text | trimmedBriefText (const QString &className) const |
Text | legaleseText () const |
QSet< QString > | parameterNames () const |
QStringList | enumItemNames () const |
QStringList | omitEnumItemNames () const |
QSet< QString > | metaCommandsUsed () const |
TopicList | topicsUsed () const |
Returns a reference to the list of topic commands used in the current qdoc comment. | |
ArgList | metaCommandArgs (const QString &metaCommand) const |
QList< Text > | alsoList () const |
bool | hasTableOfContents () const |
bool | hasKeywords () const |
bool | hasTargets () const |
bool | isInternal () const |
Returns true if the set of metacommands used in the doc comment contains {internal}. | |
bool | isMarkedReimp () const |
Returns true if the set of metacommands used in the doc comment contains {reimp}. | |
QList< ArgPair > | overloadList () const |
Returns the list of arguments passed to the {\overload} command. | |
bool | hasOverloadCommand () const |
const QList< Atom * > & | tableOfContents () const |
const QList< int > & | tableOfContentsLevels () const |
const QList< Atom * > & | keywords () const |
const QList< Atom * > & | targets () const |
QStringMultiMap * | metaTagMap () const |
QMultiMap< ComparisonCategory, Text > * | comparesWithMap () const |
void | constructExtra () const |
Static Public Member Functions | |
static void | initialize (FileResolver &file_resolver) |
static void | terminate () |
All the heap allocated variables are deleted. | |
static void | trimCStyleComment (Location &location, QString &str) |
Replaces any asterisks used as a left margin in the comment str with spaces then trims the comment syntax from the start and end of the string, leaving only the text content. | |
static void | quoteFromFile (const Location &location, Quoter "er, ResolvedFile resolved_file) |
Related Symbols | |
(Note that these are not member symbols.) | |
ArgList | |
A list of metacommand arguments that appear in a Doc. |
enum Doc::Sections |
|
default |
Doc::Doc | ( | const Location & | start_loc, |
const Location & | end_loc, | ||
const QString & | source, | ||
const QSet< QString > & | metaCommandSet, | ||
const QSet< QString > & | topics ) |
Parse the qdoc comment source.
Build up a list of all the topic commands found including their arguments. This constructor is used when there can be more than one topic command in theqdoc comment. Normally, there is only one topic command in a qdoc comment, but in QML documentation, there is the case where the qdoc {qmlproperty} command can appear multiple times in a qdoc comment.
Definition at line 47 of file doc.cpp.
References body(), and Text::dump().
Doc::Doc | ( | const Doc & | doc | ) |
Definition at line 64 of file doc.cpp.
References operator=().
Doc::~Doc | ( | ) |
Definition at line 69 of file doc.cpp.
References DocPrivate::deref().
|
nodiscard |
Definition at line 115 of file doc.cpp.
References DocPrivate::m_text.
Referenced by Doc(), WebXMLGenerator::append(), briefText(), DocBookGenerator::generateBody(), Generator::generateBody(), and legaleseText().
|
nodiscard |
Definition at line 121 of file doc.cpp.
References body(), Atom::BriefLeft, Atom::BriefRight, and Text::subText().
Referenced by DocBookGenerator::generateHeader(), and trimmedBriefText().
|
nodiscard |
Definition at line 305 of file doc.cpp.
References DocPrivate::extra.
void Doc::constructExtra | ( | ) | const |
Definition at line 310 of file doc.cpp.
References DocPrivate::constructExtra().
|
nodiscard |
|
nodiscard |
Definition at line 266 of file doc.cpp.
References DocPrivate::extra.
|
nodiscard |
Definition at line 261 of file doc.cpp.
References DocPrivate::extra.
|
nodiscard |
Definition at line 271 of file doc.cpp.
References DocPrivate::extra.
|
static |
Definition at line 316 of file doc.cpp.
References DocParser::initialize().
Referenced by processQdocconfFile().
|
nodiscard |
Definition at line 110 of file doc.cpp.
Referenced by Node< _Tp >::hasDoc(), and Node< _Tp >::setDoc().
|
nodiscard |
|
nodiscard |
Returns true if the set of metacommands used in the doc comment contains {reimp}.
Definition at line 228 of file doc.cpp.
Referenced by Node< _Tp >::setDoc().
Definition at line 288 of file doc.cpp.
References DocPrivate::constructExtra(), and DocPrivate::extra.
|
nodiscard |
Definition at line 187 of file doc.cpp.
References Text::Text(), body(), Atom::LegaleseLeft, Atom::LegaleseRight, DocPrivate::m_hasLegalese, and Text::subText().
|
nodiscard |
Returns the starting location of a qdoc comment.
Definition at line 90 of file doc.cpp.
Referenced by WebXMLGenerator::addAtomElements(), WebXMLGenerator::append(), checkModuleInclusion(), DocBookGenerator::generateAtom(), HtmlGenerator::generateAtom(), Generator::generateBody(), DocBookGenerator::generateDocBookSynopsis(), HtmlGenerator::generateExampleFilePage(), WebXMLGenerator::generateExampleFilePage(), nodeToSynopsisTag(), ClangCodeParser::parse_cpp_file(), CppCodeParser::processMetaCommand(), CppCodeParser::processQmlProperties(), CppCodeParser::processTopicCommand(), Node< _Tp >::setDoc(), and startLocation().
Definition at line 251 of file doc.cpp.
References DocPrivate::m_metaCommandMap.
|
nodiscard |
Definition at line 300 of file doc.cpp.
References DocPrivate::extra, and DocPrivateExtra::m_metaMap.
Referenced by formatStatus(), and Node< _Tp >::nodeSortKeyOrNameLessThan().
|
nodiscard |
Definition at line 75 of file doc.cpp.
References DocPrivate::deref(), and DocPrivate::ref().
Referenced by Doc(), and Node< _Tp >::setDoc().
|
static |
Definition at line 421 of file doc.cpp.
Referenced by DocBookGenerator::generateExampleFilePage(), HtmlGenerator::generateExampleFilePage(), and WebXMLGenerator::generateExampleFilePage().
|
nodiscard |
Returns the starting location of a qdoc comment.
Definition at line 99 of file doc.cpp.
References location().
Referenced by CppCodeParser::processQmlProperties(), and CppCodeParser::processTopicCommand().
Definition at line 276 of file doc.cpp.
References DocPrivate::constructExtra(), and DocPrivate::extra.
|
nodiscard |
Definition at line 282 of file doc.cpp.
References DocPrivate::constructExtra(), and DocPrivate::extra.
Definition at line 294 of file doc.cpp.
References DocPrivate::constructExtra(), and DocPrivate::extra.
|
static |
All the heap allocated variables are deleted.
Definition at line 369 of file doc.cpp.
References DocUtilities::cmdHash, and DocUtilities::macroHash.
Referenced by processQdocconfFile().
|
nodiscard |
Returns a reference to the list of topic commands used in the current qdoc comment.
Normally there is only one, but there can be multiple {qmlproperty} commands, for example.
Definition at line 246 of file doc.cpp.
References DocPrivate::m_topics.
Referenced by ClangCodeParser::parse_cpp_file(), and CppCodeParser::processQmlProperties().
Replaces any asterisks used as a left margin in the comment str with spaces then trims the comment syntax from the start and end of the string, leaving only the text content.
Updates the location to refer to the location of the content in the original file.
Definition at line 381 of file doc.cpp.
References Location::columnNo().
Definition at line 126 of file doc.cpp.
References Atom::AutoLink, briefText(), Atom::C, Text::firstAtom(), Atom::next(), Atom::String, and Atom::type().