Skip to content

Commit

Permalink
Use Clang 8 packages for clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
seanmiddleditch committed Jun 9, 2019
1 parent 58a1343 commit 47cac0b
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions scripts/ci/azure/templates/jobs/format.yml
Expand Up @@ -7,22 +7,22 @@ jobs:
steps:
- bash: |
set -xe
sudo add-apt-repository 'deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial-8 main'
sudo apt-get update -y
sudo apt-get install -y clang-format-8
displayName: Installing Dependencies
- bash: |
set -xe
clang-format-7 --version
clang-format-8 --version
cmake --version
displayName: Build Information
# - script: |
# mkdir build
# cd build
# cmake -DUP_BUILD_DOCS=ON -DFETCHCONTENT_BASE_DIR=_deps ..
# displayName: Configure
- script: |
for dir in source/*/* ; do
echo "$dir"
cd "$dir""
clang-format-7 -style=file -output-replacements-xml -verbose $(find . -name '*.h' -o -name '*.cpp') > ~/edits.xml
cat ~/edits.xml
if ! python scripts/ci/run-clang-format.py --clang-format-executable=clang-format-8 --recursive source/ 2>&1 > ~/clang-format.diff ; then
echo "##vso[task.logissue type=error;sourcepath=scripts/ci/run-clang-format.py]Format errors found"
echo "##vso[task.uploadfile]$HOME/clang-format.diff"
exit 1
fi
done
displayName: Clang Format

0 comments on commit 47cac0b

Please sign in to comment.