@@ -1764,6 +1764,16 @@ def symbol_graph_minimum_access_level: Separate<["-"], "symbol-graph-minimum-acc
1764
1764
HelpText<"Include symbols with this access level or more when emitting a symbol graph">,
1765
1765
MetaVarName<"<level>">;
1766
1766
1767
+ def symbol_graph_allow_availability_platforms: Separate<["-"], "symbol-graph-allow-availability-platforms">,
1768
+ Flags<[FrontendOption, NoInteractiveOption, SupplementaryOutput, HelpHidden]>,
1769
+ HelpText<"Restrict availability metadata to the given platforms, e.g. 'macOS,Swift'">,
1770
+ MetaVarName<"<platforms>">;
1771
+
1772
+ def symbol_graph_block_availability_platforms: Separate<["-"], "symbol-graph-block-availability-platforms">,
1773
+ Flags<[FrontendOption, NoInteractiveOption, SupplementaryOutput, HelpHidden]>,
1774
+ HelpText<"Remove the given platforms from symbol graph availability metadata, e.g. 'macOS,Swift'">,
1775
+ MetaVarName<"<platforms>">;
1776
+
1767
1777
def pretty_print: Flag<["-"], "pretty-print">,
1768
1778
Flags<[SwiftSymbolGraphExtractOption]>,
1769
1779
HelpText<"Pretty-print the output JSON">;
@@ -1778,6 +1788,16 @@ def omit_extension_block_symbols: Flag<["-"], "omit-extension-block-symbols">,
1778
1788
NoInteractiveOption, SupplementaryOutput, HelpHidden]>,
1779
1789
HelpText<"Directly associate members and conformances with the extended nominal when generating symbol graphs instead of emitting 'swift.extension' symbols for extensions to external types">;
1780
1790
1791
+ def allow_availability_platforms: Separate<["-"], "allow-availability-platforms">,
1792
+ Flags<[SwiftSymbolGraphExtractOption]>,
1793
+ HelpText<"Restrict availability metadata to the given platforms, e.g. 'macOS,Swift'">,
1794
+ MetaVarName<"<platforms>">;
1795
+
1796
+ def block_availability_platforms: Separate<["-"], "block-availability-platforms">,
1797
+ Flags<[SwiftSymbolGraphExtractOption]>,
1798
+ HelpText<"Remove the given platforms from symbol graph availability metadata, e.g. 'macOS,Swift'">,
1799
+ MetaVarName<"<platforms>">;
1800
+
1781
1801
// swift-synthesize-interface-only options
1782
1802
def include_submodules : Flag<["-"], "include-submodules">,
1783
1803
Flags<[NoDriverOption, SwiftSynthesizeInterfaceOption]>,
0 commit comments