@@ -34,25 +34,25 @@ You can access all available Clang Tools Docker images via [Docker Hub registry
3434
3535``` bash
3636# Check clang-format version
37- $ docker run xianpengshen/clang-tools:17 clang-format --version
38- Ubuntu clang-format version 17.0 .0 (+rc4-1~exp5ubuntu1 )
37+ $ docker run xianpengshen/clang-tools:19 clang-format --version
38+ Ubuntu clang-format version 19.1 .0 (1ubuntu1 )
3939# Format code (helloworld.c in the demo directory)
40- $ docker run -v $PWD :/src xianpengshen/clang-tools:17 clang-format --dry-run -i helloworld.c
40+ $ docker run -v $PWD :/src xianpengshen/clang-tools:19 clang-format --dry-run -i helloworld.c
4141
4242# Check clang-tidy version
43- $ docker run xianpengshen/clang-tools:17 clang-tidy --version
44- Ubuntu LLVM version 17.0 .0
43+ $ docker run xianpengshen/clang-tools:19 clang-tidy --version
44+ Ubuntu LLVM version 19.1 .0
4545 Optimized build.
4646
4747# Diagnostic code (helloworld.c in the demo directory)
48- $ docker run -v $PWD :/src xianpengshen/clang-tools:17 clang-tidy helloworld.c \
48+ $ docker run -v $PWD :/src xianpengshen/clang-tools:19 clang-tidy helloworld.c \
4949-checks=boost-* ,bugprone-* ,performance-* ,readability-* ,portability-* ,modernize-* ,clang-analyzer-cplusplus-* ,clang-analyzer-* ,cppcoreguidelines-*
5050```
5151
5252### As base image in [ ` Dockerfile ` ] ( https://github.com/cpp-linter/clang-tools-docker/blob/master/demo/Dockerfile )
5353
5454``` Dockerfile
55- FROM xianpengshen/clang-tools:17
55+ FROM xianpengshen/clang-tools:19
5656
5757WORKDIR /src
5858
@@ -68,13 +68,13 @@ $ docker build -t clang-tools .
6868
6969# Check clang-format version
7070$ docker run clang-tools clang-format --version
71- Ubuntu clang-format version 17.0.0 (+rc4-1~exp5ubuntu1 )
71+ Ubuntu clang-format version 17.0.2 (1~exp1ubuntu2.1 )
7272# Format code
7373$ docker run clang-tools clang-format --dry-run -i helloworld.c
7474
7575# Check clang-tidy version
7676$ docker run clang-tools clang-tidy --version
77- Ubuntu LLVM version 17.0 .0
77+ Ubuntu LLVM version 19.1 .0
7878 Optimized build.
7979# Diagnostic code
8080$ docker run clang-tools clang-tidy helloworld.c \
0 commit comments