mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
To support UI applications displaying demangled names in a limited amount of screen space, provide a new SwiftDemangle API and Demangler option to do the following: - Skip all module name prefixes when printing contexts - Don't print implicit self/metatype parameters when printing function types Add a '-simplified' flag to swift-demangle to support testing at the command line. Swift SVN r28727
11 lines
368 B
Swift
11 lines
368 B
Swift
; This is not really a Swift source file: -*- Text -*-
|
|
|
|
%t.input: "A ---> B" ==> "A"
|
|
RUN: sed -ne '/--->/s/ *--->.*$//p' < %S/Inputs/simplified-manglings.txt > %t.input
|
|
|
|
%t.check: "A ---> B" ==> "B"
|
|
RUN: sed -ne '/--->/s/^.*---> *//p' < %S/Inputs/simplified-manglings.txt > %t.check
|
|
|
|
RUN: swift-demangle -simplified < %t.input > %t.output
|
|
RUN: diff %t.check %t.output
|