DEVTOOLS-5170 Delete Y_IGNORE markers (#5533)

They have been superseded by a new include resolution configuration that lives
outside clickhouse source tree.
This commit is contained in:
Orivej Desh 2019-06-05 11:52:39 +00:00 committed by proller
parent 9fdc209f32
commit 5ec179377a
40 changed files with 84 additions and 92 deletions

View File

@ -81,7 +81,7 @@
#define PCG_128BIT_CONSTANT(high,low) \ #define PCG_128BIT_CONSTANT(high,low) \
((pcg128_t(high) << 64) + low) ((pcg128_t(high) << 64) + low)
#else #else
#include "pcg_uint128.hpp" // Y_IGNORE #include "pcg_uint128.hpp"
namespace pcg_extras { namespace pcg_extras {
typedef pcg_extras::uint_x4<uint32_t,uint64_t> pcg128_t; typedef pcg_extras::uint_x4<uint32_t,uint64_t> pcg128_t;
} }

View File

@ -1,5 +1,5 @@
#if __has_include(<rdkafka.h>) // maybe bundled #if __has_include(<rdkafka.h>) // maybe bundled
# include_next <rdkafka.h> // Y_IGNORE # include_next <rdkafka.h>
#else // system #else // system
# include_next <librdkafka/rdkafka.h> # include_next <librdkafka/rdkafka.h>
#endif #endif

View File

@ -67,7 +67,7 @@
#include <Storages/ColumnsDescription.h> #include <Storages/ColumnsDescription.h>
#if USE_READLINE #if USE_READLINE
#include "Suggest.h" // Y_IGNORE #include "Suggest.h"
#endif #endif
#ifndef __clang__ #ifndef __clang__

View File

@ -15,7 +15,7 @@
#endif #endif
#if USE_TCMALLOC #if USE_TCMALLOC
#include <gperftools/malloc_extension.h> // Y_IGNORE #include <gperftools/malloc_extension.h>
#endif #endif
#include <Common/StringUtils/StringUtils.h> #include <Common/StringUtils/StringUtils.h>

View File

@ -3,9 +3,9 @@
#if USE_POCO_SQLODBC || USE_POCO_DATAODBC #if USE_POCO_SQLODBC || USE_POCO_DATAODBC
#if USE_POCO_SQLODBC #if USE_POCO_SQLODBC
#include <Poco/SQL/ODBC/ODBCException.h> // Y_IGNORE #include <Poco/SQL/ODBC/ODBCException.h>
#include <Poco/SQL/ODBC/SessionImpl.h> // Y_IGNORE #include <Poco/SQL/ODBC/SessionImpl.h>
#include <Poco/SQL/ODBC/Utility.h> // Y_IGNORE #include <Poco/SQL/ODBC/Utility.h>
#define POCO_SQL_ODBC_CLASS Poco::SQL::ODBC #define POCO_SQL_ODBC_CLASS Poco::SQL::ODBC
#endif #endif
#if USE_POCO_DATAODBC #if USE_POCO_DATAODBC

View File

@ -2,9 +2,9 @@
#if USE_POCO_SQLODBC || USE_POCO_DATAODBC #if USE_POCO_SQLODBC || USE_POCO_DATAODBC
#if USE_POCO_SQLODBC #if USE_POCO_SQLODBC
#include <Poco/SQL/ODBC/ODBCException.h> // Y_IGNORE #include <Poco/SQL/ODBC/ODBCException.h>
#include <Poco/SQL/ODBC/SessionImpl.h> // Y_IGNORE #include <Poco/SQL/ODBC/SessionImpl.h>
#include <Poco/SQL/ODBC/Utility.h> // Y_IGNORE #include <Poco/SQL/ODBC/Utility.h>
#define POCO_SQL_ODBC_CLASS Poco::SQL::ODBC #define POCO_SQL_ODBC_CLASS Poco::SQL::ODBC
#endif #endif
#if USE_POCO_DATAODBC #if USE_POCO_DATAODBC

View File

@ -2,9 +2,9 @@
#if USE_POCO_SQLODBC || USE_POCO_DATAODBC #if USE_POCO_SQLODBC || USE_POCO_DATAODBC
#if USE_POCO_SQLODBC #if USE_POCO_SQLODBC
#include <Poco/SQL/ODBC/ODBCException.h> // Y_IGNORE #include <Poco/SQL/ODBC/ODBCException.h>
#include <Poco/SQL/ODBC/SessionImpl.h> // Y_IGNORE #include <Poco/SQL/ODBC/SessionImpl.h>
#include <Poco/SQL/ODBC/Utility.h> // Y_IGNORE #include <Poco/SQL/ODBC/Utility.h>
#define POCO_SQL_ODBC_CLASS Poco::SQL::ODBC #define POCO_SQL_ODBC_CLASS Poco::SQL::ODBC
#endif #endif
#if USE_POCO_DATAODBC #if USE_POCO_DATAODBC

View File

@ -8,7 +8,7 @@
#if USE_POCO_SQLODBC || USE_POCO_DATAODBC #if USE_POCO_SQLODBC || USE_POCO_DATAODBC
#if USE_POCO_SQLODBC #if USE_POCO_SQLODBC
#include <Poco/SQL/ODBC/Utility.h> // Y_IGNORE #include <Poco/SQL/ODBC/Utility.h>
#endif #endif
#if USE_POCO_DATAODBC #if USE_POCO_DATAODBC
#include <Poco/Data/ODBC/Utility.h> #include <Poco/Data/ODBC/Utility.h>

View File

@ -6,7 +6,7 @@
#include <Common/config.h> #include <Common/config.h>
#include <re2/re2.h> #include <re2/re2.h>
#if USE_RE2_ST #if USE_RE2_ST
#include <re2_st/re2.h> // Y_IGNORE #include <re2_st/re2.h>
#else #else
#define re2_st re2 #define re2_st re2
#endif #endif

View File

@ -7,7 +7,7 @@
# include <Common/Exception.h> # include <Common/Exception.h>
namespace DB { namespace ErrorCodes { extern const int CPUID_ERROR; }} namespace DB { namespace ErrorCodes { extern const int CPUID_ERROR; }}
#elif USE_CPUINFO #elif USE_CPUINFO
# include <cpuinfo.h> // Y_IGNORE # include <cpuinfo.h>
#endif #endif

View File

@ -16,7 +16,7 @@
#pragma GCC diagnostic push #pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wunused-parameter" #pragma GCC diagnostic ignored "-Wunused-parameter"
#include <llvm/IR/IRBuilder.h> // Y_IGNORE #include <llvm/IR/IRBuilder.h>
#pragma GCC diagnostic pop #pragma GCC diagnostic pop

View File

@ -3,13 +3,13 @@
#include <IO/ReadBuffer.h> #include <IO/ReadBuffer.h>
#include <Interpreters/Context.h> #include <Interpreters/Context.h>
#include <Formats/CapnProtoRowInputStream.h> // Y_IGNORE #include <Formats/CapnProtoRowInputStream.h>
#include <Formats/FormatFactory.h> #include <Formats/FormatFactory.h>
#include <Formats/BlockInputStreamFromRowInputStream.h> #include <Formats/BlockInputStreamFromRowInputStream.h>
#include <Formats/FormatSchemaInfo.h> #include <Formats/FormatSchemaInfo.h>
#include <capnp/serialize.h> // Y_IGNORE #include <capnp/serialize.h>
#include <capnp/dynamic.h> // Y_IGNORE #include <capnp/dynamic.h>
#include <capnp/common.h> // Y_IGNORE #include <capnp/common.h>
#include <boost/algorithm/string.hpp> #include <boost/algorithm/string.hpp>
#include <boost/range/join.hpp> #include <boost/range/join.hpp>
#include <common/logger_useful.h> #include <common/logger_useful.h>

View File

@ -2,8 +2,8 @@
#if USE_PROTOBUF #if USE_PROTOBUF
#include <Formats/FormatSchemaInfo.h> #include <Formats/FormatSchemaInfo.h>
#include <Formats/ProtobufSchemas.h> // Y_IGNORE #include <Formats/ProtobufSchemas.h>
#include <google/protobuf/compiler/importer.h> // Y_IGNORE #include <google/protobuf/compiler/importer.h>
#include <Common/Exception.h> #include <Common/Exception.h>

View File

@ -7,8 +7,8 @@
#include <AggregateFunctions/IAggregateFunction.h> #include <AggregateFunctions/IAggregateFunction.h>
#include <DataTypes/DataTypesDecimal.h> #include <DataTypes/DataTypesDecimal.h>
#include <boost/numeric/conversion/cast.hpp> #include <boost/numeric/conversion/cast.hpp>
#include <google/protobuf/descriptor.h> // Y_IGNORE #include <google/protobuf/descriptor.h>
#include <google/protobuf/descriptor.pb.h> // Y_IGNORE #include <google/protobuf/descriptor.pb.h>
#include <IO/ReadHelpers.h> #include <IO/ReadHelpers.h>
#include <IO/WriteHelpers.h> #include <IO/WriteHelpers.h>
#include "ProtobufWriter.h" #include "ProtobufWriter.h"

View File

@ -7,7 +7,7 @@
#include <Functions/FunctionHelpers.h> #include <Functions/FunctionHelpers.h>
#include <Functions/GatherUtils/Algorithms.h> #include <Functions/GatherUtils/Algorithms.h>
#include <IO/WriteHelpers.h> #include <IO/WriteHelpers.h>
#include <libbase64.h> // Y_IGNORE #include <libbase64.h>
namespace DB namespace DB

View File

@ -24,7 +24,7 @@
#if USE_EMBEDDED_COMPILER #if USE_EMBEDDED_COMPILER
#pragma GCC diagnostic push #pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wunused-parameter" #pragma GCC diagnostic ignored "-Wunused-parameter"
#include <llvm/IR/IRBuilder.h> // Y_IGNORE #include <llvm/IR/IRBuilder.h>
#pragma GCC diagnostic pop #pragma GCC diagnostic pop
#endif #endif

View File

@ -22,8 +22,8 @@
#pragma clang diagnostic ignored "-Wshift-negative-value" #pragma clang diagnostic ignored "-Wshift-negative-value"
#endif #endif
#include <vectorf128.h> // Y_IGNORE #include <vectorf128.h>
#include <vectormath_exp.h> // Y_IGNORE #include <vectormath_exp.h>
#ifdef __clang__ #ifdef __clang__
#pragma clang diagnostic pop #pragma clang diagnostic pop

View File

@ -21,9 +21,9 @@
#pragma clang diagnostic ignored "-Wshift-negative-value" #pragma clang diagnostic ignored "-Wshift-negative-value"
#endif #endif
#include <vectorf128.h> // Y_IGNORE #include <vectorf128.h>
#include <vectormath_exp.h> // Y_IGNORE #include <vectormath_exp.h>
#include <vectormath_trig.h> // Y_IGNORE #include <vectormath_trig.h>
#ifdef __clang__ #ifdef __clang__
#pragma clang diagnostic pop #pragma clang diagnostic pop

View File

@ -13,7 +13,7 @@
#if USE_EMBEDDED_COMPILER #if USE_EMBEDDED_COMPILER
#pragma GCC diagnostic push #pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wunused-parameter" #pragma GCC diagnostic ignored "-Wunused-parameter"
#include <llvm/IR/IRBuilder.h> // Y_IGNORE #include <llvm/IR/IRBuilder.h>
#pragma GCC diagnostic pop #pragma GCC diagnostic pop
#endif #endif

View File

@ -12,7 +12,7 @@
#include <Common/config.h> #include <Common/config.h>
#if USE_XXHASH #if USE_XXHASH
# include <xxhash.h> // Y_IGNORE # include <xxhash.h>
#endif #endif
#if USE_SSL #if USE_SSL

View File

@ -18,7 +18,7 @@
#pragma GCC diagnostic push #pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wunused-parameter" #pragma GCC diagnostic ignored "-Wunused-parameter"
#include <llvm/IR/IRBuilder.h> // Y_IGNORE #include <llvm/IR/IRBuilder.h>
#pragma GCC diagnostic pop #pragma GCC diagnostic pop
#endif #endif

View File

@ -27,7 +27,7 @@
#endif #endif
#if USE_RE2_ST #if USE_RE2_ST
# include <re2_st/re2.h> // Y_IGNORE # include <re2_st/re2.h>
#else #else
# define re2_st re2 # define re2_st re2
#endif #endif

View File

@ -25,7 +25,7 @@
#if USE_EMBEDDED_COMPILER #if USE_EMBEDDED_COMPILER
#pragma GCC diagnostic push #pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wunused-parameter" #pragma GCC diagnostic ignored "-Wunused-parameter"
#include <llvm/IR/IRBuilder.h> // Y_IGNORE #include <llvm/IR/IRBuilder.h>
#pragma GCC diagnostic pop #pragma GCC diagnostic pop
#endif #endif

View File

@ -2,7 +2,7 @@
#if USE_BROTLI #if USE_BROTLI
#include "BrotliReadBuffer.h" #include "BrotliReadBuffer.h"
#include <brotli/decode.h> // Y_IGNORE #include <brotli/decode.h>
namespace DB namespace DB
{ {

View File

@ -4,7 +4,7 @@
#include <Poco/URI.h> #include <Poco/URI.h>
#if USE_HDFS #if USE_HDFS
#include <hdfs/hdfs.h> // Y_IGNORE #include <hdfs/hdfs.h>
namespace DB namespace DB
{ {

View File

@ -2,10 +2,10 @@
#if USE_HDFS #if USE_HDFS
#include <IO/ReadBufferFromHDFS.h> // Y_IGNORE #include <IO/ReadBufferFromHDFS.h>
#include <IO/HDFSCommon.h> #include <IO/HDFSCommon.h>
#include <Poco/URI.h> #include <Poco/URI.h>
#include <hdfs/hdfs.h> // Y_IGNORE #include <hdfs/hdfs.h>
namespace DB namespace DB

View File

@ -3,9 +3,9 @@
#if USE_HDFS #if USE_HDFS
#include <Poco/URI.h> #include <Poco/URI.h>
#include <IO/WriteBufferFromHDFS.h> // Y_IGNORE #include <IO/WriteBufferFromHDFS.h>
#include <IO/HDFSCommon.h> #include <IO/HDFSCommon.h>
#include <hdfs/hdfs.h> // Y_IGNORE #include <hdfs/hdfs.h>
namespace DB namespace DB

View File

@ -17,7 +17,7 @@
#endif #endif
#if USE_TCMALLOC #if USE_TCMALLOC
#include <gperftools/malloc_extension.h> // Y_IGNORE #include <gperftools/malloc_extension.h>
/// Initializing malloc extension in global constructor as required. /// Initializing malloc extension in global constructor as required.
struct MallocExtensionInitializer struct MallocExtensionInitializer

View File

@ -19,38 +19,30 @@
#pragma GCC diagnostic ignored "-Wunused-parameter" #pragma GCC diagnostic ignored "-Wunused-parameter"
#pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wnon-virtual-dtor"
/** Y_IGNORE marker means that this header is not analyzed by Arcadia build system. #include <llvm/Analysis/TargetTransformInfo.h>
* "Arcadia" is the name of internal Yandex source code repository. #include <llvm/Config/llvm-config.h>
* ClickHouse have limited support for build in Arcadia #include <llvm/IR/BasicBlock.h>
* (ClickHouse source code is used in another Yandex products as a library). #include <llvm/IR/DataLayout.h>
* Some libraries are not enabled when build inside Arcadia is used, #include <llvm/IR/DerivedTypes.h>
* that what does Y_IGNORE indicate. #include <llvm/IR/Function.h>
*/ #include <llvm/IR/IRBuilder.h>
#include <llvm/IR/LLVMContext.h>
#include <llvm/Analysis/TargetTransformInfo.h> // Y_IGNORE #include <llvm/IR/Mangler.h>
#include <llvm/Config/llvm-config.h> // Y_IGNORE #include <llvm/IR/Module.h>
#include <llvm/IR/BasicBlock.h> // Y_IGNORE #include <llvm/IR/Type.h>
#include <llvm/IR/DataLayout.h> // Y_IGNORE #include <llvm/ExecutionEngine/ExecutionEngine.h>
#include <llvm/IR/DerivedTypes.h> // Y_IGNORE #include <llvm/ExecutionEngine/JITSymbol.h>
#include <llvm/IR/Function.h> // Y_IGNORE #include <llvm/ExecutionEngine/SectionMemoryManager.h>
#include <llvm/IR/IRBuilder.h> // Y_IGNORE #include <llvm/ExecutionEngine/Orc/CompileUtils.h>
#include <llvm/IR/LLVMContext.h> // Y_IGNORE #include <llvm/ExecutionEngine/Orc/IRCompileLayer.h>
#include <llvm/IR/Mangler.h> // Y_IGNORE #include <llvm/ExecutionEngine/Orc/RTDyldObjectLinkingLayer.h>
#include <llvm/IR/Module.h> // Y_IGNORE #include <llvm/Target/TargetMachine.h>
#include <llvm/IR/Type.h> // Y_IGNORE #include <llvm/MC/SubtargetFeature.h>
#include <llvm/ExecutionEngine/ExecutionEngine.h> // Y_IGNORE #include <llvm/Support/DynamicLibrary.h>
#include <llvm/ExecutionEngine/JITSymbol.h> // Y_IGNORE #include <llvm/Support/Host.h>
#include <llvm/ExecutionEngine/SectionMemoryManager.h> // Y_IGNORE #include <llvm/Support/TargetRegistry.h>
#include <llvm/ExecutionEngine/Orc/CompileUtils.h> // Y_IGNORE #include <llvm/Support/TargetSelect.h>
#include <llvm/ExecutionEngine/Orc/IRCompileLayer.h> // Y_IGNORE #include <llvm/Transforms/IPO/PassManagerBuilder.h>
#include <llvm/ExecutionEngine/Orc/RTDyldObjectLinkingLayer.h> // Y_IGNORE
#include <llvm/Target/TargetMachine.h> // Y_IGNORE
#include <llvm/MC/SubtargetFeature.h> // Y_IGNORE
#include <llvm/Support/DynamicLibrary.h> // Y_IGNORE
#include <llvm/Support/Host.h> // Y_IGNORE
#include <llvm/Support/TargetRegistry.h> // Y_IGNORE
#include <llvm/Support/TargetSelect.h> // Y_IGNORE
#include <llvm/Transforms/IPO/PassManagerBuilder.h> // Y_IGNORE
#pragma GCC diagnostic pop #pragma GCC diagnostic pop

View File

@ -3,12 +3,12 @@
#if USE_HDFS #if USE_HDFS
#include <Storages/StorageFactory.h> #include <Storages/StorageFactory.h>
#include <Storages/StorageHDFS.h> // Y_IGNORE #include <Storages/StorageHDFS.h>
#include <Interpreters/Context.h> #include <Interpreters/Context.h>
#include <Interpreters/evaluateConstantExpression.h> #include <Interpreters/evaluateConstantExpression.h>
#include <Parsers/ASTLiteral.h> #include <Parsers/ASTLiteral.h>
#include <IO/ReadBufferFromHDFS.h> // Y_IGNORE #include <IO/ReadBufferFromHDFS.h>
#include <IO/WriteBufferFromHDFS.h> // Y_IGNORE #include <IO/WriteBufferFromHDFS.h>
#include <Formats/FormatFactory.h> #include <Formats/FormatFactory.h>
#include <DataStreams/IBlockOutputStream.h> #include <DataStreams/IBlockOutputStream.h>
#include <DataStreams/UnionBlockInputStream.h> #include <DataStreams/UnionBlockInputStream.h>

View File

@ -1,9 +1,9 @@
#include <Common/config.h> #include <Common/config.h>
#if USE_HDFS #if USE_HDFS
#include <Storages/StorageHDFS.h> // Y_IGNORE #include <Storages/StorageHDFS.h>
#include <TableFunctions/TableFunctionFactory.h> #include <TableFunctions/TableFunctionFactory.h>
#include <TableFunctions/TableFunctionHDFS.h> // Y_IGNORE #include <TableFunctions/TableFunctionHDFS.h>
namespace DB namespace DB
{ {

View File

@ -1,13 +1,13 @@
#if __has_include(<cctz/civil_time.h>) #if __has_include(<cctz/civil_time.h>)
#include <cctz/civil_time.h> // bundled, debian #include <cctz/civil_time.h> // bundled, debian
#else #else
#include <civil_time.h> // Y_IGNORE // freebsd #include <civil_time.h> // freebsd
#endif #endif
#if __has_include(<cctz/time_zone.h>) #if __has_include(<cctz/time_zone.h>)
#include <cctz/time_zone.h> #include <cctz/time_zone.h>
#else #else
#include <time_zone.h> // Y_IGNORE #include <time_zone.h>
#endif #endif
#include <common/DateLUTImpl.h> #include <common/DateLUTImpl.h>

View File

@ -1,5 +1,5 @@
#if __has_include(<mariadb/mysql.h>) #if __has_include(<mariadb/mysql.h>)
#include <mariadb/mysql.h> // Y_IGNORE #include <mariadb/mysql.h>
#else #else
#include <mysql/mysql.h> #include <mysql/mysql.h>
#endif #endif

View File

@ -1,5 +1,5 @@
#if __has_include(<mariadb/mysql.h>) #if __has_include(<mariadb/mysql.h>)
#include <mariadb/mysql.h> // Y_IGNORE #include <mariadb/mysql.h>
#else #else
#include <mysql/mysql.h> #include <mysql/mysql.h>
#endif #endif

View File

@ -1,6 +1,6 @@
#if __has_include(<mariadb/mysql.h>) #if __has_include(<mariadb/mysql.h>)
#include <mariadb/mysql.h> // Y_IGNORE #include <mariadb/mysql.h>
#include <mariadb/mysqld_error.h> // Y_IGNORE #include <mariadb/mysqld_error.h>
#else #else
#include <mysql/mysql.h> #include <mysql/mysql.h>
#include <mysql/mysqld_error.h> #include <mysql/mysqld_error.h>

View File

@ -1,5 +1,5 @@
#if __has_include(<mariadb/mysql.h>) #if __has_include(<mariadb/mysql.h>)
#include <mariadb/mysql.h> // Y_IGNORE #include <mariadb/mysql.h>
#else #else
#include <mysql/mysql.h> #include <mysql/mysql.h>
#endif #endif

View File

@ -1,5 +1,5 @@
#if __has_include(<mariadb/mysql.h>) #if __has_include(<mariadb/mysql.h>)
#include <mariadb/mysql.h> // Y_IGNORE #include <mariadb/mysql.h>
#else #else
#include <mysql/mysql.h> #include <mysql/mysql.h>
#endif #endif

View File

@ -1,5 +1,5 @@
#if __has_include(<mariadb/mysql.h>) #if __has_include(<mariadb/mysql.h>)
#include <mariadb/mysql.h> // Y_IGNORE #include <mariadb/mysql.h>
#else #else
#include <mysql/mysql.h> #include <mysql/mysql.h>
#endif #endif

View File

@ -1,5 +1,5 @@
#if __has_include(<mariadb/mysql.h>) #if __has_include(<mariadb/mysql.h>)
#include <mariadb/mysql.h> // Y_IGNORE #include <mariadb/mysql.h>
#else #else
#include <mysql/mysql.h> #include <mysql/mysql.h>
#endif #endif

View File

@ -1,5 +1,5 @@
#if __has_include(<mariadb/mysql.h>) #if __has_include(<mariadb/mysql.h>)
#include <mariadb/mysql.h> // Y_IGNORE #include <mariadb/mysql.h>
#else #else
#include <mysql/mysql.h> #include <mysql/mysql.h>
#endif #endif