-
Notifications
You must be signed in to change notification settings - Fork 19
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
Parse bounds declarations for function return values. #21
Comments
Comment from @msftclas: Hi @dtarditi, I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution!
TTYL, MSBOT; |
Comment from @reubeno: I called out a few very low-priority suggestions; otherwise, looks great. |
Comment from @awruef: Looks good to me. |
This issue was copied from checkedc/checkedc-clang#21
This extends parsing of function declarators to parse bounds expressions for
function return values. A return bounds expression is declared by following
a parameter list with ':' bounds-expression.
The return bounds information is propagated to the representation of function
declarations in clang. It is not propagated yet to function types because
there is no way to represent it in function types. I have opened issue #20
to track that and added a few TODO's to the code flagging where the
information will need to be added.
Testing:
the file return_bounds.c, which will be committed separately to the checkedc
Github repo.
The text was updated successfully, but these errors were encountered: