github-actions[bot] commented on code in PR #18526: URL: https://github.com/apache/doris/pull/18526#discussion_r1161662123
########## be/src/geo/ByteOrderDataInStream.h: ########## @@ -0,0 +1,108 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +#include <cstddef> + +#include "ByteOrderValues.h" +#include "geo/geo_common.h" +#include "machine.h" +namespace doris { +class ByteOrderDataInStream { + +public: + + ByteOrderDataInStream() + : ByteOrderDataInStream(nullptr, 0) {}; + + ByteOrderDataInStream(const unsigned char* buff, size_t buffsz) + : byteOrder(getMachineByteOrder()) + , buf(buff) + , end(buff + buffsz) + {}; + + ~ByteOrderDataInStream() {}; Review Comment: warning: use '= default' to define a trivial destructor [modernize-use-equals-default] ```suggestion ~ByteOrderDataInStream() = default;; ``` ########## be/src/geo/ByteOrderValues.h: ########## @@ -0,0 +1,54 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +using int64_t = long long; Review Comment: warning: typedef redefinition with different types ('long long' vs '__int64_t' (aka 'long')) [clang-diagnostic-error] ```cpp using int64_t = long long; ^ ``` **/usr/include/x86_64-linux-gnu/bits/stdint-intn.h:26:** previous definition is here ```cpp typedef __int64_t int64_t; ^ ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org