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}. | |
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) |
Trims the deadwood out of str. | |
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().
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 297 of file doc.cpp.
References DocPrivate::extra.
void Doc::constructExtra | ( | ) | const |
Definition at line 302 of file doc.cpp.
References DocPrivate::constructExtra().
|
nodiscard |
|
nodiscard |
Definition at line 258 of file doc.cpp.
References DocPrivate::extra.
|
nodiscard |
Definition at line 253 of file doc.cpp.
References DocPrivate::extra.
|
nodiscard |
Definition at line 263 of file doc.cpp.
References DocPrivate::extra.
|
static |
Definition at line 308 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 |
Returns true if the set of metacommands used in the doc comment contains {internal}.
Definition at line 219 of file doc.cpp.
Referenced by CppCodeParser::processMetaCommand().
|
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 280 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(), hasTooManyTopics(), XmlGenerator::linkForNode(), nodeToSynopsisTag(), ClangCodeParser::parse_cpp_file(), CppCodeParser::processMetaCommand(), CppCodeParser::processQmlProperties(), CppCodeParser::processTopicCommand(), Node< _Tp >::setDoc(), and startLocation().
|
nodiscard |
Definition at line 292 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 403 of file doc.cpp.
References Quoter::reset().
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 268 of file doc.cpp.
References DocPrivate::constructExtra(), and DocPrivate::extra.
|
nodiscard |
Definition at line 274 of file doc.cpp.
References DocPrivate::constructExtra(), and DocPrivate::extra.
Definition at line 286 of file doc.cpp.
References DocPrivate::constructExtra(), and DocPrivate::extra.
|
static |
All the heap allocated variables are deleted.
Definition at line 361 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 238 of file doc.cpp.
References DocPrivate::m_topics.
Referenced by ClangCodeParser::parse_cpp_file(), and CppCodeParser::processQmlProperties().
Trims the deadwood out of str.
i.e., this function cleans up str.
Definition at line 371 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().
|
related |