Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Various include fixes... #4013

Merged
merged 8 commits into from
Nov 11, 2024
1 change: 1 addition & 0 deletions include/Surelog/Cache/PPCache.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@

#include <Surelog/Cache/Cache.h>
#include <Surelog/Cache/PPCache.capnp.h>
#include <Surelog/Common/PathId.h>

#include <cstdint>

Expand Down
1 change: 1 addition & 0 deletions include/Surelog/Cache/ParseCache.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@

#include <Surelog/Cache/Cache.h>
#include <Surelog/Cache/ParseCache.capnp.h>
#include <Surelog/Common/PathId.h>

namespace SURELOG {

Expand Down
1 change: 1 addition & 0 deletions include/Surelog/Cache/PythonAPICache.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@

#include <Surelog/Cache/Cache.h>
#include <Surelog/Cache/PythonAPICache.capnp.h>
#include <Surelog/Common/PathId.h>

namespace SURELOG {

Expand Down
1 change: 1 addition & 0 deletions include/Surelog/Common/FileSystem.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
#pragma once

#include <Surelog/Common/PathId.h>
#include <Surelog/Common/SymbolId.h>

#include <cstdint>
#include <filesystem>
Expand Down
1 change: 1 addition & 0 deletions include/Surelog/Common/NodeId.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
#define SURELOG_NODEID_H
#pragma once

#include <cstddef>
#include <cstdint>
#include <ostream>
#include <set>
Expand Down
1 change: 1 addition & 0 deletions include/Surelog/Common/PathId.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

#include <Surelog/Common/SymbolId.h>

#include <cstddef>
#include <cstdint>
#include <istream>
#include <set>
Expand Down
2 changes: 2 additions & 0 deletions include/Surelog/Common/PlatformFileSystem.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@
#pragma once

#include <Surelog/Common/FileSystem.h>
#include <Surelog/Common/PathId.h>
#include <Surelog/Common/SymbolId.h>

#include <cstdint>
#include <functional>
Expand Down
3 changes: 3 additions & 0 deletions include/Surelog/Design/FileContent.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,12 @@

#include <Surelog/Common/Containers.h>
#include <Surelog/Common/NodeId.h>
#include <Surelog/Common/PathId.h>
#include <Surelog/Common/SymbolId.h>
#include <Surelog/Design/DesignComponent.h>
#include <Surelog/Design/VObject.h>
#include <Surelog/SourceCompile/VObjectTypes.h>
#include <uhdm/uhdm_types.h>

#include <cstdint>
#include <functional>
Expand Down
1 change: 1 addition & 0 deletions include/Surelog/Design/ModuleInstance.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
#include <Surelog/Design/ValuedComponentI.h>
#include <Surelog/SourceCompile/VObjectTypes.h>
#include <uhdm/Serializer.h>
#include <uhdm/expr.h>

#include <cstdint>
#include <map>
Expand Down
1 change: 1 addition & 0 deletions include/Surelog/DesignCompile/CompileDesign.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
#define SURELOG_COMPILEDESIGN_H
#pragma once

#include <Surelog/Common/PathId.h>
#include <Surelog/Design/Design.h>

#include <cstdint>
Expand Down
2 changes: 2 additions & 0 deletions include/Surelog/DesignCompile/CompileHelper.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@
#include <Surelog/Design/ValuedComponentI.h>
#include <Surelog/Expression/ExprBuilder.h>
#include <Surelog/SourceCompile/VObjectTypes.h>
#include <uhdm/expr.h>
#include <uhdm/uhdm_types.h>

#include <cstdint>
#include <string>
Expand Down
2 changes: 2 additions & 0 deletions include/Surelog/DesignCompile/NetlistElaboration.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@
#pragma once

#include <Surelog/Common/NodeId.h>
#include <Surelog/Common/PathId.h>
#include <Surelog/DesignCompile/TestbenchElaboration.h>
#include <uhdm/uhdm_types.h>

#include <cstdint>
#include <map>
Expand Down
1 change: 1 addition & 0 deletions include/Surelog/DesignCompile/UhdmWriter.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
#define SURELOG_UHDMWRITER_H
#pragma once

#include <Surelog/Common/PathId.h>
#include <Surelog/Design/DesignComponent.h>
#include <Surelog/DesignCompile/CompileHelper.h>
#include <Surelog/SourceCompile/VObjectTypes.h>
Expand Down
1 change: 1 addition & 0 deletions include/Surelog/Library/Library.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
#pragma once

#include <Surelog/Common/PathId.h>
#include <Surelog/Common/SymbolId.h>

#include <map>
#include <ostream>
Expand Down
1 change: 1 addition & 0 deletions include/Surelog/Library/SVLibShapeListener.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
#pragma once

#include <Surelog/Common/PathId.h>
#include <Surelog/Common/SymbolId.h>
#include <Surelog/SourceCompile/SV3_1aTreeShapeHelper.h>
#include <Surelog/SourceCompile/VObjectTypes.h>
#include <parser/SV3_1aParserBaseListener.h>
Expand Down
1 change: 1 addition & 0 deletions include/Surelog/SourceCompile/AntlrParserErrorListener.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
#include <ANTLRErrorListener.h>
#include <Surelog/Common/PathId.h>

#include <cstddef>
#include <cstdint>
#include <string>
#include <vector>
Expand Down
1 change: 1 addition & 0 deletions include/Surelog/SourceCompile/CommonListenerHelper.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@

#include <Surelog/Common/NodeId.h>
#include <Surelog/Common/PathId.h>
#include <Surelog/Common/SymbolId.h>
#include <Surelog/SourceCompile/VObjectTypes.h>

#include <cstdint>
Expand Down
1 change: 1 addition & 0 deletions include/Surelog/SourceCompile/CompilationUnit.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@

#include <Surelog/Common/Containers.h>
#include <Surelog/Common/NodeId.h>
#include <Surelog/Common/PathId.h>
#include <Surelog/Design/TimeInfo.h>
#include <Surelog/SourceCompile/VObjectTypes.h>

Expand Down
1 change: 1 addition & 0 deletions include/Surelog/SourceCompile/CompileSourceFile.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
#define SURELOG_COMPILESOURCEFILE_H
#pragma once

#include <Surelog/Common/PathId.h>
#include <Surelog/Common/SymbolId.h>
#include <Surelog/SourceCompile/PreprocessFile.h>

Expand Down
2 changes: 2 additions & 0 deletions include/Surelog/SourceCompile/ParseFile.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@
#define SURELOG_PARSEFILE_H
#pragma once

#include <Surelog/Common/PathId.h>
#include <Surelog/Common/SymbolId.h>
#include <Surelog/ErrorReporting/Error.h>

#include <cstdint>
Expand Down
1 change: 1 addition & 0 deletions include/Surelog/SourceCompile/PreprocessFile.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
#include <Surelog/SourceCompile/IncludeFileInfo.h>
#include <Surelog/SourceCompile/LoopCheck.h>

#include <cstddef>
#include <cstdint>
#include <set>
#include <string>
Expand Down
1 change: 1 addition & 0 deletions include/Surelog/SourceCompile/PythonListen.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@

#ifdef SURELOG_WITH_PYTHON

#include <Surelog/ErrorReporting/Error.h>
#include <Surelog/SourceCompile/CompileSourceFile.h>
#include <Surelog/SourceCompile/ParseFile.h>

Expand Down
1 change: 1 addition & 0 deletions include/Surelog/SourceCompile/SV3_1aPpTreeListenerHelper.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
#define SURELOG_SV3_1APPTREELISTENERHELPER_H
#pragma once

#include <Surelog/Common/PathId.h>
#include <Surelog/Common/SymbolId.h>
#include <Surelog/ErrorReporting/ErrorDefinition.h>
#include <Surelog/ErrorReporting/Location.h>
Expand Down
2 changes: 2 additions & 0 deletions include/Surelog/SourceCompile/SV3_1aTreeShapeHelper.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@
#pragma once

#include <Surelog/Common/NodeId.h>
#include <Surelog/Common/PathId.h>
#include <Surelog/Common/SymbolId.h>
#include <Surelog/Design/DesignElement.h>
#include <Surelog/ErrorReporting/ErrorDefinition.h>
#include <Surelog/ErrorReporting/Location.h>
Expand Down
4 changes: 4 additions & 0 deletions src/API/SLAPI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,11 @@
#ifdef SURELOG_WITH_PYTHON
#include "Surelog/API/SV3_1aPythonListener.h"
#include "Surelog/Common/NodeId.h"
#include "Surelog/Common/PathId.h"
#include "Surelog/Common/SymbolId.h"
#include "Surelog/ErrorReporting/Error.h"
#include "Surelog/ErrorReporting/ErrorDefinition.h"
#include "Surelog/ErrorReporting/Location.h"
#include "Surelog/SourceCompile/PythonListen.h"
#include "Surelog/SourceCompile/VObjectTypes.h"
#endif
Expand Down
5 changes: 5 additions & 0 deletions src/Cache/Cache.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@

#include <capnp/serialize-packed.h>

#include <cstddef>
#include <cstdint>
#include <filesystem>
#include <functional>
Expand All @@ -36,9 +37,13 @@
#include "Surelog/CommandLine/CommandLineParser.h"
#include "Surelog/Common/FileSystem.h"
#include "Surelog/Common/NodeId.h"
#include "Surelog/Common/PathId.h"
#include "Surelog/Common/SymbolId.h"
#include "Surelog/Design/FileContent.h"
#include "Surelog/ErrorReporting/Error.h"
#include "Surelog/ErrorReporting/ErrorContainer.h"
#include "Surelog/ErrorReporting/ErrorDefinition.h"
#include "Surelog/ErrorReporting/Location.h"
#include "Surelog/SourceCompile/SymbolTable.h"
#include "Surelog/SourceCompile/VObjectTypes.h"

Expand Down
3 changes: 3 additions & 0 deletions src/Cache/PPCache.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,17 +28,20 @@
#include <sys/stat.h>
#include <sys/types.h>

#include <cstddef>
#include <cstdint>
#include <string>
#include <string_view>
#include <vector>

#include "Surelog/CommandLine/CommandLineParser.h"
#include "Surelog/Common/FileSystem.h"
#include "Surelog/Common/PathId.h"
#include "Surelog/Design/Design.h"
#include "Surelog/Design/FileContent.h"
#include "Surelog/Design/TimeInfo.h"
#include "Surelog/ErrorReporting/ErrorDefinition.h"
#include "Surelog/ErrorReporting/Location.h"
#include "Surelog/Library/Library.h"
#include "Surelog/Package/Precompiled.h"
#include "Surelog/SourceCompile/CompilationUnit.h"
Expand Down
1 change: 1 addition & 0 deletions src/Cache/PPCache_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
#include <vector>

#include "Surelog/CommandLine/CommandLineParser.h"
#include "Surelog/Common/PathId.h"
#include "Surelog/Common/PlatformFileSystem.h"
#include "Surelog/Design/Design.h"
#include "Surelog/SourceCompile/Compiler.h"
Expand Down
4 changes: 4 additions & 0 deletions src/Cache/ParseCache.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
#include <sys/stat.h>
#include <sys/types.h>

#include <cstddef>
#include <cstdint>
#include <string>
#include <string_view>
Expand All @@ -36,10 +37,13 @@
#include "Surelog/CommandLine/CommandLineParser.h"
#include "Surelog/Common/FileSystem.h"
#include "Surelog/Common/NodeId.h"
#include "Surelog/Common/PathId.h"
#include "Surelog/Design/Design.h"
#include "Surelog/Design/DesignElement.h"
#include "Surelog/Design/FileContent.h"
#include "Surelog/ErrorReporting/Error.h"
#include "Surelog/ErrorReporting/ErrorDefinition.h"
#include "Surelog/ErrorReporting/Location.h"
#include "Surelog/Library/Library.h"
#include "Surelog/Package/Precompiled.h"
#include "Surelog/SourceCompile/CompileSourceFile.h"
Expand Down
3 changes: 3 additions & 0 deletions src/Cache/PythonAPICache.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,10 @@
#include "Surelog/Cache/Cache.h"
#include "Surelog/CommandLine/CommandLineParser.h"
#include "Surelog/Common/FileSystem.h"
#include "Surelog/Common/PathId.h"
#include "Surelog/ErrorReporting/Error.h"
#include "Surelog/ErrorReporting/ErrorContainer.h"
#include "Surelog/ErrorReporting/Location.h"
#include "Surelog/Library/Library.h"
#include "Surelog/SourceCompile/CompileSourceFile.h"
#include "Surelog/SourceCompile/ParseFile.h"
Expand Down
4 changes: 4 additions & 0 deletions src/CommandLine/CommandLineParser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,13 @@
#include <vector>

#include "Surelog/API/PythonAPI.h"
#include "Surelog/Common/PathId.h"
#include "Surelog/Common/PlatformFileSystem.h"
#include "Surelog/Common/SymbolId.h"
#include "Surelog/ErrorReporting/Error.h"
#include "Surelog/ErrorReporting/ErrorContainer.h"
#include "Surelog/ErrorReporting/ErrorDefinition.h"
#include "Surelog/ErrorReporting/Location.h"
#include "Surelog/SourceCompile/SymbolTable.h"
#include "Surelog/Utils/StringUtils.h"
#include "Surelog/surelog-version.h"
Expand Down
1 change: 1 addition & 0 deletions src/CommandLine/CommandLineParser_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
#include <string>
#include <vector>

#include "Surelog/Common/PathId.h"
#include "Surelog/Common/PlatformFileSystem.h"
#include "Surelog/ErrorReporting/ErrorContainer.h"
#include "Surelog/SourceCompile/SymbolTable.h"
Expand Down
2 changes: 2 additions & 0 deletions src/Common/ClockingBlockHolder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@

#include "Surelog/Common/ClockingBlockHolder.h"

#include "Surelog/Common/SymbolId.h"

namespace SURELOG {
void ClockingBlockHolder::addClockingBlock(SymbolId blockId,
ClockingBlock& block) {
Expand Down
3 changes: 3 additions & 0 deletions src/Common/FileSystem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,15 @@

#include "Surelog/Common/FileSystem.h"

#include "Surelog/Common/PathId.h"
#include "Surelog/Common/SymbolId.h"
#include "Surelog/SourceCompile/SymbolTable.h"

#if defined(_WIN32)
#define NOMINMAX
#include <Windows.h>

#include <cstddef>
#include <cstdint>
#include <iostream>
#include <string>
Expand Down
3 changes: 3 additions & 0 deletions src/Common/PlatformFileSystem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@

#include "Surelog/Common/PlatformFileSystem.h"

#include <cstddef>
#include <cstdint>
#include <filesystem>
#include <fstream>
Expand All @@ -34,6 +35,8 @@
#include <utility>
#include <vector>

#include "Surelog/Common/PathId.h"
#include "Surelog/Common/SymbolId.h"
#include "Surelog/SourceCompile/SymbolTable.h"
#include "Surelog/Utils/StringUtils.h"
#ifdef SURELOG_WITH_ZLIB
Expand Down
4 changes: 4 additions & 0 deletions src/Common/PlatformFileSystem_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,18 @@
#include "Surelog/Common/PlatformFileSystem.h"

#include <gtest/gtest.h>
#include <uhdm/expr.h>

#include <cstddef>
#include <cstdint>
#include <iostream>
#include <set>
#include <string_view>
#include <utility>

#include "Surelog/CommandLine/CommandLineParser.h"
#include "Surelog/Common/PathId.h"
#include "Surelog/Common/SymbolId.h"
#include "Surelog/Design/Design.h"
#include "Surelog/Library/Library.h"
#include "Surelog/SourceCompile/CompileSourceFile.h"
Expand Down
2 changes: 2 additions & 0 deletions src/Design/Design.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,10 @@
#include "Surelog/Design/FileContent.h"
#include "Surelog/Design/ModuleDefinition.h"
#include "Surelog/Design/ModuleInstance.h"
#include "Surelog/ErrorReporting/Error.h"
#include "Surelog/ErrorReporting/ErrorContainer.h"
#include "Surelog/ErrorReporting/ErrorDefinition.h"
#include "Surelog/ErrorReporting/Location.h"
#include "Surelog/Expression/Value.h"
#include "Surelog/Package/Package.h"
#include "Surelog/SourceCompile/SymbolTable.h"
Expand Down
Loading
Loading