-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
reserved identifier violation #7195
Comments
This is actually a regression on doxygen#7195. Due to the fact that the init() routine has moved up, the settings for `FILE_PATTERNS` have already been done and a call to init does not operate on the `FILE_PATTERNS` variable but on the structure from which the `FILE_PATTERNS` was derived. We have should here operate on the `FILE_PATTERNS` directly as well., bu getting the default values out of the underlying structure.
The doxmlparser has been rewritten (from a C++ implementation to a puthon implementation), so the file dochandler.h does not exist anymore. I think the problem has been solved in the mean time |
Later I realized that there are a few other places as well (one indicated by the little bit cryptic "Were any update candidates left over?"), will look into this later. With the issue I only looked into the mentioned problems. |
Based in the example in the issue there are a few more files to be handled. The file winbuild/iconv.h is explicitly not changed as this is an external file. The change is based on: - https://wiki.sei.cmu.edu/confluence/display/cplusplus/DCL51-CPP.+Do+not+declare+or+define+a+reserved+identifier#DCL51-CPP.Donotdeclareordefineareservedidentifier-NoncompliantCodeExample%28HeaderGuard%29 - https://en.wikipedia.org/wiki/Include_guard#Discussion
I've just pushed a proposed patch, pull request #8664 |
issue #7195 reserved identifier violation
Code has been integrated in master on GitHub (please don't close the issue as this will be done at the moment of an official release). |
This issue was previously marked 'fixed but not released', |
I would like to point out that identifiers like “
_DOCHANDLER_H
” and “_SEARCHINDEX_H
” do not fit to the expected naming convention of the C++ language standard.Would you like to adjust your selection for unique names?
The text was updated successfully, but these errors were encountered: