Skip to content

Commit 5b9b71f

Browse files
Putting guards around parts of source that should not be formatted
1 parent 41067cc commit 5b9b71f

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

dna_four_bit.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
#include "dna_four_bit.hpp"
1818

19+
// clang-format off
1920
char dna_four_bit_decoding[] = {
2021
'Z', // = 0000 = 0 = {} = Zero bases
2122
'A', // = 0001 = 1 = {A} = Adenine
@@ -76,3 +77,4 @@ uint8_t dna_four_bit_encoding[] = {
7677
};
7778
// . A B C D . . G H . . K . M N .
7879
// . . R S T . V W . Y Z
80+
// clang-format on

smithlab_utils.cpp

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,14 +82,16 @@ smithlab::get_fdr_cutoff(const size_t n_tests, vector<double> &pvals,
8282
char
8383
complement(int i) {
8484
static const int b2c_size = 20;
85+
// clang-format off
8586
static const char b2c[] = {
8687
//A, b, C, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, T
87-
'T','N','G','N','N','N','C','N','N','N','N','N','N','N','N','N','N','N','N','A'
88+
'T','N','G','N','N','N','C','N','N','N','N','N','N','N','N','N','N','N','N','A'
8889
};
8990
static const char b2cl[] = {
9091
//A, b, C, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, T
91-
't','n','g','n','n','n','c','n','n','n','n','n','n','n','n','n','n','n','n','a'
92+
't','n','g','n','n','n','c','n','n','n','n','n','n','n','n','n','n','n','n','a'
9293
};
94+
// clang-format on
9395
if (i - 'A' >= 0 && i - 'A' < b2c_size)
9496
return b2c[i - 'A'];
9597
else if (i - 'a' >= 0 && i - 'a' < b2c_size)
@@ -236,6 +238,7 @@ ProgressBar::report(std::ostream &out, const size_t i) {
236238
out << '\n';
237239
}
238240

241+
// clang-format off
239242
char to_valid_five_letter[] = {
240243
/* 0*/ 'N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N', /* 15*/
241244
/* 16*/ 'N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N', /* 31*/
@@ -246,3 +249,4 @@ char to_valid_five_letter[] = {
246249
/* 96*/ 'N','A','N','C','N','N','N','G','N','N','N','N','N','N','N','N', /*111*/
247250
/*112*/ 'N','N','N','N','T','N','N','N','N','N','N','N','N','N','N','N' /*127*/
248251
};
252+
// clang-format on

0 commit comments

Comments
 (0)