Skip to content

Resolve some doccomment and Swift interop warnings #8308

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 2 commits into from
Mar 3, 2024

Conversation

tshortli
Copy link

  • Correct some doc comments to avoid warnings in downstream projects.
  • Wrap some operators in #ifndef __swift__ guards. Swift C++ interop has a bug where certain operator declarations cannot be imported successfully due to percieved circular references in the declarations. Since these declarations are already dropped by the ClangImporter, it's helpful to hide the declarations entirely from Swift to avoid spurious diagnostics that cannot be addressed. See NFC: Work around 'cycle detected while resolving' warning swift#71032 for a similar workaround in the Swift compiler implementation.

@tshortli tshortli requested a review from egorzhdan February 29, 2024 23:34
tshortli added 2 commits March 2, 2024 23:11
Swift C++ interop has a bug where certain operator declarations cannot be
imported successfully due to percieved circular references in the declarations.
Since these declarations are already dropped by the ClangImporter, it's helpful
to hide the declarations entirely from Swift to avoid spurious diagnostics that
cannot be addressed. See swiftlang/swift#71032 for a
similar workaround in the Swift compiler implementation.
@tshortli
Copy link
Author

tshortli commented Mar 3, 2024

@swift-ci please test

@tshortli tshortli merged commit 0c7823c into swiftlang:stable/20230725 Mar 3, 2024
@tshortli tshortli deleted the resolve-warnings branch March 3, 2024 15:54
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.

1 participant