mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-03 04:52:10 +00:00
fix bugprone-macro-parentheses
This commit is contained in:
parent
0939e7f922
commit
96b54df163
@ -284,11 +284,13 @@ ASTPtr getCreateTableQueryClean(const StorageID & table_id, ContextPtr context)
|
|||||||
|
|
||||||
SystemLogs::SystemLogs(ContextPtr global_context, const Poco::Util::AbstractConfiguration & config)
|
SystemLogs::SystemLogs(ContextPtr global_context, const Poco::Util::AbstractConfiguration & config)
|
||||||
{
|
{
|
||||||
|
/// NOLINTBEGIN(bugprone-macro-parentheses)
|
||||||
#define CREATE_PUBLIC_MEMBERS(log_type, member, descr) \
|
#define CREATE_PUBLIC_MEMBERS(log_type, member, descr) \
|
||||||
member = createSystemLog<log_type>(global_context, "system", #member, config, #member, descr); \
|
member = createSystemLog<log_type>(global_context, "system", #member, config, #member, descr); \
|
||||||
|
|
||||||
LIST_OF_ALL_SYSTEM_LOGS(CREATE_PUBLIC_MEMBERS)
|
LIST_OF_ALL_SYSTEM_LOGS(CREATE_PUBLIC_MEMBERS)
|
||||||
#undef CREATE_PUBLIC_MEMBERS
|
#undef CREATE_PUBLIC_MEMBERS
|
||||||
|
/// NOLINTEND(bugprone-macro-parentheses)
|
||||||
|
|
||||||
if (session_log)
|
if (session_log)
|
||||||
global_context->addWarningMessage("Table system.session_log is enabled. It's unreliable and may contain garbage. Do not use it for any kind of security monitoring.");
|
global_context->addWarningMessage("Table system.session_log is enabled. It's unreliable and may contain garbage. Do not use it for any kind of security monitoring.");
|
||||||
@ -333,7 +335,7 @@ SystemLogs::SystemLogs(ContextPtr global_context, const Poco::Util::AbstractConf
|
|||||||
std::vector<ISystemLog *> SystemLogs::getAllLogs() const
|
std::vector<ISystemLog *> SystemLogs::getAllLogs() const
|
||||||
{
|
{
|
||||||
#define GET_RAW_POINTERS(log_type, member, descr) \
|
#define GET_RAW_POINTERS(log_type, member, descr) \
|
||||||
member.get(), \
|
(member).get(), \
|
||||||
|
|
||||||
std::vector<ISystemLog *> result = {
|
std::vector<ISystemLog *> result = {
|
||||||
LIST_OF_ALL_SYSTEM_LOGS(GET_RAW_POINTERS)
|
LIST_OF_ALL_SYSTEM_LOGS(GET_RAW_POINTERS)
|
||||||
|
@ -60,11 +60,13 @@ namespace DB
|
|||||||
};
|
};
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/// NOLINTBEGIN(bugprone-macro-parentheses)
|
||||||
#define FORWARD_DECLARATION(log_type, member, descr) \
|
#define FORWARD_DECLARATION(log_type, member, descr) \
|
||||||
class log_type; \
|
class log_type; \
|
||||||
|
|
||||||
LIST_OF_ALL_SYSTEM_LOGS(FORWARD_DECLARATION)
|
LIST_OF_ALL_SYSTEM_LOGS(FORWARD_DECLARATION)
|
||||||
#undef FORWARD_DECLARATION
|
#undef FORWARD_DECLARATION
|
||||||
|
/// NOLINTEND(bugprone-macro-parentheses)
|
||||||
|
|
||||||
|
|
||||||
/// System logs should be destroyed in destructor of the last Context and before tables,
|
/// System logs should be destroyed in destructor of the last Context and before tables,
|
||||||
|
Loading…
Reference in New Issue
Block a user