Skip to content

Commit 01cbc83

Browse files
committed
[MISC] Macro comments: SEQAN3_HAS_BZIP2
1 parent 42beb57 commit 01cbc83

File tree

14 files changed

+23
-23
lines changed

14 files changed

+23
-23
lines changed

include/seqan3/io/detail/misc_input.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ inline auto make_secondary_istream(std::basic_istream<char_t> & primary_stream,
145145
return {new contrib::basic_bz2_istream<char_t>{primary_stream}, stream_deleter_default};
146146
#else
147147
throw file_open_error{"Trying to read from a bzipped file, but no libbz2 available."};
148-
#endif
148+
#endif // SEQAN3_HAS_BZIP2
149149
}
150150
else if (starts_with(magic_number, zstd_compression::magic_header)) // ZStd
151151
{

include/seqan3/io/detail/misc_output.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ inline auto make_secondary_ostream(std::basic_ostream<char_t> & primary_stream,
7373
return {new contrib::basic_bz2_ostream<char_t>{primary_stream}, stream_deleter_default};
7474
#else
7575
throw file_open_error{"Trying to write a bzipped file, but no libbz2 available."};
76-
#endif
76+
#endif // SEQAN3_HAS_BZIP2
7777
}
7878
else if (extension == ".zst")
7979
{

test/performance/io/stream_input_benchmark.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
#if SEQAN3_HAS_BZIP2
2626
# include <seqan3/contrib/stream/bz2_istream.hpp>
2727
# include <seqan3/contrib/stream/bz2_ostream.hpp>
28-
#endif
28+
#endif // SEQAN3_HAS_BZIP2
2929

3030
// SEQAN2
3131
#if __has_include(<seqan/stream.h>)
@@ -37,7 +37,7 @@
3737

3838
# if SEQAN3_HAS_BZIP2
3939
# define SEQAN_HAS_BZIP2 1
40-
# endif
40+
# endif // SEQAN3_HAS_BZIP2
4141

4242
# include <seqan/stream.h>
4343
#endif
@@ -114,7 +114,7 @@ std::string const input_comp<seqan3::contrib::bz2_istream>{
114114
template <>
115115
std::string const & input_comp<seqan2::BZ2File> = input_comp<seqan3::contrib::bz2_istream>;
116116
# endif
117-
#endif
117+
#endif // SEQAN3_HAS_BZIP2
118118

119119
// ============================================================================
120120
// plain benchmark of ostringstream
@@ -173,7 +173,7 @@ BENCHMARK_TEMPLATE(compressed, seqan3::contrib::bgzf_istream);
173173

174174
#if SEQAN3_HAS_BZIP2
175175
BENCHMARK_TEMPLATE(compressed, seqan3::contrib::bz2_istream);
176-
#endif
176+
#endif // SEQAN3_HAS_BZIP2
177177

178178
// ============================================================================
179179
// compression applied, but stuffed into plain istream
@@ -207,7 +207,7 @@ BENCHMARK_TEMPLATE(compressed_type_erased, seqan3::contrib::bgzf_istream);
207207
#endif // SEQAN3_HAS_ZLIB
208208
#if SEQAN3_HAS_BZIP2
209209
BENCHMARK_TEMPLATE(compressed_type_erased, seqan3::contrib::bz2_istream);
210-
#endif
210+
#endif // SEQAN3_HAS_BZIP2
211211

212212
// ============================================================================
213213
// compression applied, but stuffed into plain istream, also stringstream erased
@@ -241,7 +241,7 @@ BENCHMARK_TEMPLATE(compressed_type_erased2, seqan3::contrib::bgzf_istream);
241241
#endif // SEQAN3_HAS_ZLIB
242242
#if SEQAN3_HAS_BZIP2
243243
BENCHMARK_TEMPLATE(compressed_type_erased2, seqan3::contrib::bz2_istream);
244-
#endif
244+
#endif // SEQAN3_HAS_BZIP2
245245

246246
// ============================================================================
247247
// seqan2 virtual stream

test/performance/io/stream_output_benchmark.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
#if SEQAN3_HAS_BZIP2
1717
# include <seqan3/contrib/stream/bz2_ostream.hpp>
18-
#endif
18+
#endif // SEQAN3_HAS_BZIP2
1919

2020
// SEQAN2
2121
#if __has_include(<seqan/stream.h>)
@@ -27,7 +27,7 @@
2727

2828
# if SEQAN3_HAS_BZIP2
2929
# define SEQAN_HAS_BZIP2 1
30-
# endif
30+
# endif // SEQAN3_HAS_BZIP2
3131

3232
# include <seqan/stream.h>
3333
#endif
@@ -72,7 +72,7 @@ BENCHMARK_TEMPLATE(compressed, seqan3::contrib::bgzf_ostream);
7272
#endif // SEQAN3_HAS_ZLIB
7373
#if SEQAN3_HAS_BZIP2
7474
BENCHMARK_TEMPLATE(compressed, seqan3::contrib::bz2_ostream);
75-
#endif
75+
#endif // SEQAN3_HAS_BZIP2
7676

7777
// ============================================================================
7878
// compression applied, but stuffed into plain ostream
@@ -98,7 +98,7 @@ BENCHMARK_TEMPLATE(compressed_type_erased, seqan3::contrib::bgzf_ostream);
9898
#endif // SEQAN3_HAS_ZLIB
9999
#if SEQAN3_HAS_BZIP2
100100
BENCHMARK_TEMPLATE(compressed_type_erased, seqan3::contrib::bz2_ostream);
101-
#endif
101+
#endif // SEQAN3_HAS_BZIP2
102102

103103
// ============================================================================
104104
// compression applied, but stuffed into plain ostream, also stringstream erased
@@ -124,7 +124,7 @@ BENCHMARK_TEMPLATE(compressed_type_erased2, seqan3::contrib::bgzf_ostream);
124124
#endif // SEQAN3_HAS_ZLIB
125125
#if SEQAN3_HAS_BZIP2
126126
BENCHMARK_TEMPLATE(compressed_type_erased2, seqan3::contrib::bz2_ostream);
127-
#endif
127+
#endif // SEQAN3_HAS_BZIP2
128128

129129
// ============================================================================
130130
// seqan2 virtual stream

test/unit/contrib/stream/bz2_istream_test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,4 @@ TEST(bz2_istream_test, skipped)
3737
GTEST_SKIP() << "BZip2 is missing. Not running bz2_istream_test.";
3838
}
3939

40-
#endif
40+
#endif // SEQAN3_HAS_BZIP2

test/unit/contrib/stream/bz2_ostream_test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,4 @@ TEST(bz2_ostream_test, skipped)
3737
GTEST_SKIP() << "BZip2 is missing. Not running bz2_ostream_test.";
3838
}
3939

40-
#endif
40+
#endif // SEQAN3_HAS_BZIP2

test/unit/io/detail/magic_header_test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ TEST(misc, valid_compression_extensions)
2323

2424
#if SEQAN3_HAS_BZIP2
2525
EXPECT_TRUE(std::find(valid_compression.begin(), valid_compression.end(), "bz2") != valid_compression.end());
26-
#endif
26+
#endif // SEQAN3_HAS_BZIP2
2727

2828
#if defined(SEQAN3_HAS_ZSTD)
2929
EXPECT_TRUE(std::find(valid_compression.begin(), valid_compression.end(), "zst") != valid_compression.end());

test/unit/io/detail/misc_output_test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,4 +61,4 @@ TEST(misc_output, issue2455_bz)
6161

6262
EXPECT_TRUE(seqan3::detail::starts_with(file_content, seqan3::detail::bz2_compression::magic_header));
6363
}
64-
#endif
64+
#endif // SEQAN3_HAS_BZIP2

test/unit/io/sam_file/sam_file_input_test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,7 @@ TEST_F(sam_file_input_f, read_empty_bz2_file)
483483

484484
EXPECT_TRUE(fin.begin() == fin.end());
485485
}
486-
#endif
486+
#endif // SEQAN3_HAS_BZIP2
487487

488488
// ----------------------------------------------------------------------------
489489
// BAM format specificities

test/unit/io/sam_file/sam_file_output_test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -777,4 +777,4 @@ TEST(compression, by_stream_bz2)
777777

778778
EXPECT_EQ(out.str(), expected_bz2);
779779
}
780-
#endif
780+
#endif // SEQAN3_HAS_BZIP2

0 commit comments

Comments
 (0)