Introduce a new suppressible experimental feature to guard @_lifetime

This commit is contained in:
Meghana Gupta
2025-06-06 14:18:31 -07:00
parent 0dfa1fc312
commit dcf072f9d0
9 changed files with 73 additions and 17 deletions

View File

@@ -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;