Skip to content

Commit beb6caf

Browse files
authored
Merge pull request #35118 from ahoppen/moveonly-syntaxcontext
Make the SyntaxParsingContext move-only
2 parents 79a7d38 + c27a96c commit beb6caf

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

include/swift/Parse/SyntaxParsingContext.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,9 @@ class alignas(1 << SyntaxAlignInBits) SyntaxParsingContext {
220220
setCreateSyntax(Kind);
221221
}
222222

223+
SyntaxParsingContext(const SyntaxParsingContext &other) = delete;
224+
SyntaxParsingContext &operator=(const SyntaxParsingContext &other) = delete;
225+
223226
~SyntaxParsingContext();
224227

225228
/// Try looking up if an unmodified node exists at \p LexerOffset of the same

0 commit comments

Comments
 (0)