Skip to content

Identify constant definitions that look like include guard definitions #26150

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

Merged
merged 2 commits into from
Jul 16, 2019
Merged

Identify constant definitions that look like include guard definitions #26150

merged 2 commits into from
Jul 16, 2019

Conversation

varungandhi-apple
Copy link
Contributor

The solution follows the outline in the issue description. If the literal "1" is present,
we treat the construct as an include guard, otherwise it is treated as defining a constant.

Resolves SR-9482.

There is a minor change from #26098; we need to a pass an additional length parameter while creating the StringRef.

@varungandhi-apple
Copy link
Contributor Author

@swift-ci please smoke test

Solution based on the outline in the issue description.

Also fixes the corresponding rdar://problem/46644027.
@varungandhi-apple
Copy link
Contributor Author

@swift-ci please smoke test

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.

2 participants