#23 reserved identifier violation

open
nobody
None
5
2011-11-08
2011-11-08
Markus Elfring
No

I suggest to try the search pattern "<(?:(?:(.*))|([A-Z]+))" on source files. Some places will be found where names begin with two underscores or an underscore and an uppercase letter.

Examples:
- _SHA1_H
http://freedownload.svn.sourceforge.net/viewvc/freedownload/FDM/Hash/sha1.h?revision=11&view=markup

- __COMMON_H_
http://freedownload.svn.sourceforge.net/viewvc/freedownload/FDM/InetFile/common.h?revision=19&view=markup

This does not fit to the expected naming conventions of the C/C++ language standard.
https://www.securecoding.cert.org/confluence/display/cplusplus/DCL32-CPP.+Do+not+declare+or+define+a+reserved+identifier#DCL32-CPP.Donotdeclareordefineareservedidentifier-NoncompliantCodeExample%28HeaderGuard%29

Discussion