Skip to content

Commit c25931e

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

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
@@ -204,6 +204,7 @@ LANGUAGE_FEATURE(IsolatedAny2, 431, "@isolated(any) function types")
204204
LANGUAGE_FEATURE(ObjCImplementation, 436, "@objc @implementation extensions")
205205
LANGUAGE_FEATURE(NonescapableTypes, 446, "Nonescapable types")
206206
LANGUAGE_FEATURE(BuiltinEmplaceTypedThrows, 0, "Builtin.emplace typed throws")
207+
LANGUAGE_FEATURE(RawIdentifiers, 451, "Raw identifiers")
207208

208209
// Swift 6
209210
UPCOMING_FEATURE(ConciseMagicFile, 274, 6)

lib/AST/FeatureSet.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -328,6 +328,7 @@ UNINTERESTING_FEATURE(DebugDescriptionMacro)
328328
UNINTERESTING_FEATURE(ReinitializeConsumeInMultiBlockDefer)
329329
UNINTERESTING_FEATURE(SE427NoInferenceOnExtension)
330330
UNINTERESTING_FEATURE(TrailingComma)
331+
UNINTERESTING_FEATURE(RawIdentifiers)
331332

332333
static bool usesFeatureAllowUnsafeAttribute(Decl *decl) {
333334
return decl->getAttrs().hasAttribute<UnsafeAttr>();

0 commit comments

Comments
 (0)