update code checks for clang 5.0

This commit is contained in:
Sebastian Krzyszkowiak 2017-09-15 20:45:46 +02:00
parent 6115818773
commit b4c7edf335
2 changed files with 5 additions and 4 deletions

View file

@ -7,8 +7,8 @@ See [the configuration file](.clang-format).
## clang-tidy
```
-checks=*,-clang-analyzer-alpha.*,-google-readability-todo,-performance-type-promotion-in-math-fn,
-misc-unused-parameters,-cert-msc30-c,-cert-msc50-cpp
-checks=*,-clang-analyzer-alpha.*,-hicpp-no-assembler,-google-readability-todo,
-performance-type-promotion-in-math-fn,-misc-unused-parameters,-cert-msc30-c,-cert-msc50-cpp
```
*Note:* clang-tidy runs automatically during compilation if found by CMake (can be disabled with `-DUSE_CLANG_TIDY=no`)
@ -17,5 +17,6 @@ See [the configuration file](.clang-format).
```
-Weverything -Wno-missing-field-initializers -Wno-unused-parameter -Wno-padded -Wno-conversion
-Wno-double-promotion -Wno-bad-function-cast -Wno-pedantic -Wno-unused-macros -std=c11 -D__codemodel__
-Wno-double-promotion -Wno-bad-function-cast -Wno-pedantic -Wno-unused-macros -Wno-switch-enum
-std=c11 -D__codemodel__
```

View file

@ -22,7 +22,7 @@ if (NOT LIBSUPERDERPY_CONFIG_INCLUDED)
if(NOT CLANG_TIDY_EXE)
message(STATUS "clang-tidy not found, analysis disabled")
else()
set(CMAKE_C_CLANG_TIDY "${CLANG_TIDY_EXE}" "-checks=*,-clang-analyzer-alpha.*,-google-readability-todo,-performance-type-promotion-in-math-fn,-misc-unused-parameters,-cert-msc30-c,-cert-msc50-cpp")
set(CMAKE_C_CLANG_TIDY "${CLANG_TIDY_EXE}" "-checks=*,-clang-analyzer-alpha.*,-hicpp-no-assembler,-google-readability-todo,-performance-type-promotion-in-math-fn,-misc-unused-parameters,-cert-msc30-c,-cert-msc50-cpp")
endif()
endif()