File tree 4 files changed +7
-14
lines changed
4 files changed +7
-14
lines changed Original file line number Diff line number Diff line change 98
98
99
99
- name : clang-format
100
100
run : |
101
- (
102
- source /etc/os-release
103
- wget -qO- https://apt.llvm.org/llvm-snapshot.gpg.key | sudo tee /etc/apt/trusted.gpg.d/apt.llvm.org.asc
104
- sudo add-apt-repository "deb http://apt.llvm.org/${UBUNTU_CODENAME} llvm-toolchain-${UBUNTU_CODENAME} main" --yes
105
- )
106
- sudo apt-get update && sudo apt-get install clang-format --yes
107
101
make clang-format
108
102
109
103
- name : addlicense
Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ FROM builder AS devel-builder
48
48
49
49
# Install extra dependencies
50
50
RUN sudo apt-get update && \
51
- sudo apt-get install -y golang clang-format clang-tidy && \
51
+ sudo apt-get install -y golang && \
52
52
sudo chown -R "$(whoami):$(whoami)" "$(realpath /usr/lib/go)" && \
53
53
sudo rm -rf /var/lib/apt/lists/*
54
54
Original file line number Diff line number Diff line change @@ -10,7 +10,6 @@ CUDA_FILES = $(shell find $(SOURCE_FOLDERS) -type f -name "*.cuh" -o -name "
10
10
COMMIT_HASH = $(shell git log -1 --format=% h)
11
11
PATH := $(HOME ) /go/bin:$(PATH )
12
12
PYTHON ?= $(shell command -v python3 || command -v python)
13
- CLANG_FORMAT ?= $(shell command -v clang-format-17 || command -v clang-format)
14
13
PYTESTOPTS ?=
15
14
16
15
.PHONY : default
@@ -96,12 +95,10 @@ cpplint-install:
96
95
$(call check_pip_install,cpplint)
97
96
98
97
clang-format-install :
99
- command -v clang-format-17 || command -v clang-format || \
100
- sudo apt-get install -y clang-format-17 || \
101
- sudo apt-get install -y clang-format
98
+ $(call check_pip_install,clang-format)
102
99
103
100
clang-tidy-install :
104
- command -v clang-tidy || sudo apt-get install -y clang-tidy
101
+ $( call check_pip_install, clang-tidy)
105
102
106
103
go-install :
107
104
# requires go >= 1.16
@@ -172,8 +169,8 @@ cpplint: cpplint-install
172
169
$(PYTHON ) -m cpplint $(CXX_FILES ) $(CUDA_FILES )
173
170
174
171
clang-format : clang-format-install
175
- $( CLANG_FORMAT ) --version
176
- $( CLANG_FORMAT ) --style=file -i $(CXX_FILES ) $(CUDA_FILES ) -n --Werror
172
+ clang-format --version
173
+ clang-format --style=file -i $(CXX_FILES ) $(CUDA_FILES ) -n --Werror
177
174
178
175
clang-tidy : clang-tidy-install cmake-configure
179
176
clang-tidy --version
Original file line number Diff line number Diff line change 26
26
pydocstyle [toml ]
27
27
pyenchant
28
28
cpplint
29
+ clang-format
30
+ clang-tidy
29
31
pre-commit
You can’t perform that action at this time.
0 commit comments