Sema: Gate SPI operator fix behind EnforceSPIOperatorGroup

This new check is source breaking. Let's gate it behind an opt-in flag
for now and enable it by default on a new language mode or similar.
This commit is contained in:
Alexis Laferrière
2025-11-11 15:23:36 -08:00
parent b248d2d9b4
commit a4865be7e3
4 changed files with 13 additions and 3 deletions

View File

@@ -146,6 +146,7 @@ UNINTERESTING_FEATURE(SameElementRequirements)
UNINTERESTING_FEATURE(SendingArgsAndResults)
UNINTERESTING_FEATURE(CheckImplementationOnly)
UNINTERESTING_FEATURE(CheckImplementationOnlyStrict)
UNINTERESTING_FEATURE(EnforceSPIOperatorGroup)
static bool findUnderscoredLifetimeAttr(Decl *decl) {
auto hasUnderscoredLifetimeAttr = [](Decl *decl) {