From c1005a52281b7cf131c632dd5350de3619960586 Mon Sep 17 00:00:00 2001 From: Andrew D Smith Date: Sat, 19 Oct 2024 21:32:25 -0700 Subject: [PATCH] clang-format --- src/common.cpp | 9 ++++++--- src/dnmt_error.hpp | 2 ++ 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/common.cpp b/src/common.cpp index a0d1448..29b7b14 100644 --- a/src/common.cpp +++ b/src/common.cpp @@ -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); diff --git a/src/dnmt_error.hpp b/src/dnmt_error.hpp index a868775..e757b98 100644 --- a/src/dnmt_error.hpp +++ b/src/dnmt_error.hpp @@ -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) {}