diff --git a/include/slang/ast/expressions/OperatorExpressions.h b/include/slang/ast/expressions/OperatorExpressions.h index f837edcb2..e4986ef2b 100644 --- a/include/slang/ast/expressions/OperatorExpressions.h +++ b/include/slang/ast/expressions/OperatorExpressions.h @@ -22,8 +22,7 @@ class SLANG_EXPORT UnaryExpression : public Expression { UnaryExpression(UnaryOperator op, const Type& type, Expression& operand, SourceRange sourceRange) : - Expression(ExpressionKind::UnaryOp, type, sourceRange), - op(op), operand_(&operand) {} + Expression(ExpressionKind::UnaryOp, type, sourceRange), op(op), operand_(&operand) {} const Expression& operand() const { return *operand_; } Expression& operand() { return *operand_; } @@ -61,8 +60,8 @@ class SLANG_EXPORT BinaryExpression : public Expression { BinaryExpression(BinaryOperator op, const Type& type, Expression& left, Expression& right, SourceRange sourceRange) : - Expression(ExpressionKind::BinaryOp, type, sourceRange), - op(op), left_(&left), right_(&right) {} + Expression(ExpressionKind::BinaryOp, type, sourceRange), op(op), left_(&left), + right_(&right) {} const Expression& left() const { return *left_; } Expression& left() { return *left_; } @@ -109,8 +108,8 @@ class SLANG_EXPORT ConditionalExpression : public Expression { ConditionalExpression(const Type& type, std::span conditions, Expression& left, Expression& right, SourceRange sourceRange, bool isConst, bool isTrue) : - Expression(ExpressionKind::ConditionalOp, type, sourceRange), - conditions(conditions), left_(&left), right_(&right), isConst(isConst), isTrue(isTrue) {} + Expression(ExpressionKind::ConditionalOp, type, sourceRange), conditions(conditions), + left_(&left), right_(&right), isConst(isConst), isTrue(isTrue) {} const Expression& left() const { return *left_; } // NOLINT Expression& left() { return *left_; } @@ -160,8 +159,8 @@ class SLANG_EXPORT InsideExpression : public Expression { public: InsideExpression(const Type& type, const Expression& left, std::span rangeList, SourceRange sourceRange) : - Expression(ExpressionKind::Inside, type, sourceRange), - left_(&left), rangeList_(rangeList) {} + Expression(ExpressionKind::Inside, type, sourceRange), left_(&left), rangeList_(rangeList) { + } const Expression& left() const { return *left_; } @@ -194,8 +193,7 @@ class SLANG_EXPORT ConcatenationExpression : public Expression { public: ConcatenationExpression(const Type& type, std::span operands, SourceRange sourceRange) : - Expression(ExpressionKind::Concatenation, type, sourceRange), - operands_(operands) {} + Expression(ExpressionKind::Concatenation, type, sourceRange), operands_(operands) {} std::span operands() const { return operands_; } @@ -229,8 +227,8 @@ class SLANG_EXPORT ReplicationExpression : public Expression { public: ReplicationExpression(const Type& type, const Expression& count, Expression& concat, SourceRange sourceRange) : - Expression(ExpressionKind::Replication, type, sourceRange), - count_(&count), concat_(&concat) {} + Expression(ExpressionKind::Replication, type, sourceRange), count_(&count), + concat_(&concat) {} const Expression& count() const { return *count_; } @@ -270,8 +268,8 @@ class SLANG_EXPORT StreamingConcatenationExpression : public Expression { StreamingConcatenationExpression(const Type& type, uint64_t sliceSize, uint64_t bitstreamWidth, std::span streams, SourceRange sourceRange) : - Expression(ExpressionKind::Streaming, type, sourceRange), - streams_(streams), sliceSize(sliceSize), bitstreamWidth(bitstreamWidth) {} + Expression(ExpressionKind::Streaming, type, sourceRange), streams_(streams), + sliceSize(sliceSize), bitstreamWidth(bitstreamWidth) {} bool isFixedSize() const; uint64_t getBitstreamWidth() const { return bitstreamWidth; } @@ -314,8 +312,7 @@ class SLANG_EXPORT ValueRangeExpression : public Expression { public: ValueRangeExpression(const Type& type, Expression& left, Expression& right, SourceRange sourceRange) : - Expression(ExpressionKind::ValueRange, type, sourceRange), - left_(&left), right_(&right) {} + Expression(ExpressionKind::ValueRange, type, sourceRange), left_(&left), right_(&right) {} const Expression& left() const { return *left_; } Expression& left() { return *left_; }