Skip to content

Commit 0c524e5

Browse files
committed
Add RawIdentifiers as a language feature.
This lets clients test `#if hasFeature(RawIdentifiers)` to determine compiler support.
1 parent 9515da8 commit 0c524e5

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
@@ -215,6 +215,7 @@ LANGUAGE_FEATURE(ObjCImplementation, 436, "@objc @implementation extensions")
215215
LANGUAGE_FEATURE(NonescapableTypes, 446, "Nonescapable types")
216216
LANGUAGE_FEATURE(BuiltinEmplaceTypedThrows, 0, "Builtin.emplace typed throws")
217217
SUPPRESSIBLE_LANGUAGE_FEATURE(MemorySafetyAttributes, 458, "@unsafe attribute")
218+
LANGUAGE_FEATURE(RawIdentifiers, 451, "Raw identifiers")
218219

219220
// Swift 6
220221
UPCOMING_FEATURE(ConciseMagicFile, 274, 6)

lib/AST/FeatureSet.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -330,6 +330,7 @@ UNINTERESTING_FEATURE(DebugDescriptionMacro)
330330
UNINTERESTING_FEATURE(ReinitializeConsumeInMultiBlockDefer)
331331
UNINTERESTING_FEATURE(SE427NoInferenceOnExtension)
332332
UNINTERESTING_FEATURE(TrailingComma)
333+
UNINTERESTING_FEATURE(RawIdentifiers)
333334

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

0 commit comments

Comments
 (0)