Skip to content

Conversation

@hamishknight
Copy link
Contributor

5.9 cherry-pick of #65868

  • Explanation: Fixes Clang header printing such that it includes defined macros in the header
  • Scope: Affects Clang header printing
  • Issue: rdar://102151774
  • Risk: Low, only affects header printing, and the logic is similar to what the Clang Importer normally does.
  • Testing: Re-enabled previously failing test in test suite
  • Reviewer: Ben Barham

…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 hamishknight added 🍒 release cherry pick Flag: Release branch cherry picks swift 5.9 labels May 12, 2023
@hamishknight hamishknight requested a review from a team as a code owner May 12, 2023 09:54
@hamishknight
Copy link
Contributor Author

@swift-ci please test

@hamishknight hamishknight merged commit 780e3ec into swiftlang:release/5.9 May 16, 2023
@hamishknight hamishknight deleted the macrowave-5.9 branch May 16, 2023 15:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🍒 release cherry pick Flag: Release branch cherry picks swift 5.9

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants