mirror of
https://github.com/apache/arrow.git
synced 2026-10-29 00:56:31 +08:00
ARROW-2531: [C++] Update clang bits to 6.0
This commit is contained in:
1 parent
0562d3b1ea
commit
651c7e2c2e
9 files changed
+28
-16
No files matched your search
+5
-5
@@ -41,7 +41,7 @@ matrix:
|
||||
allow_failures:
|
||||
- jdk: oraclejdk9
|
||||
include:
|
||||
# C++ & Python w/ clang 5.0
|
||||
# C++ & Python w/ clang 6.0
|
||||
- compiler: gcc
|
||||
language: cpp
|
||||
os: linux
|
||||
@@ -55,8 +55,8 @@ matrix:
|
||||
- ARROW_TRAVIS_PYTHON_BENCHMARKS=1
|
||||
- ARROW_TRAVIS_PYTHON_DOCS=1
|
||||
- ARROW_BUILD_WARNING_LEVEL=CHECKIN
|
||||
- CC="clang-5.0"
|
||||
- CXX="clang++-5.0"
|
||||
- CC="clang-6.0"
|
||||
- CXX="clang++-6.0"
|
||||
before_script:
|
||||
# Always run RAT checks, in case another build in matrix breaks RAT
|
||||
- $TRAVIS_BUILD_DIR/ci/travis_release_audit.sh
|
||||
@@ -127,8 +127,8 @@ matrix:
|
||||
env: ARROW_TEST_GROUP=integration
|
||||
jdk: openjdk8
|
||||
env:
|
||||
- CC="clang-5.0"
|
||||
- CXX="clang++-5.0"
|
||||
- CC="clang-6.0"
|
||||
- CXX="clang++-6.0"
|
||||
before_script:
|
||||
- if [ $ARROW_CI_INTEGRATION_AFFECTED != "1" ]; then exit; fi
|
||||
- $TRAVIS_BUILD_DIR/ci/travis_install_linux.sh
|
||||
|
||||
@@ -19,6 +19,6 @@
|
||||
|
||||
wget -O - http://llvm.org/apt/llvm-snapshot.gpg.key|sudo apt-key add -
|
||||
sudo apt-add-repository -y \
|
||||
"deb http://llvm.org/apt/trusty/ llvm-toolchain-trusty-5.0 main"
|
||||
"deb http://llvm.org/apt/trusty/ llvm-toolchain-trusty-6.0 main"
|
||||
sudo apt-get update -qq
|
||||
sudo apt-get install -q clang-5.0 clang-format-5.0 clang-tidy-5.0
|
||||
sudo apt-get install -q clang-6.0 clang-format-6.0 clang-tidy-6.0
|
||||
+1
-1
@@ -48,7 +48,7 @@ set(ARROW_ABI_VERSION "${ARROW_SO_VERSION}.0.0")
|
||||
|
||||
set(BUILD_SUPPORT_DIR "${CMAKE_SOURCE_DIR}/build-support")
|
||||
|
||||
set(CLANG_FORMAT_VERSION "5.0")
|
||||
set(CLANG_FORMAT_VERSION "6.0")
|
||||
find_package(ClangTools)
|
||||
if ("$ENV{CMAKE_EXPORT_COMPILE_COMMANDS}" STREQUAL "1" OR CLANG_TIDY_FOUND)
|
||||
# Generate a Clang compile_commands.json "compilation database" file for use
|
||||
|
||||
+1
-1
@@ -320,7 +320,7 @@ You can also fix any formatting errors automatically:
|
||||
|
||||
make format
|
||||
|
||||
These commands require `clang-format-5.0` (and not any other version).
|
||||
These commands require `clang-format-6.0` (and not any other version).
|
||||
You may find the required packages at http://releases.llvm.org/download.html
|
||||
or use the Debian/Ubuntu APT repositories on https://apt.llvm.org/. On macOS
|
||||
with [Homebrew][1] you can get it via `brew install llvm@5`.
|
||||
|
||||
@@ -77,6 +77,18 @@ if (CLANG_FORMAT_VERSION)
|
||||
NO_DEFAULT_PATH
|
||||
)
|
||||
endif()
|
||||
|
||||
if ("${CLANG_FORMAT_BIN}" STREQUAL "CLANG_FORMAT_BIN-NOTFOUND")
|
||||
# binary was still not found, look into Cellar
|
||||
# TODO: This currently only works for '.0' patch releases as
|
||||
# find_program does not support regular expressions
|
||||
# in the paths.
|
||||
find_program(CLANG_FORMAT_BIN
|
||||
NAMES clang-format
|
||||
PATHS /usr/local/Cellar/llvm/${CLANG_FORMAT_VERSION}.0/bin
|
||||
NO_DEFAULT_PATH
|
||||
)
|
||||
endif()
|
||||
endif()
|
||||
else()
|
||||
find_program(CLANG_FORMAT_BIN
|
||||
|
||||
@@ -1626,8 +1626,8 @@ Status StructBuilder::FinishInternal(std::shared_ptr<ArrayData>* out) {
|
||||
return Status::OK();
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------
|
||||
// Helper functions
|
||||
// ----------------------------------------------------------------------
|
||||
// Helper functions
|
||||
|
||||
#define BUILDER_CASE(ENUM, BuilderType) \
|
||||
case Type::ENUM: \
|
||||
|
||||
@@ -72,7 +72,7 @@ class TestBufferedOutputStream : public FileTestFixture {
|
||||
ASSERT_OK(FileOutputStream::Open(path_, append, &file));
|
||||
fd_ = file->file_descriptor();
|
||||
if (append) {
|
||||
// Workaround for ARROW-2466 ("append" flag doesn't set file pos)
|
||||
// Workaround for ARROW-2466 ("append" flag doesn't set file pos)
|
||||
#if defined(_MSC_VER)
|
||||
_lseeki64(fd_, 0, SEEK_END);
|
||||
#else
|
||||
|
||||
@@ -46,8 +46,8 @@ bool is_contiguous(PyObject* array) {
|
||||
}
|
||||
|
||||
int cast_npy_type_compat(int type_num) {
|
||||
// Both LONGLONG and INT64 can be observed in the wild, which is buggy. We set
|
||||
// U/LONGLONG to U/INT64 so things work properly.
|
||||
// Both LONGLONG and INT64 can be observed in the wild, which is buggy. We set
|
||||
// U/LONGLONG to U/INT64 so things work properly.
|
||||
|
||||
#if (NPY_INT64 == NPY_LONGLONG) && (NPY_SIZEOF_LONGLONG == 8)
|
||||
if (type_num == NPY_LONGLONG) {
|
||||
|
||||
@@ -367,8 +367,8 @@ std::shared_ptr<Schema> schema(std::vector<std::shared_ptr<Field>>&& fields,
|
||||
return std::make_shared<Schema>(std::move(fields), metadata);
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------
|
||||
// Visitors and factory functions
|
||||
// ----------------------------------------------------------------------
|
||||
// Visitors and factory functions
|
||||
|
||||
#define ACCEPT_VISITOR(TYPE) \
|
||||
Status TYPE::Accept(TypeVisitor* visitor) const { return visitor->Visit(*this); }
|
||||
|
||||
Reference in new issue
Block a user