@@ -83,6 +83,7 @@ public final class OptionsCatalog {
83
83
public static final OptionKey <Boolean > CEXTS_LOG_WARNINGS_KEY = new OptionKey <>(false );
84
84
public static final OptionKey <Boolean > WARN_DEPRECATED_KEY = new OptionKey <>(false );
85
85
public static final OptionKey <Boolean > WARN_EXPERIMENTAL_KEY = new OptionKey <>(true );
86
+ public static final OptionKey <Boolean > WARN_PERFORMANCE_KEY = new OptionKey <>(false );
86
87
public static final OptionKey <Boolean > USE_TRUFFLE_REGEX_KEY = new OptionKey <>(true );
87
88
public static final OptionKey <Boolean > WARN_TRUFFLE_REGEX_COMPILE_FALLBACK_KEY = new OptionKey <>(false );
88
89
public static final OptionKey <Boolean > WARN_TRUFFLE_REGEX_MATCH_FALLBACK_KEY = new OptionKey <>(false );
@@ -654,15 +655,23 @@ public final class OptionsCatalog {
654
655
655
656
public static final OptionDescriptor WARN_DEPRECATED = OptionDescriptor
656
657
.newBuilder (WARN_DEPRECATED_KEY , "ruby.warn-deprecated" )
657
- .help ("Sets deprecated Warning category (configured by the -W Ruby option)" )
658
+ .help ("Sets the deprecated Warning category (configured by the -W Ruby option)" )
658
659
.category (OptionCategory .EXPERT )
659
660
.stability (OptionStability .EXPERIMENTAL )
660
661
.usageSyntax ("" )
661
662
.build ();
662
663
663
664
public static final OptionDescriptor WARN_EXPERIMENTAL = OptionDescriptor
664
665
.newBuilder (WARN_EXPERIMENTAL_KEY , "ruby.warn-experimental" )
665
- .help ("Sets experimental Warning category (configured by the -W Ruby option)" )
666
+ .help ("Sets the experimental Warning category (configured by the -W Ruby option)" )
667
+ .category (OptionCategory .EXPERT )
668
+ .stability (OptionStability .EXPERIMENTAL )
669
+ .usageSyntax ("" )
670
+ .build ();
671
+
672
+ public static final OptionDescriptor WARN_PERFORMANCE = OptionDescriptor
673
+ .newBuilder (WARN_PERFORMANCE_KEY , "ruby.warn-performance" )
674
+ .help ("Sets the performance Warning category (configured by the -W Ruby option)" )
666
675
.category (OptionCategory .EXPERT )
667
676
.stability (OptionStability .EXPERIMENTAL )
668
677
.usageSyntax ("" )
@@ -1436,6 +1445,8 @@ public static OptionDescriptor fromName(String name) {
1436
1445
return WARN_DEPRECATED ;
1437
1446
case "ruby.warn-experimental" :
1438
1447
return WARN_EXPERIMENTAL ;
1448
+ case "ruby.warn-performance" :
1449
+ return WARN_PERFORMANCE ;
1439
1450
case "ruby.use-truffle-regex" :
1440
1451
return USE_TRUFFLE_REGEX ;
1441
1452
case "ruby.warn-truffle-regex-compile-fallback" :
@@ -1666,6 +1677,7 @@ public static OptionDescriptor[] allDescriptors() {
1666
1677
CEXTS_LOG_WARNINGS ,
1667
1678
WARN_DEPRECATED ,
1668
1679
WARN_EXPERIMENTAL ,
1680
+ WARN_PERFORMANCE ,
1669
1681
USE_TRUFFLE_REGEX ,
1670
1682
WARN_TRUFFLE_REGEX_COMPILE_FALLBACK ,
1671
1683
WARN_TRUFFLE_REGEX_MATCH_FALLBACK ,
0 commit comments