Skip to content
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

Mode for fixing/linting preprocessor comments only. #4276

Open
johnsonjh opened this issue Apr 13, 2024 · 0 comments
Open

Mode for fixing/linting preprocessor comments only. #4276

johnsonjh opened this issue Apr 13, 2024 · 0 comments

Comments

@johnsonjh
Copy link

It would be excellent if there was mode that could forcibly fix and/or lint processor commenting.

For example, uncrustify can comment ifdef/if preprocessor statements, converting ...

#ifdef TESTING 
#endif         

... into ...

#ifdef TESTING            
#endif /* ifdef TESTING */

However, if the #else and/or #endif statement is already commented, these comments are retained, even if they are "incorrect" (i.e. /* if defined DEBUG */, in the above example).

It would be a great feature to be able to "fix" these comments, always adding a new comment and not retaining anything that exists, and not to modify any other source code in any way.

From what I've seen, such a configuration is currently not possible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants