Signed-off-by: Thomas Karl Pietrowski <email address hidden> (github: thopiekar)
8f3761d...
by
Alexandru Croitor <email address hidden>
Fix double inclusion of qsharedpointer_impl.h file
This is a workaround to allow building QSharedPointer bindings
with the clang parser.
In the previous parser the Q_QDOC define was set, and thus the
implementation header was never included. When clang is queried
to return the file which implements QSharedPointer, it will return
the innermost header file. Because the header doesn't have header
guards, the build will fail with redefinition errors.
Refactor TypeRejection to use one regular expression for
the class name and one for the various strings to be matched
depending on the match type enumeration instead of 4 fixed
string fields.
Task-number: PYSIDE-516
Change-Id: Ifb945e3be39fbedfd802c4d32de7de443cf53f49
Reviewed-by: Alexandru Croitor <email address hidden>
In AbstractMetaBuilderPrivate::traverseFunction(), store the
unmodified signature with return type before resolving typedefs for
the messages. Extend the error messages about parameters and output
them to qWarning() and rejection logs consistently.
So:
Unmatched argument type
- QOpenGLExtraFunctions::glIsSync(GLsync) -> GLboolean
becomes:
Unmatched argument type
- GLboolean QOpenGLExtraFunctions::glIsSync(GLsync): unmatched type 'GLsync' in parameter #1 "sync"
Task-number: PYSIDE-516
Change-Id: Ifd680af1cd6d403d9b73ba3e40d06abe274cf359
Reviewed-by: Alexandru Croitor <email address hidden>
Generate #error when a minimal constructor could not be found
The occurred in 3 places, one of which generated #error and the
others used qFatal(). Change it to always generate #error with
a bit of context to make it possible to detect the source of
of the problem.
Change-Id: Icd93b1beec908b57fa72457d6ec1e16a15e5ff14
Reviewed-by: Christian Tismer <email address hidden>