File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed
Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change 2727#include < array>
2828#include < cctype>
2929#include < cstdint>
30+ #include < cstdio>
3031#include < cstdlib>
3132#include < exception>
3233#include < iostream>
3334#include < iterator>
3435#include < limits>
35- #include < sstream >
36+ #include < stdexcept >
3637#include < string>
3738#include < unordered_map>
3839#include < unordered_set>
@@ -46,7 +47,7 @@ template <class BidirIt, class OutputIt>
4647OutputIt
4748revcomp_copy (BidirIt first, BidirIt last, OutputIt d_first) {
4849 for (; first != last; ++d_first)
49- *d_first = b2c[*(--last) - ' A' ]; // NOLINT(*-constant-array-index )
50+ *d_first = b2c[*(--last) - ' A' ]; // NOLINT(*-pro-bounds-pointer-arithmetic )
5051 return d_first;
5152}
5253
@@ -170,11 +171,11 @@ get_chrom(const std::string &chrom_name,
170171
171172int
172173main_methstates (int argc, char *argv[]) { // NOLINT(*-avoid-c-arrays)
173- static constexpr std::int64_t output_buffer_size{4096 };
174- std::array<char , output_buffer_size> buf{};
175- static constexpr auto output_format = " %s\t %lu\t %s\n " ;
176-
177174 try {
175+ static constexpr auto output_format = " %s\t %lu\t %s\n " ;
176+ static constexpr std::int64_t output_buffer_size{4096 };
177+ static std::array<char , output_buffer_size> buf{};
178+
178179 // clang-format off
179180 const auto description =
180181R"( Convert mapped reads in SAM format into a format that indicates binary
You can’t perform that action at this time.
0 commit comments