mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Temporarily reinstate LangOptions::EnableBareSlashRegexLiterals for LLDB
This commit is contained in:
@@ -229,6 +229,10 @@ bool LangOptions::hasFeature(Feature feature) const {
|
||||
if (Features.contains(feature))
|
||||
return true;
|
||||
|
||||
if (feature == Feature::BareSlashRegexLiterals &&
|
||||
EnableBareSlashRegexLiterals)
|
||||
return true;
|
||||
|
||||
if (auto version = getFeatureLanguageVersion(feature))
|
||||
return isSwiftVersionAtLeast(*version);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user