Fix includes (#4673)

This commit is contained in:
proller 2019-03-13 16:58:04 +03:00 committed by GitHub
parent c39c32973c
commit cf8001b6a9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
10 changed files with 17 additions and 7 deletions

View File

@ -6,6 +6,7 @@
#include <boost/noncopyable.hpp>
#include <roaring.hh>
#include <Common/HashTable/SmallTable.h>
#include <Common/PODArray.h>
namespace DB
{

View File

@ -2,9 +2,9 @@
#include <cmath>
#include <limits>
#include "Defines.h"
#include "Types.h"
#include <Common/NaNUtils.h>
#include <Core/Types.h>
#include <Common/UInt128.h>
/** Preceptually-correct number comparisons.

View File

@ -8,7 +8,7 @@
#include <DataTypes/DataTypesDecimal.h>
#include <Columns/ColumnVector.h>
#include <Interpreters/castColumn.h>
#include "IFunction.h"
#include <Common/intExp.h>
#include <cmath>
#include <type_traits>

View File

@ -3,6 +3,7 @@
#include <Core/Defines.h>
#include <IO/WriteBuffer.h>
#include <common/itoa.h>
#include <common/likely.h>
/// 40 digits or 39 digits and a sign
#define WRITE_HELPERS_MAX_INT_WIDTH 40U

View File

@ -1,7 +1,7 @@
#pragma once
#include <unordered_map>
#include <memory>
#include <Core/Types.h>
namespace DB

View File

@ -1,7 +1,7 @@
#pragma once
#include <Interpreters/DatabaseAndTableWithAlias.h>
#include "DatabaseAndTableWithAlias.h"
#include "ExpressionAnalyzer.h"
#include <map>
namespace DB

View File

@ -1,6 +1,7 @@
#pragma once
#include <type_traits>
#include <utility>
template <auto Val, decltype(Val)... List>
inline constexpr bool static_in_v = std::disjunction_v<std::bool_constant<Val == List>...>;

View File

@ -30,6 +30,7 @@
#include <cstddef>
#include <cstring>
#include <type_traits>
#include "likely.h"
using int128_t = __int128;
using uint128_t = unsigned __int128;

View File

@ -1,3 +1,5 @@
#include <stdint.h>
#define a_cas a_cas
static inline int a_cas(volatile int *p, int t, int s)
{

View File

@ -18,6 +18,7 @@ inc="-I. \
-I./contrib/libmetrohash/src \
-I./contrib/double-conversion \
-I./contrib/cityhash102/include \
-I./contrib/croaring \
-I./contrib/murmurhash/include \
-I./contrib/zookeeper/src/c/include \
-I./contrib/zookeeper/src/c/generated \
@ -54,6 +55,9 @@ inc="-I. \
-I./libs/consistent-hashing-sumbur \
-I./contrib/libhdfs3/include \
-I./contrib/base64/include \
-I./contrib/protobuf/src \
-I./contrib/cppkafka/include \
-I./contrib/librdkafka-cmake/include \
-I./contrib/lz4/lib \
-I./dbms/src \
-I${BUILD_DIR}/dbms/src"
@ -64,5 +68,5 @@ if [ -z $1 ]; then
else
echo -n "$1 "
echo -n `grep "#include" $1| wc -l` " "
echo "#include <$1> \n int main() {return 0;}" | time --format "%e %M" ${CXX:=g++-7} -c -std=c++1z $inc -x c++ -
echo "#include <$1>\nint main() {return 0;}" | time --format "%e %M" ${CXX:=g++-7} -c -std=c++1z $inc -x c++ -
fi