Skip to content

Commit f9b33f5

Browse files
src/analysis/methstates.cpp: linting
1 parent fd7524c commit f9b33f5

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

src/analysis/methstates.cpp

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,13 @@
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>
4647
OutputIt
4748
revcomp_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

171172
int
172173
main_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 =
180181
R"(Convert mapped reads in SAM format into a format that indicates binary

0 commit comments

Comments
 (0)