Skip to content

[apinotes][cxx-interop] Add support for namespaces, nested tags, and methods. #5022

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 5 commits into from
Jul 27, 2022

Conversation

zoecarver
Copy link

Refs: #5021

@zoecarver zoecarver requested review from hyp and compnerd July 25, 2022 15:25
@zoecarver
Copy link
Author

@swift-ci please smoke test

// CHECK-FN: SwiftNameAttr {{.+}} <<invalid sloc>> "childFnInNS()"

// CHECK-REF: Dumping ImportAsReference:
// CHECK-REF: SwiftAttrAttr {{.+}} <<invalid sloc>> Implicit "import_reference"
Copy link

Choose a reason for hiding this comment

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

Nit: It would be better if you could have a separate test case file for the new import_as , retain and release attributes.

Copy link
Author

Choose a reason for hiding this comment

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

It's a fairly small test file, I'd like to keep it all together as it's testing roughly the same thing.

Copy link
Author

Choose a reason for hiding this comment

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

If you feel strongly, I will fix it post-commit.

@hyp
Copy link

hyp commented Jul 25, 2022

Your patch has no testing for the Bitcode serialization changes, that should be tested to ensure it works.

@zoecarver
Copy link
Author

Your patch has no testing for the Bitcode serialization changes, that should be tested to ensure it works.

These are emitted with the module, so it's tested as part of the end-to-end test I have.

@zoecarver
Copy link
Author

Thanks for the review, Alex!

@zoecarver
Copy link
Author

@swift-ci Please Build Toolchain macOS Platform

@zoecarver zoecarver merged commit 87ddb22 into swiftlang:next Jul 27, 2022
@fhahn
Copy link

fhahn commented Aug 4, 2022

It looks like this change introduces huge compile-time regressions when building C++ projects with clang.

For example, when building CTMark/kimwitu++/kc with -O0+g compile time increased from 18s to 1043s.

The regression can also be reproduced when building CTMark/kimwitu++/kc with -O3.

Could you please take a look and revert the changes if it isn't a trivial fix, as this is impacting our CI quite a bit.

@fhahn
Copy link

fhahn commented Aug 4, 2022

I was able to track down the biggest increase to 8e7ea0c

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.

3 participants