Skip to content

Commit 4a10d46

Browse files
committed
applies clang-format
1 parent c9f6aa4 commit 4a10d46

File tree

4 files changed

+10
-7
lines changed

4 files changed

+10
-7
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,5 @@
22
/_build/
33
/.cproject
44
/.project
5+
/.venv
6+
/.vscode

report/include/scp/helpers.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ static std::string scp_txn_tostring(tlm::tlm_generic_payload& trans) {
3636
cmd = "READ";
3737
break;
3838
}
39-
info << cmd << " to address: " << "0x" << std::hex << trans.get_address();
39+
info << cmd << " to address: "
40+
<< "0x" << std::hex << trans.get_address();
4041
info << " len: " << trans.get_data_length();
4142
unsigned char* ptr = trans.get_data_ptr();
4243
info << " data: 0x";

report/include/scp/report.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -316,8 +316,8 @@ struct ScLogger {
316316
class call_sc_name_fn
317317
{
318318
template <class T>
319-
static auto test(T* p) -> decltype(p->sc_core::sc_module::name(),
320-
std::true_type());
319+
static auto test(T* p)
320+
-> decltype(p->sc_core::sc_module::name(), std::true_type());
321321
template <class T>
322322
static auto test(...) -> decltype(std::false_type());
323323

report/src/logger.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,8 @@ auto time2string(const sc_core::sc_time& t) -> std::string {
152152
}
153153
return oss.str();
154154
}
155-
auto compose_message(const sc_core::sc_report& rep,
156-
const scp::LogConfig& cfg) -> const std::string {
155+
auto compose_message(const sc_core::sc_report& rep, const scp::LogConfig& cfg)
156+
-> const std::string {
157157
if (rep.get_severity() > sc_core::SC_INFO ||
158158
cfg.log_filter_regex.length() == 0 ||
159159
rep.get_verbosity() == sc_core::SC_MEDIUM ||
@@ -183,7 +183,8 @@ auto compose_message(const sc_core::sc_report& rep,
183183
}
184184
}
185185
if (unlikely(rep.get_id() >= 0))
186-
os << "(" << "IWEF"[rep.get_severity()] << rep.get_id() << ") "
186+
os << "("
187+
<< "IWEF"[rep.get_severity()] << rep.get_id() << ") "
187188
<< rep.get_msg_type() << ": ";
188189
else if (cfg.msg_type_field_width) {
189190
if (cfg.msg_type_field_width ==
@@ -528,4 +529,3 @@ auto scp::LogConfig::fileInfoFrom(int v) -> scp::LogConfig& {
528529
this->file_info_from = v;
529530
return *this;
530531
}
531-

0 commit comments

Comments
 (0)