Skip to content
Permalink
Browse files
[refactor][style] Use clang-format to sort includes (#9483)
  • Loading branch information
adonis0147 committed May 10, 2022
1 parent ce926a7 commit 718a51a3883345548f325d7f4eb3856e682c4e8d
Showing 125 changed files with 178 additions and 177 deletions.
@@ -14,5 +14,3 @@ ReflowComments: false
SortUsingDeclarations: false
SpacesBeforeTrailingComments: 1
SpaceBeforeCpp11BracedList: true
#ignore include sort cause adjustment order may leads to compilation failure
SortIncludes: false
@@ -20,6 +20,7 @@ derby.log
dependency-reduced-pom.xml
package-lock.json
yarn.lock
ut_dir

# ignore all sub `/bin` and `/build` directory
**/build/
@@ -18,12 +18,11 @@
#pragma once

#include <cstdint>

#include <functional>
#include <map>
#include <mutex>
#include <string>
#include <vector>
#include <functional>

namespace doris {
class Status;
@@ -33,10 +33,10 @@

#pragma once

#include <boost/stacktrace.hpp>
#include <glog/logging.h>
#include <gutil/macros.h>

#include <boost/stacktrace.hpp>
#include <csignal>
#include <ctime>
#ifdef HAVE_UCONTEXT_H
@@ -4,9 +4,10 @@

#include "common/status.h"

#include <boost/stacktrace.hpp>
#include <glog/logging.h>

#include <boost/stacktrace.hpp>

#include "gutil/strings/fastmem.h" // for memcpy_inlined
namespace doris {

@@ -5,13 +5,13 @@
#pragma once

#include <fmt/format.h>
#include <glog/logging.h>

#include <boost/stacktrace.hpp>
#include <iostream>
#include <string>
#include <vector>

#include <boost/stacktrace.hpp>
#include <glog/logging.h>

#include "common/compiler_util.h"
#include "common/logging.h"
#include "gen_cpp/Status_types.h" // for TStatus
@@ -15,8 +15,9 @@
// specific language governing permissions and limitations
// under the License.

#include "common/config.h"
#include "env/env.h"

#include "common/config.h"
#include "env/env_posix.h"

namespace doris {
@@ -14,8 +14,8 @@

#include "common/status.h"
#include "gen_cpp/AgentService_types.h"
#include "gen_cpp/olap_file.pb.h"
#include "gen_cpp/Types_types.h"
#include "gen_cpp/olap_file.pb.h"
#include "util/slice.h"

namespace doris {
@@ -19,9 +19,9 @@

#include "common/status.h"
#include "exprs/expr.h"
#include "vec/exprs/vexpr.h"
#include "runtime/tuple.h"
#include "util/runtime_profile.h"
#include "vec/exprs/vexpr.h"

namespace doris {

@@ -21,7 +21,6 @@
#include <sstream>

#include "common/object_pool.h"
#include "vec/exec/vbroker_scanner.h"
#include "exec/json_scanner.h"
#include "exec/orc_scanner.h"
#include "exec/parquet_scanner.h"
@@ -32,6 +31,7 @@
#include "runtime/runtime_state.h"
#include "util/runtime_profile.h"
#include "util/thread.h"
#include "vec/exec/vbroker_scanner.h"

namespace doris {

@@ -18,9 +18,11 @@
#include "exec/broker_scanner.h"

#include <fmt/format.h>

#include <iostream>
#include <sstream>

#include "common/consts.h"
#include "exec/broker_reader.h"
#include "exec/buffered_reader.h"
#include "exec/decompressor.h"
@@ -38,7 +40,6 @@
#include "runtime/stream_load/stream_load_pipe.h"
#include "runtime/tuple.h"
#include "util/utf8_check.h"
#include "common/consts.h"

namespace doris {

@@ -37,12 +37,11 @@
#include "runtime/result_file_sink.h"
#include "runtime/result_sink.h"
#include "runtime/runtime_state.h"

#include "vec/sink/result_sink.h"
#include "vec/sink/vdata_stream_sender.h"
#include "vec/sink/vmysql_table_sink.h"
#include "vec/sink/vmysql_table_writer.h"
#include "vec/sink/vtablet_sink.h"
#include "vec/sink/vmysql_table_sink.h"

namespace doris {

@@ -67,6 +67,7 @@
#include "vec/exec/vaggregation_node.h"
#include "vec/exec/vanalytic_eval_node.h"
#include "vec/exec/vassert_num_rows_node.h"
#include "vec/exec/vbroker_scan_node.h"
#include "vec/exec/vcross_join_node.h"
#include "vec/exec/vempty_set_node.h"
#include "vec/exec/ves_http_scan_node.h"
@@ -82,7 +83,6 @@
#include "vec/exec/vsort_node.h"
#include "vec/exec/vtable_function_node.h"
#include "vec/exec/vunion_node.h"
#include "vec/exec/vbroker_scan_node.h"
#include "vec/exprs/vexpr.h"

namespace doris {
@@ -17,9 +17,10 @@

#include "exec/json_scanner.h"

#include <algorithm>
#include <fmt/format.h>

#include <algorithm>

#include "env/env.h"
#include "exec/broker_reader.h"
#include "exec/buffered_reader.h"
@@ -18,12 +18,12 @@
#pragma once

#include <stdint.h>
#include <variant>

#include <boost/lexical_cast.hpp>
#include <map>
#include <sstream>
#include <string>
#include <variant>

#include "common/logging.h"
#include "exec/olap_utils.h"
@@ -32,9 +32,9 @@
#include "gen_cpp/PlanNodes_types.h"
#include "olap/delete_handler.h"
#include "olap/olap_cond.h"
#include "olap/tuple_reader.h"
#include "olap/rowset/column_data.h"
#include "olap/storage_engine.h"
#include "olap/tuple_reader.h"
#include "runtime/descriptors.h"
#include "runtime/tuple.h"
#include "runtime/vectorized_row_batch.h"
@@ -16,6 +16,7 @@
// under the License.

#include "exec/schema_scanner/schema_statistics_scanner.h"

#include "runtime/primitive_type.h"
#include "runtime/string_value.h"

@@ -30,7 +30,6 @@
#include "runtime/descriptors.h"
#include "runtime/raw_value.h"
#include "runtime/tuple.h"

#include "vec/core/block.h"

namespace doris {
@@ -40,7 +40,6 @@
#include "util/threadpool.h"
#include "util/time.h"
#include "util/uid_util.h"

#include "vec/core/block.h"
#include "vec/sink/vtablet_sink.h"

@@ -23,13 +23,13 @@
#include <string>
#include <vector>

#include "gen_cpp/Exprs_types.h"
#include "udf/udf.h"
#include "exprs/expr_context.h"
#include "exprs/hybrid_map.h"
#include "gen_cpp/Exprs_types.h"
#include "runtime/descriptors.h"
#include "runtime/runtime_state.h"
#include "runtime/tuple.h"
#include "udf/udf.h"
#include "util/hash_util.hpp"

namespace doris {
@@ -18,6 +18,7 @@
#pragma once

#include <string>

#include "udf/udf.h"

namespace doris {
@@ -28,6 +28,7 @@
#include <rapidjson/prettywriter.h>
#include <thrift/protocol/TDebugProtocol.h>

#include "common/consts.h"
#include "common/logging.h"
#include "common/utils.h"
#include "gen_cpp/FrontendService.h"
@@ -59,7 +60,6 @@
#include "util/thrift_rpc_helper.h"
#include "util/time.h"
#include "util/uid_util.h"
#include "common/consts.h"

namespace doris {

@@ -18,6 +18,7 @@
#pragma once

#include <string>

#include "http/http_handler.h"

namespace doris {
@@ -17,9 +17,10 @@

#pragma once

#include <string>

#include "http/http_handler.h"
#include "util/easy_json.h"
#include <string>

namespace doris {

@@ -17,8 +17,9 @@

#pragma once

#include <stdint.h>
#include <stddef.h>
#include <stdint.h>

#include <ostream>

namespace doris {
@@ -20,8 +20,8 @@

#include <math.h>

#include <string>
#include <sstream>
#include <string>

#include "olap/olap_define.h"
#include "olap/utils.h"