Skip to content

Commit

Permalink
Rename Statements.{h,cpp} -> Statement.{h,cpp}
Browse files Browse the repository at this point in the history
  • Loading branch information
MikePopoloski committed Nov 23, 2024
1 parent 8c86568 commit 42c3445
Show file tree
Hide file tree
Showing 11 changed files with 13 additions and 12 deletions.
1 change: 0 additions & 1 deletion include/slang/ast/ASTVisitor.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

#include "slang/ast/Constraints.h"
#include "slang/ast/Patterns.h"
#include "slang/ast/Statements.h"
#include "slang/ast/TimingControl.h"
#include "slang/ast/expressions/AssertionExpr.h"
#include "slang/ast/expressions/AssignmentExpressions.h"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//------------------------------------------------------------------------------
//! @file Statements.h
//! @file Statement.h
//! @brief Statement creation and analysis
//
// SPDX-FileCopyrightText: Michael Popoloski
Expand Down
2 changes: 1 addition & 1 deletion include/slang/ast/statements/ConditionalStatements.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
//------------------------------------------------------------------------------
#pragma once

#include "slang/ast/Statements.h"
#include "slang/ast/Statement.h"

namespace slang::ast {

Expand Down
2 changes: 1 addition & 1 deletion include/slang/ast/statements/LoopStatements.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
//------------------------------------------------------------------------------
#pragma once

#include "slang/ast/Statements.h"
#include "slang/ast/Statement.h"

namespace slang::ast {

Expand Down
2 changes: 1 addition & 1 deletion include/slang/ast/statements/MiscStatements.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
//------------------------------------------------------------------------------
#pragma once

#include "slang/ast/Statements.h"
#include "slang/ast/Statement.h"

namespace slang::ast {

Expand Down
2 changes: 1 addition & 1 deletion include/slang/ast/symbols/BlockSymbols.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#pragma once

#include "slang/ast/SemanticFacts.h"
#include "slang/ast/Statements.h"
#include "slang/ast/Statement.h"
#include "slang/ast/Symbol.h"
#include "slang/syntax/SyntaxFwd.h"
#include "slang/util/Function.h"
Expand Down
4 changes: 3 additions & 1 deletion include/slang/ast/symbols/SubroutineSymbols.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,16 @@
//------------------------------------------------------------------------------
#pragma once

#include "slang/ast/Statements.h"
#include "slang/ast/Scope.h"
#include "slang/ast/types/DeclaredType.h"
#include "slang/syntax/SyntaxFwd.h"
#include "slang/util/Enum.h"

namespace slang::ast {

class FormalArgumentSymbol;
class Statement;
class StatementBlockSymbol;
class VariableSymbol;

/// Specifies various flags that can apply to subroutines.
Expand Down
2 changes: 1 addition & 1 deletion source/ast/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ target_sources(
ScriptSession.cpp
SemanticFacts.cpp
SFormat.cpp
Statements.cpp
Statement.cpp
Symbol.cpp
SystemSubroutine.cpp
TimingControl.cpp)
2 changes: 1 addition & 1 deletion source/ast/ScriptSession.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#include "slang/ast/ScriptSession.h"

#include "slang/ast/Expression.h"
#include "slang/ast/Statements.h"
#include "slang/ast/Statement.h"
#include "slang/ast/symbols/BlockSymbols.h"
#include "slang/ast/symbols/CompilationUnitSymbols.h"
#include "slang/ast/symbols/VariableSymbols.h"
Expand Down
4 changes: 2 additions & 2 deletions source/ast/Statements.cpp → source/ast/Statement.cpp
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
//------------------------------------------------------------------------------
// Statements.cpp
// Statement.cpp
// Statement creation and analysis
//
// SPDX-FileCopyrightText: Michael Popoloski
// SPDX-License-Identifier: MIT
//------------------------------------------------------------------------------
#include "slang/ast/Statements.h"
#include "slang/ast/Statement.h"

#include "slang/ast/ASTSerializer.h"
#include "slang/ast/ASTVisitor.h"
Expand Down
2 changes: 1 addition & 1 deletion tests/unittests/ast/MemberTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#include "Test.h"

#include "slang/ast/ASTVisitor.h"
#include "slang/ast/Statements.h"
#include "slang/ast/Statement.h"
#include "slang/ast/expressions/AssignmentExpressions.h"
#include "slang/ast/expressions/CallExpression.h"
#include "slang/ast/expressions/OperatorExpressions.h"
Expand Down

0 comments on commit 42c3445

Please sign in to comment.