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

Fix some missing std:: includes in src/Design #4004

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/Design/DataType.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
See the License for the specific language governing permissions and
limitations under the License.
*/
#include "Surelog/Design/DataType.h"

/*
* File: DataType.cpp
Expand All @@ -21,9 +22,10 @@
* Created on June 14, 2018, 10:07 PM
*/

#include <Surelog/Design/DataType.h>
#include <Surelog/Expression/Value.h>

#include <string>

namespace SURELOG {

const DataType* DataType::getActual() const {
Expand Down
5 changes: 3 additions & 2 deletions src/Design/DefParam.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,16 @@
limitations under the License.
*/

#include "Surelog/Design/DefParam.h"

/*
* File: DefParam.cpp
* Author: alain
*
* Created on January 7, 2018, 8:55 PM
*/

#include <Surelog/Design/DefParam.h>

#include <string>
#include <vector>

namespace SURELOG {
Expand Down
9 changes: 8 additions & 1 deletion src/Design/Design.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
See the License for the specific language governing permissions and
limitations under the License.
*/
#include "Surelog/Design/Design.h"

/*
* File: Design.cpp
Expand All @@ -22,7 +23,6 @@
*/

#include <Surelog/Design/DefParam.h>
#include <Surelog/Design/Design.h>
#include <Surelog/Design/DesignComponent.h>
#include <Surelog/Design/FileContent.h>
#include <Surelog/Design/ModuleDefinition.h>
Expand All @@ -35,7 +35,14 @@
#include <Surelog/Testbench/Program.h>
#include <Surelog/Utils/StringUtils.h>

#include <iterator>
#include <map>
#include <queue>
#include <set>
#include <string>
#include <string_view>
#include <utility>
#include <vector>

namespace SURELOG {

Expand Down
7 changes: 6 additions & 1 deletion src/Design/DesignComponent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,26 @@
limitations under the License.
*/

#include "Surelog/Design/DesignComponent.h"

/*
* File: DesignComponent.cpp
* Author: alain
*
* Created on March 25, 2018, 10:27 PM
*/

#include <Surelog/Design/DesignComponent.h>
#include <Surelog/Design/FileContent.h>
#include <Surelog/Design/Parameter.h>
#include <Surelog/Testbench/FunctionMethod.h>
#include <Surelog/Testbench/TaskMethod.h>
#include <Surelog/Testbench/TypeDef.h>
#include <Surelog/Testbench/Variable.h>

#include <string_view>
#include <utility>
#include <vector>

namespace SURELOG {
void DesignComponent::addFileContent(const FileContent* fileContent,
NodeId nodeId) {
Expand Down
3 changes: 2 additions & 1 deletion src/Design/DesignElement.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
See the License for the specific language governing permissions and
limitations under the License.
*/
#include "Surelog/Design/DesignElement.h"

/*
* File: DesignElement.cpp
Expand All @@ -21,7 +22,7 @@
* Created on June 8, 2017, 8:05 PM
*/

#include <Surelog/Design/DesignElement.h>
#include <ostream>

namespace SURELOG {
DesignElement::DesignElement(SymbolId name, PathId fileId, ElemType type,
Expand Down
5 changes: 4 additions & 1 deletion src/Design/Enum.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,19 @@
limitations under the License.
*/

#include "Surelog/Design/Enum.h"

/*
* File: Enum.cpp
* Author: alain
*
* Created on May 19, 2019, 11:55 AM
*/

#include <Surelog/Design/Enum.h>
#include <Surelog/Design/FileContent.h>

#include <string_view>

namespace SURELOG {
Enum::Enum(const FileContent* fC, NodeId nameId, NodeId baseTypeId)
: DataType(fC, baseTypeId, fC->SymName(nameId), fC->Type(baseTypeId)),
Expand Down
6 changes: 5 additions & 1 deletion src/Design/FileContent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
limitations under the License.
*/

#include "Surelog/Design/FileContent.h"

/*
* File: FileContent.cpp
* Author: alain
Expand All @@ -23,14 +25,16 @@

#include <Surelog/Common/FileSystem.h>
#include <Surelog/Design/DesignElement.h>
#include <Surelog/Design/FileContent.h>
#include <Surelog/ErrorReporting/ErrorContainer.h>
#include <Surelog/Library/Library.h>
#include <Surelog/SourceCompile/SymbolTable.h>
#include <Surelog/Utils/StringUtils.h>

#include <iostream>
#include <stack>
#include <string>
#include <string_view>
#include <vector>

namespace SURELOG {
FileContent::FileContent(PathId fileId, Library* library,
Expand Down
5 changes: 4 additions & 1 deletion src/Design/Function.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
limitations under the License.
*/

#include "Surelog/Design/Function.h"

/*
* File: Function.cpp
* Author: alain
Expand All @@ -22,9 +24,10 @@
*/

#include <Surelog/Design/FileContent.h>
#include <Surelog/Design/Function.h>
#include <Surelog/DesignCompile/CompileHelper.h>

#include <string_view>

namespace SURELOG {
Procedure::Procedure(DesignComponent* parent, const FileContent* fC, NodeId id,
std::string_view name)
Expand Down
5 changes: 4 additions & 1 deletion src/Design/ModPort.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,16 @@
limitations under the License.
*/

#include "Surelog/Design/ModPort.h"

/*
* File: ModPort.cpp
* Author: alain
*
* Created on January 31, 2020, 9:46 PM
*/
#include <Surelog/Design/ModPort.h>

#include <string_view>

namespace SURELOG {

Expand Down
6 changes: 5 additions & 1 deletion src/Design/ModuleDefinition.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
limitations under the License.
*/

#include "Surelog/Design/ModuleDefinition.h"

/*
* File: ModuleDefinition.cpp
* Author: alain
Expand All @@ -23,7 +25,9 @@

#include <Surelog/Design/FileContent.h>
#include <Surelog/Design/ModPort.h>
#include <Surelog/Design/ModuleDefinition.h>

#include <string_view>
#include <vector>

namespace SURELOG {

Expand Down
6 changes: 5 additions & 1 deletion src/Design/ModuleInstance.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
See the License for the specific language governing permissions and
limitations under the License.
*/
#include "Surelog/Design/ModuleInstance.h"

/*
* File: ModuleInstance.cpp
Expand All @@ -23,11 +24,14 @@

#include <Surelog/Design/DesignComponent.h>
#include <Surelog/Design/FileContent.h>
#include <Surelog/Design/ModuleInstance.h>
#include <Surelog/Design/Netlist.h>
#include <Surelog/Expression/ExprBuilder.h>
#include <Surelog/SourceCompile/SymbolTable.h>

#include <set>
#include <string_view>
#include <vector>

// UHDM
#include <uhdm/ExprEval.h>
#include <uhdm/constant.h>
Expand Down
4 changes: 3 additions & 1 deletion src/Design/Parameter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
See the License for the specific language governing permissions and
limitations under the License.
*/
#include "Surelog/Design/Parameter.h"

/*
* File: Parameter.cpp
Expand All @@ -22,7 +23,8 @@
*/

#include <Surelog/Design/FileContent.h>
#include <Surelog/Design/Parameter.h>

#include <string_view>

namespace SURELOG {

Expand Down
4 changes: 3 additions & 1 deletion src/Design/Scope.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
See the License for the specific language governing permissions and
limitations under the License.
*/
#include "Surelog/Design/Scope.h"

/*
* File: Scope.cpp
Expand All @@ -21,9 +22,10 @@
* Created on August 31, 2019, 11:24 AM
*/

#include <Surelog/Design/Scope.h>
#include <Surelog/Testbench/Variable.h>

#include <string_view>

namespace SURELOG {

void Scope::addVariable(Variable* var) {
Expand Down
5 changes: 4 additions & 1 deletion src/Design/Signal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
See the License for the specific language governing permissions and
limitations under the License.
*/
#include "Surelog/Design/Signal.h"

/*
* File: Signal.cpp
Expand All @@ -22,9 +23,11 @@
*/

#include <Surelog/Design/FileContent.h>
#include <Surelog/Design/Signal.h>
#include <Surelog/Utils/StringUtils.h>

#include <string>
#include <string_view>

namespace SURELOG {

Signal::Signal(const FileContent* fileContent, NodeId nodeId, VObjectType type,
Expand Down
5 changes: 4 additions & 1 deletion src/Design/Statement.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
See the License for the specific language governing permissions and
limitations under the License.
*/
#include "Surelog/Design/Statement.h"

/*
* File: Statement.cpp
Expand All @@ -22,7 +23,9 @@
*/

#include <Surelog/Design/FileContent.h>
#include <Surelog/Design/Statement.h>

#include <string_view>
#include <vector>

namespace SURELOG {

Expand Down
5 changes: 3 additions & 2 deletions src/Design/TimeInfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,15 @@
limitations under the License.
*/

#include "Surelog/Design/TimeInfo.h"

/*
* File: TimeInfo.cpp
* Author: alain
*
* Created on June 8, 2017, 8:27 PM
*/

#include <Surelog/Design/TimeInfo.h>
#include <string_view>

namespace SURELOG {

Expand Down
5 changes: 4 additions & 1 deletion src/Design/VObject.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
See the License for the specific language governing permissions and
limitations under the License.
*/
#include "Surelog/Design/VObject.h"

/*
* File: VObject.cpp
Expand All @@ -21,10 +22,12 @@
* Created on June 14, 2017, 10:58 PM
*/

#include <Surelog/Design/VObject.h>
#include <Surelog/SourceCompile/SymbolTable.h>
#include <Surelog/Utils/StringUtils.h>

#include <string>
#include <string_view>

namespace SURELOG {

std::string VObject::print(SymbolTable* symbols, NodeId uniqueId,
Expand Down
7 changes: 6 additions & 1 deletion src/Design/ValuedComponentI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
See the License for the specific language governing permissions and
limitations under the License.
*/
#include "Surelog/Design/ValuedComponentI.h"

/*
* File: ValuedComponentI.cpp
Expand All @@ -22,9 +23,13 @@
*/

#include <Surelog/Design/ModuleInstance.h>
#include <Surelog/Design/ValuedComponentI.h>
#include <Surelog/Expression/ExprBuilder.h>

#include <map>
#include <string>
#include <string_view>
#include <utility>

namespace SURELOG {
Value* ValuedComponentI::getValue(std::string_view name) const {
auto itr = m_paramMap.find(name);
Expand Down
Loading