Skip to content

Commit 6d967d4

Browse files
committed
[nop] update .clang-format
1 parent 195105b commit 6d967d4

File tree

9 files changed

+199
-199
lines changed

9 files changed

+199
-199
lines changed

.clang-format

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ IndentExternBlock: false
100100
IndentGotoLabels: false
101101
IndentPPDirectives: AfterHash
102102
IndentRequires: true
103+
#IndentRequiresClause: true
103104
IndentWidth: 4
104105
IndentWrappedFunctionNames: false
105106
InsertTrailingCommas: None
@@ -115,14 +116,18 @@ PenaltyBreakAssignment: 2
115116
PenaltyBreakBeforeFirstCallParameter: 19
116117
PenaltyBreakComment: 300
117118
PenaltyBreakFirstLessLess: 120
118-
PenaltyBreakString: 1000
119-
PenaltyExcessCharacter: 1000000
119+
PenaltyBreakOpenParenthesis: 50
120+
PenaltyBreakString: 1
121+
PenaltyBreakTemplateDeclaration: 10
122+
PenaltyExcessCharacter: 1000
123+
PenaltyIndentedWhitespace: 0
120124
PenaltyReturnTypeOnItsOwnLine: 200
121125
PointerAlignment: Middle
122126
QualifierAlignment: Custom
123127
QualifierOrder: ['static', 'inline', 'constexpr', 'type', 'const', 'volatile', 'restrict' ]
124128
ReferenceAlignment: Middle
125-
ReflowComments: true
129+
ReflowComments: false
130+
#RequiresClausePosition: OwnLine
126131
SeparateDefinitionBlocks: Leave
127132
SortIncludes: CaseInsensitive
128133
SortIncludes: true

include/bio/io/format/vcf_input_handler.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -262,8 +262,8 @@ class format_input_handler<vcf> :
262262
if (auto it = header.string_to_filter_pos().find(subfield);
263263
it == header.string_to_filter_pos().end()) // filter name was not in header, insert!
264264
{
265-
header.filters.push_back(
266-
{.id = static_cast<std::string>(subfield), .description = "\"Automatically added by SeqAn3.\""});
265+
header.filters.push_back({.id = static_cast<std::string>(subfield),
266+
.description = "\"Automatically added by SeqAn3.\""});
267267

268268
header.add_missing(); // update IDX and hash-tables
269269

include/bio/io/seq_io/record.hpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -193,12 +193,12 @@ constexpr bool record_read_concept_checker(std::type_identity<seq_io::record<id_
193193
(ranges::back_insertable<t> && alphabet::alphabet<std::ranges::range_reference_t<t>>) ||
194194
io::detail::transform_view_on_string_view<t>) { return std::true_type{}; }),
195195
"Requirements for the type of the SEQ-field not met. See documentation for bio::io::seq_io::record.");
196-
static_assert(
197-
io::detail::lazy_concept_checker([]<typename t = qual_t>(auto) requires(
198-
meta::one_of<t, std::string_view, ignore_t, ignore_t const> ||
199-
(ranges::back_insertable<t> && alphabet::alphabet<std::ranges::range_reference_t<t>>) ||
200-
io::detail::transform_view_on_string_view<t>) { return std::true_type{}; }),
201-
"Requirements for the type of the QUAL-field not met. See documentation for bio::io::seq_io::record.");
196+
static_assert(io::detail::lazy_concept_checker([]<typename t = qual_t>(auto) requires(
197+
meta::one_of<t, std::string_view, ignore_t, ignore_t const> ||
198+
(ranges::back_insertable<t> && alphabet::alphabet<std::ranges::range_reference_t<t>>) ||
199+
io::detail::transform_view_on_string_view<t>) { return std::true_type{}; }),
200+
"Requirements for the type of the QUAL-field not met. See documentation for "
201+
"bio::io::seq_io::record.");
202202
return true;
203203
}
204204

include/bio/io/stream/compression.hpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -212,9 +212,10 @@ constexpr bool header_matches<compression_format::bgzf>(std::string_view const t
212212
template <>
213213
constexpr bool header_matches<compression_format::none>(std::string_view const to_compare)
214214
{
215-
return !(
216-
header_matches<compression_format::bgzf>(to_compare) || header_matches<compression_format::gz>(to_compare) ||
217-
header_matches<compression_format::bz2>(to_compare) || header_matches<compression_format::zstd>(to_compare));
215+
return !(header_matches<compression_format::bgzf>(to_compare) ||
216+
header_matches<compression_format::gz>(to_compare) ||
217+
header_matches<compression_format::bz2>(to_compare) ||
218+
header_matches<compression_format::zstd>(to_compare));
218219
}
219220

220221
//!\brief Header matches "none" if it doesn't match any known compression.

include/bio/io/stream/detail/bgzf_istream.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,8 +197,8 @@ class basic_bgzf_istreambuf : public std::basic_streambuf<Elem, Tr>
197197
}
198198

199199
// check header
200-
if (!bio::io::detail::header_matches<compression_format::bgzf>(
201-
{job.inputBuffer.begin(), job.inputBuffer.end()}))
200+
if (!bio::io::detail::header_matches<compression_format::bgzf>({job.inputBuffer.begin(),
201+
job.inputBuffer.end()}))
202202
{
203203
streamBuf->serializer.fileOfs = -1;
204204
streamBuf->serializer.error = new io_error("Invalid BGZF block header.");

0 commit comments

Comments
 (0)