rules_apple icon indicating copy to clipboard operation
rules_apple copied to clipboard

Support extension blocks in DocC rule

Open luispadron opened this issue 1 year ago • 0 comments

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

luispadron avatar Apr 09 '24 22:04 luispadron