From 802bc1330fb3dc8c4bf981385477b6fe7dbeca58 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabian=20Ke=C3=9Fler?= Date: Sun, 29 Dec 2019 05:47:07 +0100 Subject: [PATCH] update clang-format to current stable version --- azure-pipelines/clang-format-applied.yml | 4 ++-- azure-pipelines/util/format_diff_lines.pl | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/azure-pipelines/clang-format-applied.yml b/azure-pipelines/clang-format-applied.yml index caebb995..af547efa 100644 --- a/azure-pipelines/clang-format-applied.yml +++ b/azure-pipelines/clang-format-applied.yml @@ -22,9 +22,9 @@ stages: steps: - bash: | wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add - - sudo apt-add-repository "deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial-8 main" + sudo apt-add-repository "deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial-9 main" sudo apt-get update - sudo apt-get install -y clang-format-8 + sudo apt-get install -y clang-format-9 displayName: 'Install clang-format' - bash: | # Checkout the master branch as we require it to get the list of modified files diff --git a/azure-pipelines/util/format_diff_lines.pl b/azure-pipelines/util/format_diff_lines.pl index b242c508..5955421e 100644 --- a/azure-pipelines/util/format_diff_lines.pl +++ b/azure-pipelines/util/format_diff_lines.pl @@ -13,7 +13,7 @@ my @hunks; # Current file my $current_file; -my @CLANG_FMT_CMDS = ("clang-format", "clang-format-8"); +my @CLANG_FMT_CMDS = ("clang-format", "clang-format-9"); my $clang_format_cmd = ""; for my $c (@CLANG_FMT_CMDS) { if (`$c --version`) {