![]() |
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 |
| const Text & | title () 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}. | |
| bool | isAutoGenerated () const |
| Returns true if this documentation was auto-generated by QDoc rather than written by an author. | |
| void | markAutoGenerated () |
| Marks this documentation as auto-generated by QDoc. | |
| 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, CodeMarker *marker=nullptr) |
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 46 of file doc.cpp.
References body(), and Text::dump().
| Doc::Doc | ( | const Doc & | doc | ) |
Definition at line 63 of file doc.cpp.
References operator=().
| Doc::~Doc | ( | ) |
Definition at line 68 of file doc.cpp.
References DocPrivate::deref().
|
nodiscard |
Definition at line 114 of file doc.cpp.
References DocPrivate::m_text.
Referenced by Doc(), WebXMLGenerator::append(), briefText(), NodeExtractor::extractMemberIR(), DocBookGenerator::generateBody(), Generator::generateBody(), and legaleseText().
|
nodiscard |
Definition at line 126 of file doc.cpp.
References body(), Atom::BriefLeft, Atom::BriefRight, and Text::subText().
Referenced by NodeExtractor::extractMemberIR(), and trimmedBriefText().
|
nodiscard |
Definition at line 345 of file doc.cpp.
References DocPrivate::extra.
| void Doc::constructExtra | ( | ) | const |
Definition at line 350 of file doc.cpp.
References DocPrivate::constructExtra().
|
nodiscard |
|
nodiscard |
Definition at line 290 of file doc.cpp.
References DocPrivate::extra.
|
nodiscard |
Definition at line 285 of file doc.cpp.
References DocPrivate::extra.
|
nodiscard |
Definition at line 295 of file doc.cpp.
References DocPrivate::extra.
|
static |
Definition at line 356 of file doc.cpp.
References DocParser::initialize().
Referenced by processQdocconfFile().
|
nodiscard |
Returns true if this documentation was auto-generated by QDoc rather than written by an author.
Definition at line 242 of file doc.cpp.
References DocPrivate::m_autoGenerated.
Referenced by Node< _Tp >::createContext(), CodeParser::isWorthWarningAbout(), Node< _Tp >::setDoc(), and warnAboutDocumentedChildInUndocumentedParent().
|
nodiscard |
Definition at line 109 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 233 of file doc.cpp.
Referenced by Node< _Tp >::setDoc().
Definition at line 320 of file doc.cpp.
References DocPrivate::constructExtra(), and DocPrivate::extra.
|
nodiscard |
Definition at line 192 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 89 of file doc.cpp.
Referenced by WebXMLGenerator::addAtomElements(), WebXMLGenerator::append(), checkModuleInclusion(), diagnosticHandlerFor(), DocBookGenerator::generateAtom(), HtmlGenerator::generateAtom(), Generator::generateBody(), DocBookGenerator::generateDocBookSynopsis(), nodeToSynopsisTag(), ClangCodeParser::parse_cpp_file(), CppCodeParser::processMetaCommand(), CppCodeParser::processMetaCommands(), CppCodeParser::processQmlProperties(), CppCodeParser::processTopicCommand(), Node< _Tp >::setDoc(), startLocation(), and warnAboutDocumentedChildInUndocumentedParent().
| void Doc::markAutoGenerated | ( | ) |
Marks this documentation as auto-generated by QDoc.
Definition at line 250 of file doc.cpp.
References DocPrivate::m_autoGenerated.
Referenced by autoGenerateSmfDoc().
Definition at line 275 of file doc.cpp.
References DocPrivate::m_metaCommandMap.
|
nodiscard |
Definition at line 340 of file doc.cpp.
References DocPrivate::extra, and DocPrivateExtra::m_metaMap.
Referenced by Node< _Tp >::nodeSortKeyOrNameLessThan().
|
nodiscard |
Definition at line 74 of file doc.cpp.
References DocPrivate::deref(), and DocPrivate::ref().
Referenced by Doc(), and Node< _Tp >::setDoc().
|
static |
Definition at line 461 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 98 of file doc.cpp.
References location().
Referenced by CppCodeParser::processQmlProperties(), and CppCodeParser::processTopicCommand().
Definition at line 300 of file doc.cpp.
References DocPrivate::constructExtra(), and DocPrivate::extra.
|
nodiscard |
Definition at line 310 of file doc.cpp.
References DocPrivate::constructExtra(), and DocPrivate::extra.
Definition at line 330 of file doc.cpp.
References DocPrivate::constructExtra(), and DocPrivate::extra.
|
static |
All the heap allocated variables are deleted.
Definition at line 409 of file doc.cpp.
References DocUtilities::cmdHash, and DocUtilities::macroHash.
Referenced by processQdocconfFile().
|
nodiscard |
Definition at line 120 of file doc.cpp.
References DocPrivate::m_title.
Referenced by CppCodeParser::processMetaCommands().
|
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 270 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 421 of file doc.cpp.
References Location::columnNo().
Definition at line 131 of file doc.cpp.
References Atom::AutoLink, briefText(), Atom::C, Text::firstAtom(), Atom::next(), Atom::String, and Atom::type().