diff options
| author | Marc Jeanmougin <marc@jeanmougin.fr> | 2019-01-02 11:12:12 +0000 |
|---|---|---|
| committer | Marc Jeanmougin <marc@jeanmougin.fr> | 2019-01-02 11:12:12 +0000 |
| commit | 6f1e217f796c56039ccf32b92da75d13ab741dff (patch) | |
| tree | a83f73aaced119ec87c468c09cfd85ee32a54553 | |
| parent | run clang tidy modernize pass (diff) | |
| download | inkscape-6f1e217f796c56039ccf32b92da75d13ab741dff.tar.gz inkscape-6f1e217f796c56039ccf32b92da75d13ab741dff.zip | |
add clang-tidy file and check
| -rw-r--r-- | .clang-tidy | 5 | ||||
| -rw-r--r-- | .gitlab-ci.yml | 9 |
2 files changed, 13 insertions, 1 deletions
diff --git a/.clang-tidy b/.clang-tidy new file mode 100644 index 000000000..c2c73bd5c --- /dev/null +++ b/.clang-tidy @@ -0,0 +1,5 @@ +Checks: 'clang-diagnostic-*,clang-analyzer-*, modernize-deprecated-headers, modernize-loop-convert, modernize-use-override, modernize-redundant-void-arg, modernize-use-emplace, modernize-use-noexcept, modernize-use-bool-literals, modernize-pass-by-value, modernize-use-equals-default, modernize-use-equals-default, modernize-use-equals-delete' +#, readability-*, bugprone-*' +WarningsAsErrors: '' +HeaderFilterRegex: '' +FormatStyle: 'file' diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 623a1abc8..2d1f56934 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -26,7 +26,7 @@ inkscape:linux: - mkdir -p build/conf - ln -s . share/inkscape - cd build - - cmake .. -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX:PATH=$PWD/install_dir/ + - cmake .. -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX:PATH=$PWD/install_dir/ -DCMAKE_EXPORT_COMPILE_COMMANDS=ON - make -j3 install - make -j3 tests - cpack -G DEB @@ -97,6 +97,13 @@ codeprotect: - git diff FETCH_HEAD -U0 --no-color src/2geom/ src/3rdparty/adaptagrams/ src/3rdparty/libdepixelize src/3rdparty/libuemf | tee forbidden - if [[ -s forbidden ]]; then echo "This commit modifies files that are in an dependency library. Make sure you update upstream first, *then* force the merge in Inkscape."; false; fi +clangtidy:linux: + stage: test + depends: build:linux + except: + - schedules + script: + - cd build && run-clang-tidy -fix -header-filter='.*' && git checkout ../src/3rdparty/ ../src/2geom/ source-doc: stage: build only: |
