Skip to content

🍒[APINotes] Avoid duplicated attributes for class template instantiations #9842

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

Conversation

egorzhdan
Copy link

If a C++ class template is annotated via API Notes, the instantiations had the attributes repeated twice. This is because Clang was adding the attribute twice while processing the same class template. This change makes sure we don't try to add attributes from API Notes twice.

There is currently no way to annotate specific instantiations using API Notes.

rdar://142539959
(cherry picked from commit feb7872)

If a C++ class template is annotated via API Notes, the instantiations
had the attributes repeated twice. This is because Clang was adding the
attribute twice while processing the same class template. This change
makes sure we don't try to add attributes from API Notes twice.

There is currently no way to annotate specific instantiations using API
Notes.

rdar://142539959
(cherry picked from commit feb7872)
@egorzhdan egorzhdan requested a review from a team as a code owner January 16, 2025 12:23
@egorzhdan
Copy link
Author

@swift-ci please test

@egorzhdan egorzhdan requested a review from Xazax-hun January 16, 2025 12:55
@egorzhdan egorzhdan merged commit d3e466f into stable/20240723 Jan 16, 2025
3 checks passed
@egorzhdan egorzhdan deleted the egorzhdan/20240723-apinotes-class-template branch January 16, 2025 18:27
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