Skip to content

[APINotes] Upstream APINotesWriter #65187

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
Sep 4, 2023

Conversation

egorzhdan
Copy link
Contributor

This upstreams more of the Clang API Notes functionality that is currently implemented in the Apple fork: https://github.com/apple/llvm-project/tree/next/clang/lib/APINotes

@egorzhdan egorzhdan requested a review from compnerd September 1, 2023 21:10
@egorzhdan egorzhdan requested a review from a team as a code owner September 1, 2023 21:10
@egorzhdan egorzhdan added the clang:frontend Language frontend issues, e.g. anything involving "Sema" label Sep 1, 2023
@egorzhdan egorzhdan force-pushed the upstream-apinotes-writer branch from 294610b to e2150c2 Compare September 4, 2023 11:10
@egorzhdan egorzhdan requested a review from compnerd September 4, 2023 11:46
@egorzhdan egorzhdan force-pushed the upstream-apinotes-writer branch from e2150c2 to a553de6 Compare September 4, 2023 16:50
Copy link
Member

@compnerd compnerd left a comment

Choose a reason for hiding this comment

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

Would appreciate the removal of the noted unnecessary braces, but LGTM.

// Translate the selector reference into a stored selector.
StoredObjCSelector Selector;
Selector.Identifiers.reserve(SelectorRef.Identifiers.size());
for (auto piece : SelectorRef.Identifiers) {
Copy link
Member

Choose a reason for hiding this comment

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

Braces aren't really needed... almost makes me prefer a std::transform.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done, removed the braces

This upstreams more of the Clang API Notes functionality that is currently implemented in the Apple fork: https://github.com/apple/llvm-project/tree/next/clang/lib/APINotes
@egorzhdan egorzhdan force-pushed the upstream-apinotes-writer branch from a553de6 to a3e7232 Compare September 4, 2023 18:25
@egorzhdan egorzhdan merged commit 8dc789a into llvm:main Sep 4, 2023
@egorzhdan egorzhdan deleted the upstream-apinotes-writer branch September 4, 2023 18:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
clang:frontend Language frontend issues, e.g. anything involving "Sema"
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants