From 43aaccdaa165ef6c56937247c7a1bcba337f8d52 Mon Sep 17 00:00:00 2001 From: Yakov Olkhovskiy Date: Thu, 18 Jan 2024 19:17:05 +0000 Subject: [PATCH] clang tidy --- src/Analyzer/Utils.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Analyzer/Utils.cpp b/src/Analyzer/Utils.cpp index 26067141b1d..9c3a7c2fb55 100644 --- a/src/Analyzer/Utils.cpp +++ b/src/Analyzer/Utils.cpp @@ -354,13 +354,13 @@ QueryTreeNodes extractTrueTableExpressions(const QueryTreeNodePtr & tree) } case QueryTreeNodeType::UNION: { - for (auto union_node : node_to_process->as()->getQueries().getNodes()) + for (const auto & union_node : node_to_process->as()->getQueries().getNodes()) nodes_to_process.push_front(union_node); break; } case QueryTreeNodeType::TABLE_FUNCTION: { - for (auto argument_node : node_to_process->as()->getArgumentsNode()->getChildren()) + for (const auto & argument_node : node_to_process->as()->getArgumentsNode()->getChildren()) nodes_to_process.push_front(argument_node); break; }