-
Notifications
You must be signed in to change notification settings - Fork 51
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 #46
Comments
Thank you for your feedback. We knew this naming convention, and similar to cmsis and cmsis-dsp, arm-2d is part of the software infrastructure libraries provided by the arm for use with the arm toolchains (for most of the time I guess). https://github.com/search?q=repo%3AARM-software%2FCMSIS-DSP%20__&type=code And you are right. For the application code and example code, we should avoid using Thank you very much. I hope this answers your questions. |
💭 Would you become interested to use a development tool like “clang-tidy” for corresponding source code adjustments? |
Thank you. Using which tools isn't a problem. The key is following which software standard. Frankly speaking, this project has no plan to follow the SEI CERT C++ Coding standard in the short term. The excellence of the SEI CERT C++ Coding standard does not mean it is the only good one that everyone must comply with. At the same time, we are not saying that we will not follow it in the future; we simply don't know about the future, and we have indeed not seen problems caused by failure to comply with this standard yet. I am looking forward to learning more in this kind of discussion. |
💭 I hope that you would also like to avoid that this software depends on undefined behaviour. |
For this part, if you could point out detailed problem in a dedicated issue that would help. Thank you very much. |
👀 I got the impression that some ARM software components tamper with the reserved name space. |
Your impression is correct for arm-2d, nothing to hide, for the other components, it depends. |
Which changes did improve the affected software? |
Please give a more specific question. Most of the commits are used to improve the arm-2d; otherwise, why are there any commits in the first place? |
🔮 Would any ARM developers like to rename affected include guards (for example)? |
This is a question for arm developers; I know many who use the same manner, and I am definitely sure you know someone who doesn't like to use reserved identifiers. I cannot represent any Arm developers, so I am not able to answer this question. Sorry. |
I want to make this clear. You can blame me for using reserved identifiers. Unless I see solid evidence that the existing arm-2d identifier with "__" as their prefix conflicts with the reserved ones in arm c compilers that we claim to support, i.e. IAR, GCC, LLVM and Arm Compiler 5/6, I will not change my mind. Even if some arm-2d identifiers are addressed to conflicts with some existing reserved ones, I will treat them in a case-by-case manner. Thank you for your time and suggestions. |
💭 It seems that some source code reviewers were also too careless according to concerns around undefined behaviour so far. |
I am open to talking with you about this. Would you mind providing me with some solid cases that:
This will help us to improve the project. |
We really welcome open-source community to help us with finding the undefined behaviours. Please raise dedicated issues for each undefined behaviour. |
👀 Did you overlook any warnings about undefined behaviour from linked information sources so far? |
It looks like a personal question for me. Please allow me to keep the answers to myself. For the arm-2d project, our team reviews all the warnings, evaluates the risks and treats them with different policies. if you address any warnings, please feel free to report them. Thank you. |
💭 I find such a feedback questionable according to discussed programming language compliance concerns. |
We have yet to claim to follow the standard you mentioned. Thank you for your time. |
Does this software belong to the implementation for the programming language “C” (or “C++”)? |
Arm-2D is under Apache 2.0. Those who use arm-2d should follow the Apache 2.0 license and manage their own risk. |
I interpret such information as a recurring programming mistake. |
I respect your judgement. Thank you. |
🔮 What does hinder you then to adhere to known programming language standard specifications? |
Please allow me to keep this personal question to myself. |
I would like to point out that an identifier like “
__ARM_2D_H__
” does 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: