forked from apache/arrow
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ARROW-2981: [C++] improve clang-tidy usability
- adds a docker-compose service for running clang-tidy - docker-compose runs as root, so the files touched by clang-tidy and clang-format were owned by root. They are now passed back to the user - clang-format is run after clang-tidy because the latter munges formatting I ran clang-tidy then cleaned up the build errors [in this branch](apache/arrow@f92830f...bkietz:clang-tidy-run-example) to give an idea of what things are changed and what things can go wrong. Author: Benjamin Kietzman <[email protected]> Closes apache#4293 from bkietz/2981-Support-scripts-documentation-for-runnin and squashes the following commits: 63ac52c <Benjamin Kietzman> refactor clang-tidy: don't modify sources 31e4755 <Benjamin Kietzman> run code-modifying linters with lint_user fa5af80 <Benjamin Kietzman> add description of producing HeaderFilterRegex 3ecc91d <Benjamin Kietzman> built-in clang-format didn't match ninja format 2193dab <Benjamin Kietzman> mention clang-tidy in integration.rst 0724b55 <Benjamin Kietzman> update clang-tidy's header regex to sort-of match lint_exclusions.txt df3a121 <Benjamin Kietzman> clang-tidy can run clang-format automatically ed2b231 <Benjamin Kietzman> maintain ownership when running clang-{format,tidy} a87dd04 <Benjamin Kietzman> adding docker-compose endpoint for clang-tidy
- Loading branch information
1 parent
f8cd263
commit 72b5531
Showing
5 changed files
with
49 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#!/bin/bash | ||
# Licensed to the Apache Software Foundation (ASF) under one | ||
# or more contributor license agreements. See the NOTICE file | ||
# distributed with this work for additional information | ||
# regarding copyright ownership. The ASF licenses this file | ||
# to you under the Apache License, Version 2.0 (the | ||
# "License"); you may not use this file except in compliance | ||
# with the License. You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, | ||
# software distributed under the License is distributed on an | ||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
# KIND, either express or implied. See the License for the | ||
# specific language governing permissions and limitations | ||
# under the License. | ||
|
||
set -ex | ||
|
||
mkdir -p /build/lint | ||
pushd /build/lint | ||
cmake -GNinja /arrow/cpp | ||
ninja check-clang-tidy | ||
popd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters