Skip to content

Commit 6be4cdd

Browse files
add clang-tidy to GLCI (#6580)
* add clang tidy * use clang-tidy readability * use c99 standard --------- Co-authored-by: Michael Chirico <[email protected]>
1 parent d4244e8 commit 6be4cdd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.gitlab-ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,7 @@ test-lin-dev-clang-cran:
194194
- echo 'CFLAGS=-g -O2 -fno-common -Wall -Wvla -pedantic -fstack-protector-strong -D_FORTIFY_SOURCE=2' > ~/.R/Makevars
195195
- echo 'CXXFLAGS=-g -O2 -fno-common -Wall -Wvla -pedantic -fstack-protector-strong -D_FORTIFY_SOURCE=2' >> ~/.R/Makevars
196196
- *install-deps
197+
- clang-tidy -extra-arg=-I/usr/local/lib/R/include -checks='readability-inconsistent-declaration-parameter' src/*.c -- -std=c99
197198
- R CMD check --as-cran $(ls -1t data.table_*.tar.gz | head -n 1)
198199
- (! grep "warning:" data.table.Rcheck/00install.out)
199200
- >-

0 commit comments

Comments
 (0)