-
Notifications
You must be signed in to change notification settings - Fork 465
Add diagnostic if #endif is followed by any declarations
#1833
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
Add diagnostic if #endif is followed by any declarations
#1833
Conversation
ahoppen
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you do the same for #sourceLocation?
02619a7 to
1dc643c
Compare
3359a6c to
c5684e0
Compare
c5684e0 to
8b3428f
Compare
|
@swift-ci please test |
|
@swift-ci please test windows |
ahoppen
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, and one thing that just crossed my mind: Could you also add test cases for statements on the same line as #if, #elseif and #else?
8b3428f to
74dc3f8
Compare
Good catch! |
|
@swift-ci please test |
ahoppen
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks 👍🏽
Resolves #1823