rules_apple
rules_apple copied to clipboard
Support extension blocks in DocC rule
With Xcode 15+ it's possible to generate documentation using DocC for extensions as well (e.g. code in an extension block).
This is enabled in Xcode via the DOCC_EXTRACT_EXTENSION_SYMBOLS Xcode configuration variable. For Bazel, we'd likely need to update the rule which currently emits symbol graphs to pass an additional flag to also emit the symbols for extension blocks.
SPM uses these flags: https://github.com/apple/swift-package-manager/blob/main/Sources/Commands/Utilities/SymbolGraphExtract.swift#L86
-emit-extension-block-symbols-omit-extension-block-symbols