mirror of
https://github.com/apple/swift.git
synced 2026-03-04 18:24:35 +01:00
The isFromAnnotation flag is set if and only if the lifetime originates from a @lifetime or @_lifetime annotation in the source program. isFromAnnotation==false means that the lifetime dependence checker would infer the same lifetime if the Swift type or decl was printed without an annotation for that dependency. More specifically, it means that the depenence was inferred by the lifetime dependence checker. Some dependencies on imported C/C++ decls are "inferred", but they either correspond to explicit lifetime information in the source (smart pointers, lifetimebound attribute) or are likely to differ from what the dependence checker would infer. As such, we set the flag to true for all of them.
86 KiB
86 KiB