Commit Graph

7 Commits

Author SHA1 Message Date
Becca Royal-Gordon
da07ff577c [PrintAsClang] Warn about unstable decl order
PrintAsClang is supposed to emit declarations in the same order regardless of the compiler’s internal state, but we have repeatedly found that our current criteria are inadequate, resulting in non-functionality-affecting changes to generated header content. Add a diagnostic that’s emitted when this happens soliciting a bug report.

Since there *should* be no cases where the compiler fails to order declarations, this diagnostic is never actually emitted. Instead, we test this change by enabling `-verify` on nearly all PrintAsClang tests to make sure they are unaffected.

This did demonstrate a missing criterion that only mattered in C++ mode: extensions that varied only in their generic signature were not sorted stably. Add a sort criterion for this.
2025-02-14 21:41:36 -08:00
Ethan Smith
d9dcf06b64 Desugar ElabroatedType in isNSUInteger if present.
Re-enable PrintAsObjC/availability-real-sdk and PrintAsObjC/override, they are now passing.
2023-05-18 15:53:47 -07:00
Erik Eckstein
286295023a tests: temporarily disable PrintAsObjC tests which are failing in rebranch
rdar://102629628
2022-12-01 15:28:14 +01:00
Harlan
665db876ea [InterfaceGen] Print bodies of inlinable functions in textual interfaces (#19224)
* Introduce stored inlinable function bodies

* Remove serialization changes

* [InterfaceGen] Print inlinable function bodies

* Clean up a little bit and add test

* Undo changes to InlinableText

* Add serialization and deserialization for inlinable body text

* Allow parser to parse accessor bodies in interfaces

* Fix some tests

* Fix remaining tests

* Add tests for usableFromInline decls

* Add comments

* Clean up function body printing throughout

* Add tests for subscripts

* Remove comment about subscript inlinable text

* Address some comments

* Handle lack of @objc on Linux
2018-09-14 10:23:15 -07:00
Pitiphong Phongpattranont
0a29962d51 Added: Test cases for the platform deprecation, unavailable and platform unavailable PrintAsObjC 2018-07-27 00:13:37 +07:00
Pitiphong Phongpattranont
b3a0a5ecb9 Add the deprecation messages in the renamed-to Objective-C name test cases 2018-07-25 23:12:56 +07:00
Pitiphong Phongpattranont
65dc151954 Added: New test file for the renaming to the Objective-C functions 2018-07-25 22:59:38 +07:00