@@ -34,25 +34,25 @@ You can access all available Clang Tools Docker images via [Docker Hub registry
34
34
35
35
``` bash
36
36
# 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 )
39
39
# 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
41
41
42
42
# 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
45
45
Optimized build.
46
46
47
47
# 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 \
49
49
-checks=boost-* ,bugprone-* ,performance-* ,readability-* ,portability-* ,modernize-* ,clang-analyzer-cplusplus-* ,clang-analyzer-* ,cppcoreguidelines-*
50
50
```
51
51
52
52
### As base image in [ ` Dockerfile ` ] ( https://github.com/cpp-linter/clang-tools-docker/blob/master/demo/Dockerfile )
53
53
54
54
``` Dockerfile
55
- FROM xianpengshen/clang-tools:17
55
+ FROM xianpengshen/clang-tools:19
56
56
57
57
WORKDIR /src
58
58
@@ -68,13 +68,13 @@ $ docker build -t clang-tools .
68
68
69
69
# Check clang-format version
70
70
$ 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 )
72
72
# Format code
73
73
$ docker run clang-tools clang-format --dry-run -i helloworld.c
74
74
75
75
# Check clang-tidy version
76
76
$ docker run clang-tools clang-tidy --version
77
- Ubuntu LLVM version 17.0 .0
77
+ Ubuntu LLVM version 19.1 .0
78
78
Optimized build.
79
79
# Diagnostic code
80
80
$ docker run clang-tools clang-tidy helloworld.c \
0 commit comments