Skip to content

Commit

Permalink
chore: clang-format changes
Browse files Browse the repository at this point in the history
  • Loading branch information
mhx committed Oct 12, 2024
1 parent d3e6471 commit 70568ce
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 10 deletions.
8 changes: 4 additions & 4 deletions include/dwarfs/writer/compression_metadata_requirements.h
Original file line number Diff line number Diff line change
Expand Up @@ -304,28 +304,28 @@ class compression_metadata_requirements {
template <
typename F, typename U,
typename T = typename std::invoke_result_t<F, nlohmann::json>::value_type>
void add_set(std::string const& name, U(Meta::*mp), F&& value_parser) {
void add_set(std::string const& name, U(Meta::* mp), F&& value_parser) {
req_.emplace_back(
std::make_unique<detail::metadata_requirement_set<Meta, T, U>>(
name, mp, std::forward<F>(value_parser)));
}

template <typename T, typename U>
void add_set(std::string const& name, U(Meta::*mp)) {
void add_set(std::string const& name, U(Meta::* mp)) {
add_set(name, mp, detail::value_parser<T>);
}

template <
typename F, typename U,
typename T = typename std::invoke_result_t<F, nlohmann::json>::value_type>
void add_range(std::string const& name, U(Meta::*mp), F&& value_parser) {
void add_range(std::string const& name, U(Meta::* mp), F&& value_parser) {
req_.emplace_back(
std::make_unique<detail::metadata_requirement_range<Meta, T, U>>(
name, mp, std::forward<F>(value_parser)));
}

template <typename T, typename U>
void add_range(std::string const& name, U(Meta::*mp)) {
void add_range(std::string const& name, U(Meta::* mp)) {
add_range(name, mp, detail::value_parser<T>);
}

Expand Down
4 changes: 2 additions & 2 deletions src/writer/filesystem_writer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1002,8 +1002,8 @@ void filesystem_writer_<LoggerPolicy>::add_section_compressor(

template <typename LoggerPolicy>
auto filesystem_writer_<LoggerPolicy>::get_compression_constraints(
fragment_category::value_type cat,
std::string const& metadata) const -> compression_constraints {
fragment_category::value_type cat, std::string const& metadata) const
-> compression_constraints {
return compressor_for_category(cat).get_compression_constraints(metadata);
}

Expand Down
5 changes: 3 additions & 2 deletions src/writer/internal/inode_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -754,8 +754,9 @@ void inode_manager_<LoggerPolicy>::dump(std::ostream& os) const {
}

template <typename LoggerPolicy>
auto inode_manager_<LoggerPolicy>::ordered_span(
fragment_category cat, worker_group& wg) const -> sortable_inode_span {
auto inode_manager_<LoggerPolicy>::ordered_span(fragment_category cat,
worker_group& wg) const
-> sortable_inode_span {
auto prefix = category_prefix(opts_.categorizer_mgr, cat);
auto opts = opts_.fragment_order.get(cat);

Expand Down
4 changes: 2 additions & 2 deletions src/writer/internal/similarity_ordering.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -330,8 +330,8 @@ auto similarity_ordering_<LoggerPolicy>::build_index(

template <typename LoggerPolicy>
auto similarity_ordering_<LoggerPolicy>::find_duplicates(
similarity_element_view const& ev,
index_type& index) const -> duplicates_map {
similarity_element_view const& ev, index_type& index) const
-> duplicates_map {
duplicates_map dm;

{
Expand Down

0 comments on commit 70568ce

Please sign in to comment.