Skip to content

Commit c27a96c

Browse files
committed
[syntax-parse] Make the SyntaxParsingContext move-only
1 parent fb4583f commit c27a96c

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)