Commit Graph

7 Commits

Author SHA1 Message Date
Doug Gregor
78cb038cbb [Omit needless words] Don't prefix-strip when dumping APIs.
We're going to delay NS prefix stripping for a bit. Change the API
dump script accordingly, and bump the Swift name lookup table format
version number so this doesn't break everyone who has already run
swift-api-dump.py.
2016-02-22 14:24:20 -08:00
Brian Gesiak
9980b5b062 [swift-api-dump] Omit 'python' in usage (NFC)
- Since this file has a Python shebang (`#!/usr/bin/env python`) at the top, it can be invoked directly, without specifying which Python interpreter to use on the command line.
- Use the `%(prog)s` substitution instead of writing the program name again explicitly.
2016-02-15 14:48:05 -05:00
Doug Gregor
fc43acd501 [swift-api-dump] Add support for -F/-I arguments. 2016-02-15 11:38:00 -08:00
Doug Gregor
9832468dac Install swift-api-dump.py script to make it easier to use 2016-02-15 11:38:00 -08:00
Doug Gregor
7d26349c9c Rename omit-needless-words.py to swift-api-dump.py.
This script is more general than its name implies. NFC
2016-02-15 11:38:00 -08:00
Chris Lattner
c66fdac034 Revert "Generalize omit-needless-words script to swift-api-dump."
This reverts commit a4e4af0c40.
2016-02-09 22:33:52 -08:00
Doug Gregor
a4e4af0c40 Generalize omit-needless-words script to swift-api-dump.
The omit-needless-words script has grown into a more general "API
dumping" script. Make it a bit more useful by installing it alongside
swift-ide-test, symlinking it in the build directory next to
swift-ide-test (for Swift developers), and defaulting to using the
swift-ide-test in the same directory as the script. Now it's fairly
easy to dump the API for a given SDK with, e.g.,

  swift-api-dump.py -s iphoneos
2016-02-09 16:41:24 -08:00