-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Repair header file include guards #2623
Comments
Use the following command to find the offending include guards: git grep -E 'ifndef\s*__' |
So writing a script for this change is out of the question? |
You may choose whatever method you like, a script is fine as long as it does the right thing. We will still need to do a manual code review for the change if/when you open a PR. |
working on this one :) |
Do we have to edit the defines starting with single underscores as well? |
@shrenikjain38 Changing btw, your scripted commit https://github.com/shrenikjain38/RIOT/commit/fd40ba441aa3ac6e1223d14ba275b5ee15d5e5eb breaks the C++ checks (don't modify The |
another hint for anyone preparing pull requests for this issue: Read the description at the top, we won't be able to merge the changes if you don't split them into small logical groups, we need to be able to review the changes manually before we merge them.
|
Can you please elaborate it a bit more if the identifiers beginning with a single underscore are to be changed and if they are, whether those followed by an upper case letter after an underscore to be modified or not?
This issue has already been taken into consideration. Is it okay if the changes are made in a specific directory to divide the whole procedure in easily reviewable and logically grouped chunks? |
Repair header file include guards #2623
I am currently working on fixing all headers under the boards directory. I managed to use git grep and sed to find and fix all ifndefs and defines. I was wondering if that can be used to fix the comments as well |
@BigDaddyD what's the status? Are you still working on it? |
There are still some of these macros left. In sys in particular. |
@miri64 Will find time to handle. |
Some are still left by git's non-concurrency ;-):
|
As we were pointed out a while ago, defines that start with underscores are not allowed by the C standard (I forgot the PR number where we discussed this -> could somebody help here?).
So the following style
would need to be changed to something like
Git grep tells me there are a lot of files that need to be adjusted. So if anyone is taking this on, please do it in small, easily reviewable and logical grouped chunks...
The text was updated successfully, but these errors were encountered: