mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
ArraySemantic: Add isMayRelease method
Returns whether this array semantic call has a neutral effect on reference counts. Swift SVN r25925
This commit is contained in:
@@ -100,6 +100,12 @@ public:
|
||||
/// Is this an semantics call.
|
||||
operator bool() { return SemanticsCall != nullptr; }
|
||||
|
||||
/// Return whether this semantic call may release an object such that this is
|
||||
/// observable from the caller. A balanced retain release is not observable
|
||||
/// from the caller. A release for an @owned parameter is observable from the
|
||||
/// caller.
|
||||
bool isMayRelease();
|
||||
|
||||
protected:
|
||||
/// Validate the signature of this call.
|
||||
bool isValidSignature();
|
||||
|
||||
Reference in New Issue
Block a user