1
Bugs and Issues / Re: C++ include guards
« on: December 04, 2019, 07:50:10 am »
Thanks, I found the C++ File Template. Can you clarify if this will be tied to the .eap and/or database if updated, or if it's a per user change?
Also, the ISO/IEC 1488 standard specifies double underscore in identifiers as reserved, so I would imagine that if you enable warnings, compliant compilers should be displeased (as mine is). I would propose that the default template should therefore not be set to use double underscore.
Here are a few references:
Also, the ISO/IEC 1488 standard specifies double underscore in identifiers as reserved, so I would imagine that if you enable warnings, compliant compilers should be displeased (as mine is). I would propose that the default template should therefore not be set to use double underscore.
Here are a few references:
- http://www.open-std.org/jtc1/sc22/wg21/docs/standards#14882
- "Each identifier that contains a double underscore __ or begins with an underscore followed by an uppercase letter is reserved to the implementation for any use." - http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2017/n4659.pdf (linked from the previous link)
- "identifiers with a double underscore anywhere are reserved" - https://en.cppreference.com/w/cpp/language/identifiers
- "Each name that contains a double underscore __ or begins with an underscore followed by an uppercase letter is reserved to the implementation for any use." - https://wiki.sei.cmu.edu/confluence/display/cplusplus/DCL51-CPP.+Do+not+declare+or+define+a+reserved+identifier