mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[Omit needless words] Add a flag to let us skip overrides and witnesses.
When performing Swift API dumps, it's helpful to avoid putting redundant APIs into the results. Therefore, filter out any APIs that are overrides of another API or are witnesses for a protocol requirement, since the original definition (that doesn't override any other or is a protocol requirement) is what determines the APIs name.
This commit is contained in:
@@ -229,7 +229,7 @@ def main():
|
||||
parser = create_parser()
|
||||
args = parser.parse_args()
|
||||
|
||||
cmd_common = [args.swift_ide_test, '-print-module', '-source-filename', source_filename, '-module-print-skip-overlay', '-skip-unavailable', '-skip-print-doc-comments', '-always-argument-labels']
|
||||
cmd_common = [args.swift_ide_test, '-print-module', '-source-filename', source_filename, '-module-print-skip-overlay', '-skip-unavailable', '-skip-print-doc-comments', '-always-argument-labels', '-skip-overrides']
|
||||
|
||||
# Add -F / -I arguments.
|
||||
if args.framework_dir:
|
||||
|
||||
Reference in New Issue
Block a user