HomePhabricator

[APINotes] Test that 'ResultType' preserves the 'instancetype' flag (#250)

Authored by jordan_rose on Dec 20 2018, 9:03 PM.

Description

[APINotes] Test that 'ResultType' preserves the 'instancetype' flag (#250)

It probably shouldn't, but we now have Apple frameworks relying on
this behavior, and since 'instancetype' isn't a real type you can't
specify it using 'ResultType' anyway. In practice, if we had to be
locked into some behavior for instancetype-returning methods, this
is probably the best one.

apple-llvm-split-commit: a272d4ee2cc15c907786dc679fca458ef00ca0fe
apple-llvm-split-dir: clang/