[libcxx-commits] [libcxx] c10cbb2 - [libc++] Install clang-tidy in docker containers

Nikolas Klauser via libcxx-commits libcxx-commits at lists.llvm.org
Mon Jan 17 12:07:14 PST 2022


Author: Nikolas Klauser
Date: 2022-01-17T21:05:42+01:00
New Revision: c10cbb243cafc0cf42c3e922cb29183279444432

URL: https://github.com/llvm/llvm-project/commit/c10cbb243cafc0cf42c3e922cb29183279444432
DIFF: https://github.com/llvm/llvm-project/commit/c10cbb243cafc0cf42c3e922cb29183279444432.diff

LOG: [libc++] Install clang-tidy in docker containers

Install clang-tidy

Reviewed By: ldionne, #libc

Spies: sammccall, mgorny, libcxx-commits, arichardson

Differential Revision: https://reviews.llvm.org/D117268

Added: 
    

Modified: 
    libcxx/utils/ci/Dockerfile

Removed: 
    


################################################################################
diff  --git a/libcxx/utils/ci/Dockerfile b/libcxx/utils/ci/Dockerfile
index 034fe7b87a0bc..b271bfbbd0668 100644
--- a/libcxx/utils/ci/Dockerfile
+++ b/libcxx/utils/ci/Dockerfile
@@ -70,6 +70,10 @@ RUN apt-get install -y clang-format-$LLVM_LATEST_VERSION
 RUN ln -s /usr/bin/clang-format-$LLVM_LATEST_VERSION /usr/bin/clang-format && [ -e $(readlink /usr/bin/clang-format) ]
 RUN ln -s /usr/bin/git-clang-format-$LLVM_LATEST_VERSION /usr/bin/git-clang-format && [ -e $(readlink /usr/bin/git-clang-format) ]
 
+# Install clang-tidy
+RUN apt-get install -y clang-tidy-$LLVM_LATEST_VERSION
+RUN ln -s /usr/bin/clang-tidy-$LLVM_LATEST_VERSION /usr/bin/clang-tidy && [ -e $(readlink /usr/bin/clang-tidy) ]
+
 # Install the most recent GCC
 ENV GCC_LATEST_VERSION=11
 RUN add-apt-repository ppa:ubuntu-toolchain-r/test


        


More information about the libcxx-commits mailing list