Skip to content

Conversation

@susmonteiro
Copy link

If a C++ class template A is annotated via API Notes and another class B has a field of type A, we would apply the attributes from the API Notes twice. This happened during ActOnFields, so this change makes sure we stop processing API Notes for class template instantiations in this function.

rdar://166179307
(cherry-picked from 1ab9889)

…emplates (llvm#173386)

If a C++ class template `A` is annotated via API Notes and another class
`B` has a field of type `A`, we would apply the attributes from the API
Notes twice. This happened during `ActOnFields`, so this change makes
sure we stop processing API Notes for class template instantiations in
this function.

rdar://166179307
@susmonteiro susmonteiro requested a review from a team as a code owner January 2, 2026 13:09
@susmonteiro
Copy link
Author

@swift-ci please smoke test

@susmonteiro
Copy link
Author

@swift-ci please test

@susmonteiro
Copy link
Author

@swift-ci please test macos

@susmonteiro
Copy link
Author

@swift-ci please test macOS

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.

5 participants