mirror of
https://github.com/zint/zint
synced 2024-11-16 20:57:25 +13:00
As get_best_eci()
can no longer return 0 remove caller checks
library: simplify dealing one-letter escapes into one case; other fiddlings (`first_err` -> `warn_number`)
This commit is contained in:
@ -1,16 +1,16 @@
|
||||
% README.clang-tidy 2024-01-17
|
||||
% Current as of latest clang-tidy-18 from Ubuntu 22.04 apt package
|
||||
% README.clang-tidy 2024-03-03
|
||||
% Current as of latest clang-tidy-19 from Ubuntu 22.04 apt package
|
||||
|
||||
Requires cmake in "build" sub-directory with -DCMAKE_EXPORT_COMPILE_COMMANDS=ON (for "build/compile_commands.json")
|
||||
and -DCMAKE_BUILD_TYPE=Debug (so `assert()`s defined), and then make (for Qt generated includes).
|
||||
|
||||
In project root directory (warning, slow):
|
||||
|
||||
clang-tidy-18 backend/*.c frontend/*.c backend_qt/*.cpp frontend_qt/*.cpp -p build/compile_commands.json
|
||||
clang-tidy-19 backend/*.c frontend/*.c backend_qt/*.cpp frontend_qt/*.cpp -p build/compile_commands.json
|
||||
|
||||
For "backend_tcl", which has no "compile_commands.json", specify the tcl include directory, e.g.
|
||||
|
||||
clang-tidy-18 backend_tcl/*.c -- -I/usr/include/tcl8.6
|
||||
clang-tidy-19 backend_tcl/*.c -- -I/usr/include/tcl8.6
|
||||
|
||||
Options are in ".clang-tidy" (in the project root directory). The excluded checks are
|
||||
`clang-analyzer-security.insecureAPI.strcpy` (for `strcpy()`, `strcat()` etc), and
|
||||
@ -18,5 +18,5 @@ Options are in ".clang-tidy" (in the project root directory). The excluded check
|
||||
|
||||
The test suite (cmake given -DZINT_TEST=ON) can also be analysed with an additional check disabled:
|
||||
|
||||
clang-tidy-18 backend/tests/*.c frontend/tests/*.c backend_qt/tests/*.cpp \
|
||||
clang-tidy-19 backend/tests/*.c frontend/tests/*.c backend_qt/tests/*.cpp \
|
||||
-checks='-clang-analyzer-optin.performance.Padding' -p build/compile_commands.json
|
||||
|
Reference in New Issue
Block a user