Skip to content

Conversation

@gummireddysandeepreddy
Copy link

Added restrict modifier in keywords section and updated will throw syntax error if restrict keyword is used in declaration without variable

Old

image

New

image

@Quuxplusone
Copy link
Collaborator

The change to .gitignore seems superfluous; the Makefile doesn't create an a.out, does it?

I suggest adding test cases for explain int *restrict p and explain restrict int* p (do we care that IIRC the latter is meaningless?) and declare a as restrict pointer to int.

@ridiculousfish added me as a contributor here which I think means I physically could merge this and/or #46; @ridiculousfish should I merge #46? If so, then I'll merge it ASAP and encourage you to rebase this PR on top of #46 for the purpose of adding new test cases.

@gummireddysandeepreddy
Copy link
Author

Yes @Quuxplusone,

I know that Makefile doesn't create an a.out file, but because of my system preferences I changed my way of compiling and executing so it made me to add a.out in .gitignore.

Actually I thought of removing that commit before giving pull request but I forgotten.

@ridiculousfish
Copy link
Owner

@Quuxplusone yes please merge your PR if you are happy with it.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants