-
Notifications
You must be signed in to change notification settings - Fork 76
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
Enhancement: Support for C99 syntax #12
Comments
See: #11 (comment) |
There was a patch for C99 declaration support floating around on the old sourceforge project mailing list (or the bug tracker... I don't remember). On the other hand, splint has an extensive test suite that will likely catch the possible regressions caused by the grammar patch, so maybe someone brave could dig it out and make it work... |
I thought I had applied this patch. At least support for variables declared part way through a function. Like |
See: https://gcc.gnu.org/c99status.html for list of what this may entail. Each item there is possibly weeks of work. I think the issue you specifically mention is "mixed declarations and code" which is the same as issue #7. Other features of c99 are useful as well. I think it is best to proceed with a compliance chart like this to say what is supported. |
personally the C++-style comments is the C99 feature I think would be most helpful; the fact that splint doesn't support them (or at least didn't support them when I last checked) is (part of) why I opened this GCC bug: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80529 |
Hi bpringlemei, seems that master branch do not have this patch? |
C has grown since the days of K&R C, with new syntax and semantics. Could splint fix the parser to handle newer C code, such as variable declarations in loop initializer statements?
The text was updated successfully, but these errors were encountered: