This is an automated email from the ASF dual-hosted git repository.
yiguolei pushed a commit to branch branch-2.1
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-2.1 by this push:
new e5a9c2552d7 [chore] Add Clang 18/19 Support #47438 (#50300)
e5a9c2552d7 is described below
commit e5a9c2552d799c26abc666a92b402cd05e7793c8
Author: Pxl <[email protected]>
AuthorDate: Wed Apr 23 17:51:14 2025 +0800
[chore] Add Clang 18/19 Support #47438 (#50300)
pick and modified from #47438
---------
Co-authored-by: Amos Bird <[email protected]>
---
be/CMakeLists.txt | 5 ++++-
be/src/pipeline/exec/exchange_sink_buffer.cpp | 2 +-
be/src/pipeline/exec/exchange_sink_buffer.h | 2 +-
be/src/pipeline/exec/hashjoin_probe_operator.cpp | 4 ++--
be/src/vec/columns/column_decimal.cpp | 2 +-
be/src/vec/columns/column_vector.cpp | 2 +-
be/src/vec/exec/jni_connector.h | 2 +-
be/src/vec/functions/function_binary_arithmetic.h | 6 +++---
8 files changed, 14 insertions(+), 11 deletions(-)
diff --git a/be/CMakeLists.txt b/be/CMakeLists.txt
index 7d8579845fb..11a416158a8 100644
--- a/be/CMakeLists.txt
+++ b/be/CMakeLists.txt
@@ -254,6 +254,10 @@ add_compile_options(-g
$<$<COMPILE_LANGUAGE:CXX>:-Wnon-virtual-dtor>)
add_compile_options(-Wno-unused-parameter
+ $<$<COMPILE_LANGUAGE:CXX>:-Wno-incompatible-pointer-types>
+ -Wno-unknown-warning-option
+ -Wno-deprecated-declarations
+ -Wno-missing-designated-field-initializers
-Wno-sign-compare)
if (COMPILER_GCC)
@@ -767,4 +771,3 @@ get_property(dirs DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
PROPERTY INCLUDE_DIRECTO
foreach(dir ${dirs})
message(STATUS "dir='${dir}'")
endforeach()
-
diff --git a/be/src/pipeline/exec/exchange_sink_buffer.cpp
b/be/src/pipeline/exec/exchange_sink_buffer.cpp
index af66eedc1e0..0991652aeed 100644
--- a/be/src/pipeline/exec/exchange_sink_buffer.cpp
+++ b/be/src/pipeline/exec/exchange_sink_buffer.cpp
@@ -435,7 +435,7 @@ void
ExchangeSinkBuffer<Parent>::_construct_request(InstanceLoId id, PUniqueId f
template <typename Parent>
void ExchangeSinkBuffer<Parent>::_ended(InstanceLoId id) {
- if (!_instance_to_package_queue_mutex.template contains(id)) {
+ if (!_instance_to_package_queue_mutex.contains(id)) {
std::stringstream ss;
ss << "failed find the instance id:" << id
<< " now mutex map size:" <<
_instance_to_package_queue_mutex.size();
diff --git a/be/src/pipeline/exec/exchange_sink_buffer.h
b/be/src/pipeline/exec/exchange_sink_buffer.h
index 5ce6d75b149..9ebf5bb77e7 100644
--- a/be/src/pipeline/exec/exchange_sink_buffer.h
+++ b/be/src/pipeline/exec/exchange_sink_buffer.h
@@ -66,7 +66,7 @@ struct AtomicWrapper {
AtomicWrapper(const AtomicWrapper& other) : _value(other._value.load()) {}
- AtomicWrapper& operator=(const AtomicWrapper& other) {
_value.store(other._a.load()); }
+ AtomicWrapper& operator=(const AtomicWrapper& other) {
_value.store(other._value.load()); }
};
// We use BroadcastPBlockHolder to hold a broadcasted PBlock. For broadcast
shuffle, one PBlock
diff --git a/be/src/pipeline/exec/hashjoin_probe_operator.cpp
b/be/src/pipeline/exec/hashjoin_probe_operator.cpp
index 0b88a174f9e..a98c7215771 100644
--- a/be/src/pipeline/exec/hashjoin_probe_operator.cpp
+++ b/be/src/pipeline/exec/hashjoin_probe_operator.cpp
@@ -317,8 +317,8 @@ Status HashJoinProbeOperatorX::pull(doris::RuntimeState*
state, vectorized::Bloc
if constexpr (!std::is_same_v<HashTableProbeType,
std::monostate>) {
using HashTableCtxType =
std::decay_t<decltype(arg)>;
if constexpr (!std::is_same_v<HashTableCtxType,
std::monostate>) {
- st = process_hashtable_ctx.template
process<need_null_map_for_probe,
-
ignore_null>(
+ st = process_hashtable_ctx.template process<
+ need_null_map_for_probe, ignore_null,
HashTableCtxType>(
arg,
need_null_map_for_probe
?
&local_state._null_map_column->get_data()
diff --git a/be/src/vec/columns/column_decimal.cpp
b/be/src/vec/columns/column_decimal.cpp
index 7c89b5518d8..57cbcbeff5a 100644
--- a/be/src/vec/columns/column_decimal.cpp
+++ b/be/src/vec/columns/column_decimal.cpp
@@ -437,7 +437,7 @@ template <typename T>
void ColumnDecimal<T>::sort_column(const ColumnSorter* sorter, EqualFlags&
flags,
IColumn::Permutation& perms, EqualRange&
range,
bool last_column) const {
- sorter->template sort_column(static_cast<const Self&>(*this), flags,
perms, range, last_column);
+ sorter->sort_column(static_cast<const Self&>(*this), flags, perms, range,
last_column);
}
template <typename T>
diff --git a/be/src/vec/columns/column_vector.cpp
b/be/src/vec/columns/column_vector.cpp
index 6c57397a837..c6afd3a3ce3 100644
--- a/be/src/vec/columns/column_vector.cpp
+++ b/be/src/vec/columns/column_vector.cpp
@@ -133,7 +133,7 @@ template <typename T>
void ColumnVector<T>::sort_column(const ColumnSorter* sorter, EqualFlags&
flags,
IColumn::Permutation& perms, EqualRange&
range,
bool last_column) const {
- sorter->template sort_column(static_cast<const Self&>(*this), flags,
perms, range, last_column);
+ sorter->sort_column(static_cast<const Self&>(*this), flags, perms, range,
last_column);
}
template <typename T>
diff --git a/be/src/vec/exec/jni_connector.h b/be/src/vec/exec/jni_connector.h
index a033a652063..67211f44373 100644
--- a/be/src/vec/exec/jni_connector.h
+++ b/be/src/vec/exec/jni_connector.h
@@ -93,7 +93,7 @@ public:
struct ScanPredicate {
ScanPredicate() = default;
~ScanPredicate() = default;
- const std::string column_name;
+ std::string column_name;
SQLFilterOp op;
std::vector<const CppType*> values;
int scale;
diff --git a/be/src/vec/functions/function_binary_arithmetic.h
b/be/src/vec/functions/function_binary_arithmetic.h
index d69b00043a1..6b303238a3b 100644
--- a/be/src/vec/functions/function_binary_arithmetic.h
+++ b/be/src/vec/functions/function_binary_arithmetic.h
@@ -545,7 +545,7 @@ private:
if constexpr (IsDecimalV2<B> || IsDecimalV2<A>) {
// Now, Doris only support decimal +-*/ decimal.
if constexpr (check_overflow) {
- auto res = Op::template apply(DecimalV2Value(a),
DecimalV2Value(b)).value();
+ auto res = Op::apply(DecimalV2Value(a),
DecimalV2Value(b)).value();
if (res > max_result_number.value || res <
-max_result_number.value) {
THROW_DECIMAL_BINARY_OP_OVERFLOW_EXCEPTION(
DecimalV2Value(a).to_string(), Name::name,
@@ -554,7 +554,7 @@ private:
}
return res;
} else {
- return Op::template apply(DecimalV2Value(a),
DecimalV2Value(b)).value();
+ return Op::apply(DecimalV2Value(a), DecimalV2Value(b)).value();
}
} else {
NativeResultType res;
@@ -649,7 +649,7 @@ private:
if constexpr (IsDecimalV2<B> || IsDecimalV2<A>) {
DecimalV2Value l(a);
DecimalV2Value r(b);
- auto ans = Op::template apply(l, r, is_null);
+ auto ans = Op::apply(l, r, is_null);
using ANS_TYPE = std::decay_t<decltype(ans)>;
if constexpr (check_overflow && OpTraits::is_division) {
if constexpr (std::is_same_v<ANS_TYPE, DecimalV2Value>) {
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]