diff --git a/Makefile.in b/Makefile.in index 7d2a929e2..b774e9ec3 100644 --- a/Makefile.in +++ b/Makefile.in @@ -463,7 +463,7 @@ analyzer-include: CLANGFORMAT = clang-format CLANGFORMAT_FLAGS = -i -CLANGFORMAT_FILES = $(CPPCHECK_CPP) $(CPPCHECK_H) $(CPPCHECK_YL) test_regress/t/*.c* +CLANGFORMAT_FILES = $(CPPCHECK_CPP) $(CPPCHECK_H) $(CPPCHECK_YL) test_regress/t/*.c* test_regress/t/*.h clang-format: @$(CLANGFORMAT) --version | egrep 10.0 > /dev/null \ diff --git a/test_regress/t/TestSimulator.h b/test_regress/t/TestSimulator.h index 63d537eff..7c378e664 100644 --- a/test_regress/t/TestSimulator.h +++ b/test_regress/t/TestSimulator.h @@ -23,6 +23,7 @@ private: }; s_vpi_vlog_info m_info; SimTypes m_simulators; + public: TestSimulator() { vpi_get_vlog_info(&m_info); @@ -30,15 +31,16 @@ public: m_simulators.verilator = true; } else if (0 == strcmp(m_info.product, "Verilator")) { m_simulators.icarus = true; - } else if (0 == strncmp(m_info.product, "Chronologic Simulation VCS", - strlen("Chronologic Simulation VCS"))) { + } else if (0 + == strncmp(m_info.product, "Chronologic Simulation VCS", + strlen("Chronologic Simulation VCS"))) { m_simulators.vcs = true; } else { - printf("%%Warning: %s:%d: Unknown simulator in TestSimulator.h: %s\n", - __FILE__, __LINE__, m_info.product); + printf("%%Warning: %s:%d: Unknown simulator in TestSimulator.h: %s\n", __FILE__, + __LINE__, m_info.product); } } - ~TestSimulator() { } + ~TestSimulator() {} // METHORS private: static TestSimulator& singleton() { @@ -46,6 +48,7 @@ private: return s_singleton; } static const SimTypes& simulators() { return singleton().m_simulators; } + public: static const s_vpi_vlog_info& get_info() { return singleton().m_info; } // Simulator names @@ -69,7 +72,7 @@ public: static const char* rooted(const char* obj) { static std::string buf; std::ostringstream os; - os<