QDoc: Generalize detection of QML-specific macros
ClangVisitor::detectQmlSingleton() was used to inspect the
spelling of call expressions expanded via macro usage in
class declarations. The implementation was done specifically
to resolve the use of QML_SINGLETON macro, but there are
also other macros such as QML_UNCREATABLE that are useful
to detect for automating the generation of status information
on QML type documentation.
This change prepares the detection code and associated data
types for additional attributes that are either retrieved
from C++ implementation or explicitly set via new topic
commands.
Rename detectQmlSingleton() to be more generic, and have
it return an enum instead of a boolean. This new enum is
declared in genustypes.h. It defines the QML-specific
attributes set explicitly for QmlTypeNode, or detected from a
declaration of a C++ class that acts as the QML type's native
type.
Task-number: QTBUG-144345
Change-Id: I9f87b7ec8b6db642ed4d53de3606fee11bf19a78
Reviewed-by: David Boddie <david.boddie@qt.io>