Skip to content

[ClangImporter] Query Preprocessor::macros instead of getPreprocessingRecord for header printing #65868

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 1 commit into from
May 12, 2023

Conversation

hamishknight
Copy link
Contributor

@hamishknight hamishknight commented May 11, 2023

This better matches what the clang importer does normally, avoids a Clang issue where getPreprocessedEntitiesInRange returns incorrect results (rdar://109254260), and avoids the need to enable the preprocessor record. This then lets us re-enable print_clang_headers.swift.

rdar://102151774

…singRecord` for header printing

This better matches what the clang importer does
normally, avoids a Clang issue where
`getPreprocessedEntitiesInRange` returns incorrect
results, and avoids the need to enable the
preprocessor record. This then lets us re-enable
`print_clang_headers.swift`.

rdar://102151774
@hamishknight
Copy link
Contributor Author

@swift-ci please test

Copy link
Contributor

@bnbarham bnbarham left a comment

Choose a reason for hiding this comment

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

Thanks! Matching what the ClangImporter does normally here makes sense to me.

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