File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -354,6 +354,9 @@ namespace swift {
354
354
// / The set of features that have been enabled.
355
355
llvm::SmallSet<Feature, 2 > Features;
356
356
357
+ // / Temporary flag to support LLDB's transition to using \c Features.
358
+ bool EnableBareSlashRegexLiterals = false ;
359
+
357
360
// / Use Clang function types for computing canonical types.
358
361
// / If this option is false, the clang function types will still be computed
359
362
// / but will not be used for checking type equality.
Original file line number Diff line number Diff line change @@ -229,6 +229,10 @@ bool LangOptions::hasFeature(Feature feature) const {
229
229
if (Features.contains (feature))
230
230
return true ;
231
231
232
+ if (feature == Feature::BareSlashRegexLiterals &&
233
+ EnableBareSlashRegexLiterals)
234
+ return true ;
235
+
232
236
if (auto version = getFeatureLanguageVersion (feature))
233
237
return isSwiftVersionAtLeast (*version);
234
238
You can’t perform that action at this time.
0 commit comments