-
Notifications
You must be signed in to change notification settings - Fork 17
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
Refrain from using nested designators #253
Comments
Can you elaborate on what compatibility issues you're having? |
Build fails with
|
@kubalaguna is your goal for this issue to prevent this from happening in the future? We'd need some sort of static analysis framework to add a presubmit check for this pattern. Unfortunately many of the easy ones like semgrep, or codeql don't support Objective-C/C++. Meta's infer does but admittedly I've not used it. |
Yes, if we could prevent it with a presubmit, it would be great. But if it's not easy to do, please just consider not using this pattern. |
I'm going to close the issue as this is complicated for many reasons and look at trying not to use the pattern in the future. |
Hello,
Using this format (nested designator):
instead of:
causes some compatibility issues on our end.
Would it be possible to add a check to disallow nested designators? If not, could you please try to use the latter format instead?
Example: #252
The text was updated successfully, but these errors were encountered: