mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Introduce a new suppressible experimental feature to guard @_lifetime
This commit is contained in:
@@ -3261,6 +3261,13 @@ suppressingFeatureIsolatedDeinit(PrintOptions &options,
|
||||
action();
|
||||
}
|
||||
|
||||
static void
|
||||
suppressingFeatureLifetimes(PrintOptions &options,
|
||||
llvm::function_ref<void()> action) {
|
||||
llvm::SaveAndRestore<bool> scope(options.SuppressLifetimes, true);
|
||||
action();
|
||||
}
|
||||
|
||||
namespace {
|
||||
struct ExcludeAttrRAII {
|
||||
std::vector<AnyAttrKind> &ExcludeAttrList;
|
||||
|
||||
Reference in New Issue
Block a user