Skip to content

Commit 7e6f8ba

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

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
@@ -203,6 +203,7 @@ CONDITIONALLY_SUPPRESSIBLE_LANGUAGE_FEATURE(IsolatedAny, 431, "@isolated(any) fu
203203
LANGUAGE_FEATURE(IsolatedAny2, 431, "@isolated(any) function types")
204204
LANGUAGE_FEATURE(ObjCImplementation, 436, "@objc @implementation extensions")
205205
LANGUAGE_FEATURE(NonescapableTypes, 446, "Nonescapable types")
206+
LANGUAGE_FEATURE(RawIdentifiers, 451, "Raw identifiers")
206207

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

lib/AST/FeatureSet.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -317,6 +317,7 @@ UNINTERESTING_FEATURE(DebugDescriptionMacro)
317317
UNINTERESTING_FEATURE(ReinitializeConsumeInMultiBlockDefer)
318318
UNINTERESTING_FEATURE(SE427NoInferenceOnExtension)
319319
UNINTERESTING_FEATURE(TrailingComma)
320+
UNINTERESTING_FEATURE(RawIdentifiers)
320321

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

0 commit comments

Comments
 (0)