Skip to content

Commit 78cb038

Browse files
committed
[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.
1 parent 5ace1b4 commit 78cb038

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/ClangImporter/SwiftLookupTable.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ const uint16_t SWIFT_LOOKUP_TABLE_VERSION_MAJOR = 1;
5151
/// Lookup table minor version number.
5252
///
5353
/// When the format changes IN ANY WAY, this number should be incremented.
54-
const uint16_t SWIFT_LOOKUP_TABLE_VERSION_MINOR = 7; // enum case casing
54+
const uint16_t SWIFT_LOOKUP_TABLE_VERSION_MINOR = 8; // NS prefix stripping
5555

5656
/// A lookup table that maps Swift names to the set of Clang
5757
/// declarations with that particular name.

utils/swift-api-dump.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ def main():
242242
# Determine the set of extra arguments we'll use.
243243
extra_args = ['-skip-imports']
244244
if args.swift_3:
245-
extra_args = extra_args + ['-enable-omit-needless-words', '-enable-infer-default-arguments', '-enable-strip-ns-prefix']
245+
extra_args = extra_args + ['-enable-omit-needless-words', '-enable-infer-default-arguments']
246246

247247
# Create a .swift file we can feed into swift-ide-test
248248
subprocess.call(['touch', source_filename])

0 commit comments

Comments
 (0)