diff options
author | Martin Smith <martin.smith@qt.io> | 2017-02-16 10:09:40 +0100 |
---|---|---|
committer | Martin Smith <martin.smith@qt.io> | 2017-12-02 17:29:59 +0000 |
commit | f1817ea9ce9260824c542554564d642c1b8a6599 (patch) | |
tree | 53133f08f90f1acfff694e8af3333369188eb6f9 /src/gui/opengl/qopenglfunctions.cpp | |
parent | 1a78e16d194dbedcb822985e946a6b1ed5df2b6e (diff) |
doc: Add default openGL typedefs for clangqdoc
When Q_CLANG_QDOC is defined, ensure that the following openGL
types are defined:
typedef int GLint;
typedef int GLsizei;
typedef unsigned int GLuint;
typedef unsigned int GLenum;
typedef unsigned int GLbitfield;
typedef float GLfloat;
typedef float GLclampf;
typedef bool GLboolean;
typedef void GLvoid;
typedef char GLchar;
Running clangqdoc with these on macOS fixed over 500 qdoc errors!
There were also some functions that declared the parameter list as void.
It was also shown as void in the \fn command for each function in the
.cpp file, which is wrong. When the function is declared in the header
as int func(void), it should just be \fn int classname::func() in the
.cpp file.
Change-Id: I6489d499f0830e5ba97c085ed5dadfad5affecb7
Reviewed-by: Topi Reiniƶ <topi.reinio@qt.io>
Diffstat (limited to 'src/gui/opengl/qopenglfunctions.cpp')
-rw-r--r-- | src/gui/opengl/qopenglfunctions.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/opengl/qopenglfunctions.cpp b/src/gui/opengl/qopenglfunctions.cpp index 739ecacc51..23342f7935 100644 --- a/src/gui/opengl/qopenglfunctions.cpp +++ b/src/gui/opengl/qopenglfunctions.cpp @@ -2584,7 +2584,7 @@ QT_OPENGL_IMPLEMENT(QOpenGLFunctionsPrivate, QT_OPENGL_FUNCTIONS) */ /*! - \fn void QOpenGLExtraFunctions::glEndTransformFeedback(void) + \fn void QOpenGLExtraFunctions::glEndTransformFeedback() Convenience function that calls glEndTransformFeedback(). @@ -3091,7 +3091,7 @@ QT_OPENGL_IMPLEMENT(QOpenGLFunctionsPrivate, QT_OPENGL_FUNCTIONS) */ /*! - \fn void QOpenGLExtraFunctions::glPauseTransformFeedback(void) + \fn void QOpenGLExtraFunctions::glPauseTransformFeedback() Convenience function that calls glPauseTransformFeedback(). @@ -3156,7 +3156,7 @@ QT_OPENGL_IMPLEMENT(QOpenGLFunctionsPrivate, QT_OPENGL_FUNCTIONS) */ /*! - \fn void QOpenGLExtraFunctions::glResumeTransformFeedback(void) + \fn void QOpenGLExtraFunctions::glResumeTransformFeedback() Convenience function that calls glResumeTransformFeedback(). |