-
Notifications
You must be signed in to change notification settings - Fork 48
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
Parser: don't issue a bounds warning for trailing one-element array access #330
Conversation
791dc08
to
66c8259
Compare
This does seem to work with everything I try but it feels a bit odd having it be part of the global state of the |
I'd prefer to do it in |
Seems to me that if you pass |
adef4fc
to
66c8259
Compare
Accidentally pushed unrelated changes to this branch, reverted now. |
Is there/will there be an option to enable a warning for this? |
I don't think Clang has an option to enable a warning for this (didn't see any here https://clang.llvm.org/docs/DiagnosticsReference.html) so we could create our own. Any suggestions for the name? |
I couldn't find anything either, my suggestion is |
66c8259
to
ad492ae
Compare
Updated to keep the check local to |
I'm fine with default off but it should be part of all, extra, or pedantic. Whichever you deem best fit. |
a876fef
to
e655bba
Compare
Closes #327