Skip to content

[Parse/AST] Remove PoundDiagnosticDecl #79857

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
Mar 10, 2025

Conversation

rintaro
Copy link
Member

@rintaro rintaro commented Mar 8, 2025

There is no reason to make a AST node for '#error' and '#warning' directives. Parser knows the diagnostics should be emitted or not.

After removing PoundDiagnosticDecl, make SwitchStmt only hold CaseStmt.

@rintaro
Copy link
Member Author

rintaro commented Mar 8, 2025

@swift-ci Please smoke test

There is no reson to make a AST node for '#error' and '#warning'
directives. Parser knows the diagnostics should be emitted or not.
@rintaro rintaro force-pushed the retire-pound-diagnostics-decl branch from 0ccf414 to 7dd6d0b Compare March 8, 2025 05:48
@rintaro
Copy link
Member Author

rintaro commented Mar 8, 2025

@swift-ci Please smoke test

Copy link
Member

@DougGregor DougGregor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes! Love the simplification

Copy link
Contributor

@hamishknight hamishknight left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@rintaro
Copy link
Member Author

rintaro commented Mar 8, 2025

swiftlang/llvm-project#10211
@swift-ci Please smoke test

Now that there is no way SwitchStmt to hold AST nodes other than
CaseStmt.
@rintaro rintaro force-pushed the retire-pound-diagnostics-decl branch from 7dd6d0b to 5eac58e Compare March 8, 2025 17:14
@rintaro
Copy link
Member Author

rintaro commented Mar 8, 2025

swiftlang/llvm-project#10211
@swift-ci Please smoke test

1 similar comment
@rintaro
Copy link
Member Author

rintaro commented Mar 8, 2025

swiftlang/llvm-project#10211
@swift-ci Please smoke test

@rintaro rintaro merged commit accd108 into swiftlang:main Mar 10, 2025
3 checks passed
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