Skip to content

Commit 7797664

Browse files
committed
Add RawIdentifiers as a language feature.
This lets clients test `#if hasFeature(RawIdentifiers)` to determine compiler support.
1 parent 97d9ca1 commit 7797664

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

include/swift/Basic/Features.def

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,7 @@ LANGUAGE_FEATURE(NonescapableTypes, 446, "Nonescapable types")
252252
LANGUAGE_FEATURE(BuiltinEmplaceTypedThrows, 0, "Builtin.emplace typed throws")
253253
SUPPRESSIBLE_LANGUAGE_FEATURE(MemorySafetyAttributes, 458, "@unsafe attribute")
254254
LANGUAGE_FEATURE(ValueGenerics, 452, "Value generics feature (integer generics)")
255+
LANGUAGE_FEATURE(RawIdentifiers, 451, "Raw identifiers")
255256

256257
// Swift 6
257258
UPCOMING_FEATURE(ConciseMagicFile, 274, 6)

lib/AST/FeatureSet.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,7 @@ UNINTERESTING_FEATURE(DebugDescriptionMacro)
331331
UNINTERESTING_FEATURE(ReinitializeConsumeInMultiBlockDefer)
332332
UNINTERESTING_FEATURE(SE427NoInferenceOnExtension)
333333
UNINTERESTING_FEATURE(TrailingComma)
334+
UNINTERESTING_FEATURE(RawIdentifiers)
334335

335336
static ABIAttr *getABIAttr(Decl *decl) {
336337
if (auto pbd = dyn_cast<PatternBindingDecl>(decl))

0 commit comments

Comments
 (0)