volk icon indicating copy to clipboard operation
volk copied to clipboard

reserved identifier violation

Open elfring opened this issue 5 years ago • 2 comments

I would like to point out that an identifier like “__VOLK_ASMdoes eventually not fit to the expected naming convention of the C++ language standard. Would you like to adjust your selection for unique names?

elfring avatar Jul 31 '18 14:07 elfring

I assume C++ and C naming conventions are aligned on this one. According to the naming convention page you linked, we should drop the leading __. We need to discuss why leading underscores were introduced in the first place. Also we need to discuss if it is save to remove them and if we want to remove them.

jdemel avatar Nov 09 '19 11:11 jdemel

Fascinating. I had no idea there were so many rules for naming conventions in C++. Crazy!

I have no objections to renaming any macro / identifier / function / variable, so long as the code still builds on a variety of OSs and using multiple different compilers and different compiler versions. We want to avoid using, and especially installing headers that have in them, a macro / identifier / function / variable that conflicts with other projects or the host OS.

That said, we seem to be OK right now with no conflicting macro / identifier / function / variable in builds or the installed headers. Hence, if someone else wants to tackle this, please do so. Otherwise, let's keep the issue around to remind us sometime down the road that this is a desirable change & we'll hopefully find time to do something about it then in the future.

michaelld avatar Nov 14 '19 01:11 michaelld