From d557e4d8d18432cb80f9bbae8ebc12fa30d0b6ad Mon Sep 17 00:00:00 2001 From: Lee Date: Fri, 13 Oct 2023 20:17:35 +0800 Subject: [PATCH] Fix clang mismatch warning --- include/visitor.hpp | 50 ++++++++++++++++++++++----------------------- 1 file changed, 25 insertions(+), 25 deletions(-) diff --git a/include/visitor.hpp b/include/visitor.hpp index d8eab92b..86656a89 100644 --- a/include/visitor.hpp +++ b/include/visitor.hpp @@ -6,31 +6,31 @@ // Forward declarations to fix the acyclic problem with name only dependency. // NOTE: update the list every time a new kind of node is introduced. -class AstNode; -class StmtNode; -class ExprNode; -class DeclNode; -class BlockStmtNode; -class ProgramNode; -class NullStmtNode; -class ReturnStmtNode; -class ExprStmtNode; -class IdExprNode; -class IntConstExprNode; -class BinaryExprNode; -class PlusExprNode; -class SubExprNode; -class MulExprNode; -class DivExprNode; -class ModExprNode; -class GreaterThanExprNode; -class GreaterThanOrEqualToExprNode; -class LessThanExprNode; -class LessThanOrEqualToExprNode; -class EqualToExprNode; -class NotEqualToExprNode; -class AssignmentExprNode; -class SimpleAssignmentExprNode; +struct AstNode; +struct StmtNode; +struct ExprNode; +struct DeclNode; +struct BlockStmtNode; +struct ProgramNode; +struct NullStmtNode; +struct ReturnStmtNode; +struct ExprStmtNode; +struct IdExprNode; +struct IntConstExprNode; +struct BinaryExprNode; +struct PlusExprNode; +struct SubExprNode; +struct MulExprNode; +struct DivExprNode; +struct ModExprNode; +struct GreaterThanExprNode; +struct GreaterThanOrEqualToExprNode; +struct LessThanExprNode; +struct LessThanOrEqualToExprNode; +struct EqualToExprNode; +struct NotEqualToExprNode; +struct AssignmentExprNode; +struct SimpleAssignmentExprNode; /// @tparam is_modifying If `true`, `Visit()` takes a non-const reference of the /// visitable; otherwise, a const reference. Default to `false`.