[style] clang-format all c++ code (#9305)

- sh build-support/clang-format.sh  to  clang-format all c++ code
This commit is contained in:
chenlinzhong
2022-04-29 16:14:22 +08:00
committed by GitHub
parent 201cd207f9
commit c9961c9bb9
499 changed files with 5917 additions and 5910 deletions

View File

@ -22,8 +22,7 @@ namespace doris::vectorized {
// auto spread at nullable condition, null value do not participate aggregate
void register_aggregate_function_reader_load(AggregateFunctionSimpleFactory& factory) {
// add a suffix to the function name here to distinguish special functions of agg reader
auto register_function = [&](const std::string& name,
const AggregateFunctionCreator& creator) {
auto register_function = [&](const std::string& name, const AggregateFunctionCreator& creator) {
factory.register_function(name + AGG_READER_SUFFIX, creator, false);
factory.register_function(name + AGG_LOAD_SUFFIX, creator, false);
};
@ -45,13 +44,18 @@ void register_aggregate_function_replace_reader_load(AggregateFunctionSimpleFact
factory.register_function(name + suffix, creator, nullable);
};
register_function("replace", AGG_READER_SUFFIX, create_aggregate_function_first<false, true>, false);
register_function("replace", AGG_READER_SUFFIX, create_aggregate_function_first<true, true>, true);
register_function("replace", AGG_LOAD_SUFFIX, create_aggregate_function_last<false, true>, false);
register_function("replace", AGG_READER_SUFFIX, create_aggregate_function_first<false, true>,
false);
register_function("replace", AGG_READER_SUFFIX, create_aggregate_function_first<true, true>,
true);
register_function("replace", AGG_LOAD_SUFFIX, create_aggregate_function_last<false, true>,
false);
register_function("replace", AGG_LOAD_SUFFIX, create_aggregate_function_last<true, true>, true);
register_function("replace_if_not_null", AGG_READER_SUFFIX, create_aggregate_function_first<false, true>, false);
register_function("replace_if_not_null", AGG_LOAD_SUFFIX, create_aggregate_function_last<false, true>, false);
register_function("replace_if_not_null", AGG_READER_SUFFIX,
create_aggregate_function_first<false, true>, false);
register_function("replace_if_not_null", AGG_LOAD_SUFFIX,
create_aggregate_function_last<false, true>, false);
}
} // namespace doris::vectorized