2017-09-10 23:54:47 +02:00
|
|
|
# libsuperderpy codestyle
|
|
|
|
|
|
|
|
## clang-format
|
|
|
|
|
|
|
|
See [the configuration file](.clang-format).
|
|
|
|
|
|
|
|
## clang-tidy
|
|
|
|
|
|
|
|
```
|
2017-09-15 20:45:46 +02:00
|
|
|
-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
|
2017-09-10 23:54:47 +02:00
|
|
|
```
|
|
|
|
|
|
|
|
*Note:* clang-tidy runs automatically during compilation if found by CMake (can be disabled with `-DUSE_CLANG_TIDY=no`)
|
|
|
|
|
|
|
|
## Qt Creator's Code Model
|
|
|
|
|
|
|
|
```
|
|
|
|
-Weverything -Wno-missing-field-initializers -Wno-unused-parameter -Wno-padded -Wno-conversion
|
2017-09-15 20:45:46 +02:00
|
|
|
-Wno-double-promotion -Wno-bad-function-cast -Wno-pedantic -Wno-unused-macros -Wno-switch-enum
|
|
|
|
-std=c11 -D__codemodel__
|
2017-09-10 23:54:47 +02:00
|
|
|
```
|