Skip to content

Conversation

QuietMisdreavus
Copy link
Contributor

Reverts #25

This PR re-introduces #23, now that changes have landed in Swift-DocC (swiftlang/swift-docc#133) to allow it to land without breaking the build. The original PR's release information follows.


Explanation: In preparation of allowing SymbolKit (and by proxy, Swift-DocC) to accept symbol graphs from Clang, this PR adds two new symbol kinds to the KindIdentifier enum: ivar (for Objective-C instance variables) and macro (for C preprocessor macros).

Scope: A low-impact change that shouldn't affect any existing uses of SymbolKit/Swift-DocC, and enables new ones.

Radar: rdar://91166981

Risk: Low. New KindIdentifier cases will not cause any existing workflows that use SymbolKit to change or be affected.

Testing: A new automated test has been added to ensure that symbol kinds can be parsed as themselves when serialized out and re-read. All existing automated tests still pass.

@QuietMisdreavus
Copy link
Contributor Author

@swift-ci Please test

@franklinsch
Copy link
Contributor

@QuietMisdreavus Did we run a toolchain build to ensure that this change + DocC build together?

@QuietMisdreavus
Copy link
Contributor Author

@franklinsch I'm building that right now, and should be able to test by the end of the day.

@QuietMisdreavus
Copy link
Contributor Author

@franklinsch I was able to build a toolchain with this change and swiftlang/swift-docc#152, and it was properly able to surface and organize instance variables and macros.

@QuietMisdreavus QuietMisdreavus merged commit 3866a31 into release/5.7 Apr 22, 2022
@QuietMisdreavus QuietMisdreavus deleted the revert-25-revert-23-5.7/objc-kinds branch April 22, 2022 23:45
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