![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <cppcodemarker.h>
Public Member Functions | |
| CppCodeMarker ()=default | |
| ~CppCodeMarker () override=default | |
| bool | recognizeCode (const QString &code) override |
Returns true. | |
| bool | recognizeExtension (const QString &ext) override |
Returns true if ext is any of a list of file extensions for the C++ language. | |
| bool | recognizeFileName (const QString &) override |
| bool | recognizeLanguage (const QString &lang) override |
Returns true if lang is either "c" or "cpp". | |
| Atom::AtomType | atomType () const override |
| Returns the type of atom used to represent C++ code in the documentation. | |
| QString | markedUpCode (const QString &code, const Node *relative, const Location &location) override |
| QString | markedUpSynopsis (const Node *node, const Node *relative, Section::Style style) override |
| QString | markedUpQmlItem (const Node *node, bool summary) override |
| QString | markedUpName (const Node *node) override |
| QString | markedUpEnumValue (const QString &enumValue, const Node *relative) override |
| Public Member Functions inherited from CodeMarker | |
| CodeMarker () | |
| When a code marker constructs itself, it puts itself into the static list of code markers. | |
| virtual | ~CodeMarker () |
| When a code marker destroys itself, it removes itself from the static list of code markers. | |
| virtual void | initializeMarker () |
| A code market performs no initialization by default. | |
| virtual void | terminateMarker () |
| Terminating a code marker is trivial. | |
| QString | typified (const QString &string, bool trailingSpace=false) |
Additional Inherited Members | |
| Static Public Member Functions inherited from CodeMarker | |
| static void | initialize () |
| All the code markers in the static list are initialized here, after the qdoc configuration file has been loaded. | |
| static void | terminate () |
| All the code markers in the static list are terminated here. | |
| static CodeMarker * | markerForCode (const QString &code) |
| static CodeMarker * | markerForFileName (const QString &fileName) |
| Returns the appropriate code marker for the content in the file with the given fileName, which is typically the whole file path. | |
| static CodeMarker * | markerForLanguage (const QString &lang) |
| static QString | extraSynopsis (const Node *node, Section::Style style) |
| Returns the 'extra' synopsis string for node with status information, using a specified section style. | |
| Protected Member Functions inherited from CodeMarker | |
| QString | taggedNode (const Node *node) |
| QString | taggedQmlNode (const Node *node) |
| QString | linkTag (const Node *node, const QString &body) |
| Static Protected Member Functions inherited from CodeMarker | |
| static QString | protect (const QString &string) |
| static void | appendProtectedString (QString *output, QStringView str) |
Definition at line 15 of file cppcodemarker.h.
|
default |
|
overridedefault |
|
nodiscardoverridevirtual |
Returns the type of atom used to represent C++ code in the documentation.
Reimplemented from CodeMarker.
Reimplemented in QmlCodeMarker.
Definition at line 189 of file cppcodemarker.cpp.
References Atom::Code.
|
overridevirtual |
Reimplemented from CodeMarker.
Reimplemented in QmlCodeMarker.
Definition at line 194 of file cppcodemarker.cpp.
|
overridevirtual |
Reimplemented from CodeMarker.
Definition at line 430 of file cppcodemarker.cpp.
References Node< _Tp >::isEnumType(), Node< _Tp >::isEnumType(), Node< _Tp >::isHeader(), NativeEnumInterface::nativeEnum(), and Node< _Tp >::parent().
Reimplemented from CodeMarker.
Reimplemented in QmlCodeMarker.
Definition at line 422 of file cppcodemarker.cpp.
References Node< _Tp >::isFunction(), and Node< _Tp >::isMacro().
Reimplemented from CodeMarker.
Definition at line 368 of file cppcodemarker.cpp.
References Parameters::at(), Parameters::count(), Section::Details, Node< _Tp >::isFunction(), Node< _Tp >::isQmlProperty(), and Section::Summary.
|
overridevirtual |
Reimplemented from CodeMarker.
Definition at line 200 of file cppcodemarker.cpp.
References Section::Accessors, Section::AllMembers, Parameters::at(), Class, Parameters::count(), Section::Details, Node< _Tp >::doc(), Function, FunctionNode::isConst(), Parameters::isEmpty(), FunctionNode::isFinal(), Node< _Tp >::isHeader(), FunctionNode::isMacroWithoutParams(), FunctionNode::isNonvirtual(), FunctionNode::isOverride(), Node< _Tp >::isProperty(), Node< _Tp >::isProxyNode(), FunctionNode::isPureVirtual(), Node< _Tp >::isQmlNode(), FunctionNode::isRef(), FunctionNode::isRefRef(), Node< _Tp >::isRelatedNonmember(), EnumNode::isScoped(), Namespace, Node< _Tp >::nodeType(), FunctionNode::parameters(), Node< _Tp >::parent(), Property, QmlProperty, Struct, Section::Summary, TypeAlias, Typedef, and Union.
|
overridevirtual |
Returns true.
Reimplemented from CodeMarker.
Reimplemented in QmlCodeMarker.
Definition at line 161 of file cppcodemarker.cpp.
|
overridevirtual |
Returns true if ext is any of a list of file extensions for the C++ language.
Reimplemented from CodeMarker.
Reimplemented in QmlCodeMarker.
Definition at line 170 of file cppcodemarker.cpp.
|
inlineoverridevirtual |
Reimplemented from CodeMarker.
Reimplemented in QmlCodeMarker.
Definition at line 23 of file cppcodemarker.h.
|
overridevirtual |
Returns true if lang is either "c" or "cpp".
Reimplemented from CodeMarker.
Reimplemented in QmlCodeMarker.
Definition at line 181 of file cppcodemarker.cpp.