Commit Graph

4 Commits

Author SHA1 Message Date
David Farler
b7d17b25ba Rename -parse flag to -typecheck
A parse-only option is needed for parse performance tracking and the
current option also includes semantic analysis.
2016-11-28 10:50:55 -08:00
Jordan Rose
3d9d0a3c90 Allow nested names in @available(*, renamed:"..."). (#2722)
This can be used as QoI for things like 'NSASCIIStringEncoding', which
is going to canonically be `String.Encoding.ascii` if/when SE-0086 is
accepted.

We can't actually handle this in NS_SWIFT_NAME (that is, we can't
/import/ something onto a nested type), but that's okay: we already
have stricter limitations on NS_SWIFT_NAME enforced by Clang.

rdar://problem/26352374
2016-05-26 12:54:05 -07:00
Joe Groff
859ef7b088 Add test that we still import Clang decls with rejected SwiftName API notes.
Most cases fall out from swift_name validation on the Clang side dropping invalid API notes, though the validation on the Clang side is conservative and misses some cases. We still have Swift-side work to fall back to the original name here.
2016-05-19 13:25:48 -07:00
Joe Groff
ea1bf9c999 Add a test that C functions with malformed import-as-member-property API notes don't crash. 2016-05-18 11:03:52 -07:00