diff --git a/src/ast/array_accessor_expression.h b/src/ast/array_accessor_expression.h index fb5e5bc288..543ec1d81e 100644 --- a/src/ast/array_accessor_expression.h +++ b/src/ast/array_accessor_expression.h @@ -48,9 +48,6 @@ class ArrayAccessorExpression /// the index expression Expression* const index; - - private: - ArrayAccessorExpression(const ArrayAccessorExpression&) = delete; }; } // namespace ast diff --git a/src/ast/assignment_statement.h b/src/ast/assignment_statement.h index bb8ea25f6e..c6fdc5a065 100644 --- a/src/ast/assignment_statement.h +++ b/src/ast/assignment_statement.h @@ -48,9 +48,6 @@ class AssignmentStatement : public Castable { /// right side expression Expression* const rhs; - - private: - AssignmentStatement(const AssignmentStatement&) = delete; }; } // namespace ast diff --git a/src/ast/binary_expression.h b/src/ast/binary_expression.h index 8c088f407a..bca7aa4c05 100644 --- a/src/ast/binary_expression.h +++ b/src/ast/binary_expression.h @@ -118,9 +118,6 @@ class BinaryExpression : public Castable { Expression* const lhs; /// the right side expression Expression* const rhs; - - private: - BinaryExpression(const BinaryExpression&) = delete; }; inline bool BinaryExpression::IsArithmetic() const { diff --git a/src/ast/bitcast_expression.h b/src/ast/bitcast_expression.h index 6a0a60a24e..a599679939 100644 --- a/src/ast/bitcast_expression.h +++ b/src/ast/bitcast_expression.h @@ -49,9 +49,6 @@ class BitcastExpression : public Castable { ast::Type* const type; /// the expression Expression* const expr; - - private: - BitcastExpression(const BitcastExpression&) = delete; }; } // namespace ast diff --git a/src/ast/block_statement.h b/src/ast/block_statement.h index f37db9eca5..f8f39b1a6b 100644 --- a/src/ast/block_statement.h +++ b/src/ast/block_statement.h @@ -52,9 +52,6 @@ class BlockStatement : public Castable { /// the statement list StatementList const statements; - - private: - BlockStatement(const BlockStatement&) = delete; }; } // namespace ast diff --git a/src/ast/break_statement.h b/src/ast/break_statement.h index 2bc74f956c..15aeebed28 100644 --- a/src/ast/break_statement.h +++ b/src/ast/break_statement.h @@ -36,9 +36,6 @@ class BreakStatement : public Castable { /// @param ctx the clone context /// @return the newly cloned node BreakStatement* Clone(CloneContext* ctx) const override; - - private: - BreakStatement(const BreakStatement&) = delete; }; } // namespace ast diff --git a/src/ast/call_expression.h b/src/ast/call_expression.h index 7cf625ef53..6693e2f2d7 100644 --- a/src/ast/call_expression.h +++ b/src/ast/call_expression.h @@ -49,9 +49,6 @@ class CallExpression : public Castable { IdentifierExpression* const func; /// The arguments ExpressionList const args; - - private: - CallExpression(const CallExpression&) = delete; }; } // namespace ast diff --git a/src/ast/call_statement.h b/src/ast/call_statement.h index 2eb5aa33de..130e7f5657 100644 --- a/src/ast/call_statement.h +++ b/src/ast/call_statement.h @@ -41,9 +41,6 @@ class CallStatement : public Castable { /// The call expression CallExpression* const expr; - - private: - CallStatement(const CallStatement&) = delete; }; } // namespace ast diff --git a/src/ast/case_statement.h b/src/ast/case_statement.h index eb74d59d07..ed96a11d74 100644 --- a/src/ast/case_statement.h +++ b/src/ast/case_statement.h @@ -56,9 +56,6 @@ class CaseStatement : public Castable { /// The case body BlockStatement* const body; - - private: - CaseStatement(const CaseStatement&) = delete; }; /// A list of case statements diff --git a/src/ast/constructor_expression.h b/src/ast/constructor_expression.h index 93a19fd881..fc19e98ee6 100644 --- a/src/ast/constructor_expression.h +++ b/src/ast/constructor_expression.h @@ -33,9 +33,6 @@ class ConstructorExpression ConstructorExpression(ProgramID pid, const Source& src); /// Move constructor ConstructorExpression(ConstructorExpression&&); - - private: - ConstructorExpression(const ConstructorExpression&) = delete; }; } // namespace ast diff --git a/src/ast/continue_statement.h b/src/ast/continue_statement.h index eaf799d8d1..73445a3a06 100644 --- a/src/ast/continue_statement.h +++ b/src/ast/continue_statement.h @@ -36,9 +36,6 @@ class ContinueStatement : public Castable { /// @param ctx the clone context /// @return the newly cloned node ContinueStatement* Clone(CloneContext* ctx) const override; - - private: - ContinueStatement(const ContinueStatement&) = delete; }; } // namespace ast diff --git a/src/ast/discard_statement.h b/src/ast/discard_statement.h index 2159323461..1284b755ab 100644 --- a/src/ast/discard_statement.h +++ b/src/ast/discard_statement.h @@ -36,9 +36,6 @@ class DiscardStatement : public Castable { /// @param ctx the clone context /// @return the newly cloned node DiscardStatement* Clone(CloneContext* ctx) const override; - - private: - DiscardStatement(const DiscardStatement&) = delete; }; } // namespace ast diff --git a/src/ast/else_statement.h b/src/ast/else_statement.h index 5cdc344855..6dcc2c9bd5 100644 --- a/src/ast/else_statement.h +++ b/src/ast/else_statement.h @@ -50,9 +50,6 @@ class ElseStatement : public Castable { /// The else body BlockStatement* const body; - - private: - ElseStatement(const ElseStatement&) = delete; }; /// A list of else statements diff --git a/src/ast/expression.h b/src/ast/expression.h index a319f1623b..b5a51f24cf 100644 --- a/src/ast/expression.h +++ b/src/ast/expression.h @@ -36,9 +36,6 @@ class Expression : public Castable { Expression(ProgramID pid, const Source& src); /// Move constructor Expression(Expression&&); - - private: - Expression(const Expression&) = delete; }; /// A list of expressions diff --git a/src/ast/fallthrough_statement.h b/src/ast/fallthrough_statement.h index 026a907c18..282869f99a 100644 --- a/src/ast/fallthrough_statement.h +++ b/src/ast/fallthrough_statement.h @@ -36,9 +36,6 @@ class FallthroughStatement : public Castable { /// @param ctx the clone context /// @return the newly cloned node FallthroughStatement* Clone(CloneContext* ctx) const override; - - private: - FallthroughStatement(const FallthroughStatement&) = delete; }; } // namespace ast diff --git a/src/ast/for_loop_statement.h b/src/ast/for_loop_statement.h index 2dcd1675f3..72b502603b 100644 --- a/src/ast/for_loop_statement.h +++ b/src/ast/for_loop_statement.h @@ -59,9 +59,6 @@ class ForLoopStatement : public Castable { /// The loop body block BlockStatement* const body; - - private: - ForLoopStatement(const ForLoopStatement&) = delete; }; } // namespace ast diff --git a/src/ast/function.h b/src/ast/function.h index 2e60d55646..a76c6e1232 100644 --- a/src/ast/function.h +++ b/src/ast/function.h @@ -86,9 +86,6 @@ class Function : public Castable { /// The decorations attached to the function return type. DecorationList const return_type_decorations; - - private: - Function(const Function&) = delete; }; /// A list of functions diff --git a/src/ast/identifier_expression.h b/src/ast/identifier_expression.h index b60a5ad25f..7977b293f9 100644 --- a/src/ast/identifier_expression.h +++ b/src/ast/identifier_expression.h @@ -40,9 +40,6 @@ class IdentifierExpression : public Castable { /// The symbol for the identifier Symbol const symbol; - - private: - IdentifierExpression(const IdentifierExpression&) = delete; }; } // namespace ast diff --git a/src/ast/if_statement.h b/src/ast/if_statement.h index f955107283..cd37ba0cfb 100644 --- a/src/ast/if_statement.h +++ b/src/ast/if_statement.h @@ -54,9 +54,6 @@ class IfStatement : public Castable { /// The else statements ElseStatementList const else_statements; - - private: - IfStatement(const IfStatement&) = delete; }; } // namespace ast diff --git a/src/ast/loop_statement.h b/src/ast/loop_statement.h index 062ad39d5c..5f0ba50944 100644 --- a/src/ast/loop_statement.h +++ b/src/ast/loop_statement.h @@ -47,9 +47,6 @@ class LoopStatement : public Castable { /// The continuing statements BlockStatement* const continuing; - - private: - LoopStatement(const LoopStatement&) = delete; }; } // namespace ast diff --git a/src/ast/member_accessor_expression.h b/src/ast/member_accessor_expression.h index a5c0bed3c1..9716e2ed91 100644 --- a/src/ast/member_accessor_expression.h +++ b/src/ast/member_accessor_expression.h @@ -48,9 +48,6 @@ class MemberAccessorExpression /// The member expression IdentifierExpression* const member; - - private: - MemberAccessorExpression(const MemberAccessorExpression&) = delete; }; } // namespace ast diff --git a/src/ast/return_statement.h b/src/ast/return_statement.h index c6dd4a64c7..79e1b35e97 100644 --- a/src/ast/return_statement.h +++ b/src/ast/return_statement.h @@ -46,9 +46,6 @@ class ReturnStatement : public Castable { /// The value returned. May be null. Expression* const value; - - private: - ReturnStatement(const ReturnStatement&) = delete; }; } // namespace ast diff --git a/src/ast/scalar_constructor_expression.h b/src/ast/scalar_constructor_expression.h index ad1d1caa87..47412ac493 100644 --- a/src/ast/scalar_constructor_expression.h +++ b/src/ast/scalar_constructor_expression.h @@ -44,9 +44,6 @@ class ScalarConstructorExpression /// The literal value Literal* const literal; - - private: - ScalarConstructorExpression(const ScalarConstructorExpression&) = delete; }; } // namespace ast diff --git a/src/ast/statement.h b/src/ast/statement.h index 24e3cd2925..bc31e37ee6 100644 --- a/src/ast/statement.h +++ b/src/ast/statement.h @@ -37,9 +37,6 @@ class Statement : public Castable { Statement(ProgramID pid, const Source& src); /// Move constructor Statement(Statement&&); - - private: - Statement(const Statement&) = delete; }; /// A list of statements diff --git a/src/ast/struct.h b/src/ast/struct.h index beecd27c75..6235b2e01e 100644 --- a/src/ast/struct.h +++ b/src/ast/struct.h @@ -58,9 +58,6 @@ class Struct : public Castable { /// The struct decorations DecorationList const decorations; - - private: - Struct(const Struct&) = delete; }; } // namespace ast diff --git a/src/ast/struct_member.h b/src/ast/struct_member.h index c3865b5461..ac3725bde5 100644 --- a/src/ast/struct_member.h +++ b/src/ast/struct_member.h @@ -59,9 +59,6 @@ class StructMember : public Castable { /// The decorations DecorationList const decorations; - - private: - StructMember(const StructMember&) = delete; }; /// A list of struct members diff --git a/src/ast/switch_statement.h b/src/ast/switch_statement.h index beec41955e..8f9a8e7946 100644 --- a/src/ast/switch_statement.h +++ b/src/ast/switch_statement.h @@ -51,8 +51,6 @@ class SwitchStatement : public Castable { /// The Switch body CaseStatementList const body; - - private: SwitchStatement(const SwitchStatement&) = delete; }; diff --git a/src/ast/type_constructor_expression.h b/src/ast/type_constructor_expression.h index f8590d4946..b61d8ddb4b 100644 --- a/src/ast/type_constructor_expression.h +++ b/src/ast/type_constructor_expression.h @@ -53,9 +53,6 @@ class TypeConstructorExpression /// The values ExpressionList const values; - - private: - TypeConstructorExpression(const TypeConstructorExpression&) = delete; }; } // namespace ast diff --git a/src/ast/type_decl.h b/src/ast/type_decl.h index df6b94d113..2ad75c394e 100644 --- a/src/ast/type_decl.h +++ b/src/ast/type_decl.h @@ -37,10 +37,6 @@ class TypeDecl : public Castable { /// The name of the type declaration Symbol const name; - - private: - TypeDecl(const TypeDecl&) = delete; - TypeDecl& operator=(const TypeDecl&) = delete; }; } // namespace ast diff --git a/src/ast/unary_op_expression.h b/src/ast/unary_op_expression.h index 03345f5023..baecf4a832 100644 --- a/src/ast/unary_op_expression.h +++ b/src/ast/unary_op_expression.h @@ -48,9 +48,6 @@ class UnaryOpExpression : public Castable { /// The expression Expression* const expr; - - private: - UnaryOpExpression(const UnaryOpExpression&) = delete; }; } // namespace ast diff --git a/src/ast/variable.h b/src/ast/variable.h index b02db6e700..66d48113f8 100644 --- a/src/ast/variable.h +++ b/src/ast/variable.h @@ -152,9 +152,6 @@ class Variable : public Castable { /// The declared access control Access const declared_access; - - private: - Variable(const Variable&) = delete; }; /// A list of variables diff --git a/src/ast/variable_decl_statement.h b/src/ast/variable_decl_statement.h index ef67ded978..33351795d0 100644 --- a/src/ast/variable_decl_statement.h +++ b/src/ast/variable_decl_statement.h @@ -44,9 +44,6 @@ class VariableDeclStatement /// The variable Variable* const variable; - - private: - VariableDeclStatement(const VariableDeclStatement&) = delete; }; } // namespace ast