Skip to content

Commit

Permalink
clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewdavidsmith committed Oct 20, 2024
1 parent d35eaf4 commit c1005a5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/common.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -338,9 +338,12 @@ write_predicted_complexity_curve(const string &outfile, const double c_level,
of.open(outfile);
std::ostream out(outfile.empty() ? std::cout.rdbuf() : of.rdbuf());

out << "TOTAL_READS\tEXPECTED_DISTINCT\t"
<< "LOWER_" << c_level << "CI\t"
<< "UPPER_" << c_level << "CI" << endl;
// clang-format off
out << "TOTAL_READS" << '\t'
<< "EXPECTED_DISTINCT" << '\t'
<< "LOWER_" << c_level << "CI" << '\t'
<< "UPPER_" << c_level << "CI" << '\n';
// clang-format on

out.setf(std::ios_base::fixed, std::ios_base::floatfield);
out.precision(1);
Expand Down
2 changes: 2 additions & 0 deletions src/dnmt_error.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,10 @@ struct dnmt_error : public std::exception {
dnmt_error(const std::int64_t err, const std::string &msg) :
err{err}, the_errno{errno}, msg{msg} {
std::ostringstream oss;
// clang-format off
oss << "[error: " << err << "][" << "ERRNO: " << the_errno << "]"
<< "[" << strerror(the_errno) << "][" << msg << "]";
// clang-format on
the_what = oss.str();
}
explicit dnmt_error(const std::string &_msg) : dnmt_error(0, _msg) {}
Expand Down

0 comments on commit c1005a5

Please sign in to comment.