![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <moc.h>
Public Types | |
| enum | PropertyMode { Named , Anonymous } |
| enum class | EncounteredQmlMacro { Yes , No } |
|
strong |
| enum Moc::PropertyMode |
|
inline |
Definition at line 238 of file moc.h.
References mustIncludeQPluginH, noInclude, and requireCompleteTypes.
| void Moc::createPropertyDef | ( | PropertyDef & | def, |
| int | propertyIndex, | ||
| Moc::PropertyMode | mode ) |
Definition at line 1568 of file moc.cpp.
References PropertyDef::lineNumber, Named, parsePropertyAttributes(), and PropertyDef::relativeIndex.
Referenced by parsePrivateProperty(), and parseProperty().
| void Moc::generate | ( | FILE * | out, |
| FILE * | jsonOutput ) |
Definition at line 1340 of file moc.cpp.
References InterfacePartition, InternalPartition, moduleUnitKind, mustIncludeQPluginH, noInclude, and NotAModule.
Referenced by runMoc().
|
inline |
Definition at line 278 of file moc.h.
Referenced by parse(), parseSignals(), and parseSlots().
|
inline |
Definition at line 282 of file moc.h.
Referenced by parse(), and prependNamespaces().
| QByteArray Moc::lexemUntil | ( | Token | target | ) |
Definition at line 2041 of file moc.cpp.
References is_ident_char(), and until().
| void Moc::parse | ( | ) |
Definition at line 775 of file moc.cpp.
References Symbol::Symbol(), FunctionDef::access, Anonymous, checkListSizes(), checkProperties(), checkSuperClasses(), ClassDef::hasQGadget, NamespaceDef::hasQNamespace, ClassDef::hasQObject, inClass(), inNamespace(), FunctionDef::isConstructor, FunctionDef::isDestructor, FunctionDef::isInvokable, FunctionDef::isSignal, FunctionDef::isSlot, Named, parseClassHead(), parseClassInfo(), parseDeclareInterface(), parseDeclareMetatype(), parseEnum(), parseEnumOrFlag(), parseFlag(), parseInterfaces(), parseMaybeFunction(), parseMocInclude(), parsePluginData(), parsePrivateProperty(), parseProperty(), parseSignals(), parseSlotInPrivate(), parseSlots(), prependNamespaces(), FunctionDef::Private, FunctionDef::Protected, FunctionDef::Public, FunctionDef::revision, ClassDef::revisionedMethods, Symbol::token, and until().
Referenced by runMoc().
| bool Moc::parseClassHead | ( | ClassDef * | def | ) |
Definition at line 39 of file moc.cpp.
References ClassDef::isFinal, FunctionDef::Private, FunctionDef::Protected, FunctionDef::Public, skipCxxAttributes(), and until().
Referenced by parse().
| Moc::EncounteredQmlMacro Moc::parseClassInfo | ( | BaseDef * | def | ) |
Definition at line 1939 of file moc.cpp.
References ClassDef::requireCompleteMethodTypes, and Yes.
Referenced by parse().
| void Moc::parseDeclareInterface | ( | ) |
| void Moc::parseDeclareMetatype | ( | ) |
Definition at line 250 of file moc.cpp.
References IncludeBegin, IncludeEnd, EnumDef::lineNumber, NoInclude, skipCxxAttributes(), and until().
Referenced by parse().
| void Moc::parseEnumOrFlag | ( | BaseDef * | def, |
| QtMocConstants::EnumFlags | flags ) |
| bool Moc::parseFunction | ( | FunctionDef * | def, |
| bool | inMacro = false ) |
Definition at line 434 of file moc.cpp.
References FunctionDef::inlineCode, FunctionDef::isAbstract, FunctionDef::isConst, FunctionDef::isStatic, FunctionDef::isVirtual, FunctionDef::lineNumber, parseFunctionArguments(), skipCxxAttributes(), testForFunctionModifiers(), testFunctionAttribute(), testFunctionRevision(), and until().
Referenced by parseSignals(), parseSlotInPrivate(), and parseSlots().
| void Moc::parseFunctionArguments | ( | FunctionDef * | def | ) |
Definition at line 310 of file moc.cpp.
References ArgumentDef::isDefault, FunctionDef::isPrivateSignal, FunctionDef::isRawSlot, and until().
Referenced by parseFunction(), and parseMaybeFunction().
| bool Moc::parseMaybeFunction | ( | const ClassDef * | cdef, |
| FunctionDef * | def ) |
Definition at line 546 of file moc.cpp.
References FunctionDef::isConst, FunctionDef::isConstructor, FunctionDef::isDestructor, FunctionDef::isInvokable, FunctionDef::isSignal, FunctionDef::isSlot, FunctionDef::isStatic, FunctionDef::isVirtual, FunctionDef::lineNumber, parseFunctionArguments(), skipCxxAttributes(), testForFunctionModifiers(), testFunctionAttribute(), testFunctionRevision(), and until().
Referenced by parse().
| void Moc::parseMocInclude | ( | ) |
Definition at line 702 of file moc.cpp.
References hasGlobalModuleFragment, ImplementationUnit, InterfacePartition, InternalPartition, moduleUnitKind, NotAModule, and PrimaryInterface.
Definition at line 1778 of file moc.cpp.
References mustIncludeQPluginH.
Referenced by parse().
Definition at line 754 of file moc.cpp.
References inPrivateModuleFragment, moduleUnitKind, and PrimaryInterface.
| void Moc::parsePrivateProperty | ( | ClassDef * | def, |
| Moc::PropertyMode | mode ) |
Definition at line 1860 of file moc.cpp.
References createPropertyDef().
Referenced by parse().
| void Moc::parseProperty | ( | ClassDef * | def, |
| Moc::PropertyMode | mode ) |
Definition at line 1768 of file moc.cpp.
References createPropertyDef().
Referenced by parse().
| QByteArray Moc::parsePropertyAccessor | ( | ) |
| void Moc::parsePropertyAttributes | ( | PropertyDef & | propDef | ) |
Definition at line 1607 of file moc.cpp.
References PropertyDef::constant, PropertyDef::final, PropertyDef::override, parseRevision(), PropertyDef::required, PropertyDef::revision, and PropertyDef::virtual_.
Referenced by createPropertyDef().
| QTypeRevision Moc::parseRevision | ( | ) |
Definition at line 391 of file moc.cpp.
References QTypeRevision::QTypeRevision().
Referenced by parsePropertyAttributes(), parseSignals(), parseSlots(), and testFunctionRevision().
Definition at line 1524 of file moc.cpp.
References FunctionDef::access, inClass(), FunctionDef::isVirtual, parseFunction(), parseRevision(), FunctionDef::Public, FunctionDef::revision, ClassDef::revisionedMethods, and until().
Referenced by parse().
| void Moc::parseSlotInPrivate | ( | ClassDef * | def, |
| FunctionDef::Access | access ) |
Definition at line 2020 of file moc.cpp.
References FunctionDef::access, parseFunction(), FunctionDef::revision, and ClassDef::revisionedMethods.
Referenced by parse().
| void Moc::parseSlots | ( | ClassDef * | def, |
| FunctionDef::Access | access ) |
Definition at line 1482 of file moc.cpp.
References FunctionDef::access, inClass(), parseFunction(), parseRevision(), FunctionDef::revision, ClassDef::revisionedMethods, and until().
Referenced by parse().
| Type Moc::parseType | ( | ) |
| void Moc::prependNamespaces | ( | BaseDef & | def, |
| const QList< NamespaceDef > & | namespaceList ) const |
Definition at line 656 of file moc.cpp.
References inNamespace().
Referenced by parse().
| bool Moc::skipCxxAttributes | ( | ) |
Definition at line 382 of file moc.cpp.
References until().
Referenced by parseClassHead(), parseEnum(), parseFunction(), parseMaybeFunction(), and parseType().
| QByteArrayView Moc::strippedFileName | ( | ) | const |
| bool Moc::testForFunctionModifiers | ( | FunctionDef * | def | ) |
Definition at line 538 of file moc.cpp.
References FunctionDef::isStatic, and FunctionDef::isVirtual.
Referenced by parseFunction(), and parseMaybeFunction().
| bool Moc::testFunctionAttribute | ( | FunctionDef * | def | ) |
Definition at line 350 of file moc.cpp.
Referenced by parseFunction(), and parseMaybeFunction().
| bool Moc::testFunctionAttribute | ( | Token | tok, |
| FunctionDef * | def ) |
Definition at line 359 of file moc.cpp.
References FunctionDef::isCompat, FunctionDef::isInvokable, FunctionDef::isScriptable, FunctionDef::isSignal, and FunctionDef::isSlot.
| bool Moc::testFunctionRevision | ( | FunctionDef * | def | ) |
Definition at line 422 of file moc.cpp.
References parseRevision(), and FunctionDef::revision.
Referenced by parseFunction(), and parseMaybeFunction().
|
noexcept |
| bool Moc::until | ( | Token | target | ) |
Definition at line 2061 of file moc.cpp.
Referenced by lexemUntil(), parse(), parseClassHead(), parseEnum(), parseFunction(), parseFunctionArguments(), parseMaybeFunction(), parseSignals(), parseSlots(), and skipCxxAttributes().
| QByteArray Moc::filename |
| bool Moc::hasGlobalModuleFragment = false |
Definition at line 262 of file moc.h.
Referenced by parseModuleDeclaration().
| QList<QByteArray> Moc::includeFiles |
| QByteArray Moc::includePath |
| bool Moc::inPrivateModuleFragment = false |
Definition at line 261 of file moc.h.
Referenced by parsePrivateModuleFragment().
| QMap<QByteArray, QByteArray> Moc::interface2IdMap |
| QHash<QByteArray, QByteArray> Moc::knownGadgets |
| QHash<QByteArray, QByteArray> Moc::knownQObjectClasses |
| QMap<QString, QJsonArray> Moc::metaArgs |
| QList<QByteArray> Moc::metaTypes |
| QList<QByteArray> Moc::moduleFragmentIncludes |
| QByteArray Moc::moduleName |
| QByteArray Moc::modulePartitionName |
| ModuleUnitKind Moc::moduleUnitKind = ModuleUnitKind::NotAModule |
Definition at line 258 of file moc.h.
Referenced by generate(), parseModuleDeclaration(), parsePrivateModuleFragment(), and runMoc().
| bool Moc::mustIncludeQPluginH |
Definition at line 245 of file moc.h.
Referenced by Moc(), generate(), and parsePluginData().
| bool Moc::noInclude |
Definition at line 244 of file moc.h.
Referenced by Moc(), generate(), and runMoc().
| bool Moc::requireCompleteTypes |