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
Extensive usage of reserved identifiers #2517
Labels
Comments
unless there is an actual conflict, I dont really care about this |
@paroj Thanks for your answer. I'd feel rather uncomfortable to live with undefined behaviour in my code, but I understand there are things more interesting and more urgent to do in such projects. Anyway, thanks again! |
Erellu
changed the title
Extensive usage of reserve identifiers
Extensive usage of reserved identifiers
Jul 13, 2022
💭 Would you become interested to use a development tool like “clang-tidy” for corresponding source code adjustments? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Several macros (and identifiers in general) use reserved names. This is undefined behaviour.
According to the standard (Cpp17 here):
Header guards
Header guards used in (almost) each
.h
file in OGRE follow one of the following conventions:__OgrePrerequisites_H__
__CompositorManager_H__
_ResourceManager_H_
All fall into
5.10 (3.2)
.Export macro
_OgreExport
,_OgrePrivate
and probably other macros I'm not aware of fall into the5.10 (3.1)
.There may be other similar issues in other files, I did not check everything.
The text was updated successfully, but these errors were encountered: