Function name normalization fix functions header

This commit is contained in:
Maksim Kita 2022-10-04 17:29:33 +02:00
parent 6d02fa3c5f
commit f4101861e7
4 changed files with 8 additions and 4 deletions

View File

@ -1,7 +1,7 @@
# To run clang-tidy from CMake, build ClickHouse with -DENABLE_CLANG_TIDY=1. To show all warnings, it is
# recommended to pass "-k0" to Ninja.
# Enable all checks + disale selected checks. Feel free to remove disabled checks from below list if
# Enable all checks + disable selected checks. Feel free to remove disabled checks from below list if
# a) the new check is not controversial (this includes many checks in readability-* and google-*) or
# b) too noisy (checks with > 100 new warnings are considered noisy, this includes e.g. cppcoreguidelines-*).

View File

@ -114,4 +114,6 @@ struct AggregateUtils
}
};
const String & getAggregateFunctionCanonicalNameIfAny(const String & name);
}

View File

@ -88,4 +88,6 @@ private:
String getFactoryName() const override { return "FunctionFactory"; }
};
const String & getFunctionCanonicalNameIfAny(const String & name);
}

View File

@ -4,12 +4,12 @@
#include <Parsers/ASTCreateQuery.h>
#include <Parsers/ASTFunction.h>
#include <Functions/FunctionFactory.h>
#include <AggregateFunctions/AggregateFunctionFactory.h>
namespace DB
{
const String & getFunctionCanonicalNameIfAny(const String & name);
const String & getAggregateFunctionCanonicalNameIfAny(const String & name);
void FunctionNameNormalizer::visit(IAST * ast)
{
if (!ast)