Menu

#14 reserved identifier violation

open
nobody
None
5
2012-10-04
2010-11-22
No

This issue corresponds to my previous "feature request".

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:
__EXT2READ_H
https://github.com/mregmi/ext2read/blob/master/ext2read.h#L24

__LVM_H
https://github.com/mregmi/ext2read/blob/master/lvm.h#L24

This does not fit to the expected naming conventions of the C/C++ language standard.

See also:
http://www.open-std.org/JTC1/SC22/WG14/www/docs/n1124.pdf
https://www.securecoding.cert.org/confluence/display/seccode/DCL37-C.+Do+not+use+identifiers+that+are+reserved+for+the+implementation

Discussion


Log in to post a comment.

MongoDB Logo MongoDB