mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-26 01:22:04 +00:00
clang-tidy, part 23
This commit is contained in:
parent
66582d69a5
commit
7c188b8479
@ -112,7 +112,7 @@ namespace ErrorCodes
|
|||||||
class Client : public Poco::Util::Application
|
class Client : public Poco::Util::Application
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
Client() {}
|
Client() = default;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
using StringSet = std::unordered_set<String>;
|
using StringSet = std::unordered_set<String>;
|
||||||
@ -353,10 +353,8 @@ private:
|
|||||||
return false;
|
return false;
|
||||||
|
|
||||||
auto days = DateLUT::instance().toDayNum(current_time).toUnderType();
|
auto days = DateLUT::instance().toDayNum(current_time).toUnderType();
|
||||||
for (auto i = 0ul; i < N; ++i)
|
for (auto d : chineseNewYearIndicators)
|
||||||
{
|
{
|
||||||
auto d = chineseNewYearIndicators[i];
|
|
||||||
|
|
||||||
/// Let's celebrate until Lantern Festival
|
/// Let's celebrate until Lantern Festival
|
||||||
if (d <= days && d + 25u >= days)
|
if (d <= days && d + 25u >= days)
|
||||||
return true;
|
return true;
|
||||||
@ -645,7 +643,7 @@ private:
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
inline const String prompt() const
|
inline String prompt() const
|
||||||
{
|
{
|
||||||
return boost::replace_all_copy(prompt_by_server_display_name, "{database}", config().getString("database", "default"));
|
return boost::replace_all_copy(prompt_by_server_display_name, "{database}", config().getString("database", "default"));
|
||||||
}
|
}
|
||||||
|
@ -698,7 +698,7 @@ int Server::main(const std::vector<std::string> & /*args*/)
|
|||||||
return socket_address;
|
return socket_address;
|
||||||
};
|
};
|
||||||
|
|
||||||
auto socket_bind_listen = [&](auto & socket, const std::string & host, UInt16 port, [[maybe_unused]] bool secure = 0)
|
auto socket_bind_listen = [&](auto & socket, const std::string & host, UInt16 port, [[maybe_unused]] bool secure = false)
|
||||||
{
|
{
|
||||||
auto address = make_socket_address(host, port);
|
auto address = make_socket_address(host, port);
|
||||||
#if !defined(POCO_CLICKHOUSE_PATCH) || POCO_VERSION < 0x01090100
|
#if !defined(POCO_CLICKHOUSE_PATCH) || POCO_VERSION < 0x01090100
|
||||||
|
@ -157,8 +157,8 @@ private:
|
|||||||
void receiveQuery();
|
void receiveQuery();
|
||||||
bool receiveData(bool scalar);
|
bool receiveData(bool scalar);
|
||||||
bool readDataNext(const size_t & poll_interval, const int & receive_timeout);
|
bool readDataNext(const size_t & poll_interval, const int & receive_timeout);
|
||||||
void readData(const Settings & global_settings);
|
void readData(const Settings & connection_settings);
|
||||||
std::tuple<size_t, int> getReadTimeouts(const Settings & global_settings);
|
std::tuple<size_t, int> getReadTimeouts(const Settings & connection_settings);
|
||||||
|
|
||||||
[[noreturn]] void receiveUnexpectedData();
|
[[noreturn]] void receiveUnexpectedData();
|
||||||
[[noreturn]] void receiveUnexpectedQuery();
|
[[noreturn]] void receiveUnexpectedQuery();
|
||||||
@ -166,7 +166,7 @@ private:
|
|||||||
[[noreturn]] void receiveUnexpectedTablesStatusRequest();
|
[[noreturn]] void receiveUnexpectedTablesStatusRequest();
|
||||||
|
|
||||||
/// Process INSERT query
|
/// Process INSERT query
|
||||||
void processInsertQuery(const Settings & global_settings);
|
void processInsertQuery(const Settings & connection_settings);
|
||||||
|
|
||||||
/// Process a request that does not require the receiving of data blocks from the client
|
/// Process a request that does not require the receiving of data blocks from the client
|
||||||
void processOrdinaryQuery();
|
void processOrdinaryQuery();
|
||||||
|
Loading…
Reference in New Issue
Block a user