-
Notifications
You must be signed in to change notification settings - Fork 432
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Auto-complete friendly function prototypes #11
Comments
Which Version of QtCreator are you using? |
Thanks for the input @BtbN I came to the conclusion that an IDE should be able to expand the macro, rather than bloating the header file more. |
I'm using QtCreator 3.2.2. (64bit build + Qt5 on ArchLinux).
Today I tried the git version (v3.3.0.beta1.r156.g3f1deee) sometimes it works as expected for some random OGL functions as expected. In conclusion it's still broken. (tested on both Clang code model and QtCreator's built in) People also do have same issue with GLEW: |
I do agree. |
You can try to create a minimal example (without glad): Something like this: typedef void (PFNGLVIEWPORTPROC)(int x, int y, int width, int height);
GLAPI PFNGLVIEWPORTPROC glad_glViewport;
#define glViewport glad_glViewport
int main(void) {
glViewport(0, 0, 0, 0);
return 0;
} In this example the completion should also not work (if it does it gets more complicated), then report it as error or ask in the forums. A description could be something along the lines of
PS: Maybe this also happens for the function pointer it self |
@Dav1dde You're right: it also happens without the #define macro |
Is it possible to mimic same behavior like
glcorearb.h
withGL_GLEXT_PROTOTYPES
defined? Current implementation hides function prototypes and makes auto-complete feature of IDEs almost useless.Thanks!
The text was updated successfully, but these errors were encountered: