mirror of
https://git.code.sf.net/p/zint/code
synced 2025-05-09 13:41:59 -04:00
Add text_length
(length of text
) to zint_symbol
, and new
`BARCODE_PLAIN_HRT` option for `output_options` - for use primarily by ZXing-C++ but may be generally useful; centralize setting of HRT using new common `hrt_cpy_nochk()` etc. routines to ensure `text_length` always set PLESSEY: add show default check characters option CODE32: ignore `option_2` (check digit options) PZN: ignore `option_2` (check digit options) except when indicates PZN7 only DPD: exclude DEL from ident tag also out_maybe_mkdir: fix `utf8_to_wide()` return (Windows only) general: replace use of `strcpy()` etc. (except for test suite) with `memcpy()`, `hrt_()` etc. in lib & `cpy_str()` etc. in CLI & `cpy_bytearray_left()` in backend_qt clang-tidy: update README reflecting above backend_tcl: use sizeof(primary) to check length; tabs -> spaces general: various code fiddling docs: pandoc 3.6.2 -> 3.6.3
This commit is contained in:
parent
ddedd00d2d
commit
fef8b083b4
82 changed files with 2873 additions and 1671 deletions
|
@ -1,5 +1,5 @@
|
|||
% README.clang-tidy 2024-09-03
|
||||
% Current as of latest clang-tidy-20 from Ubuntu 22.04 apt package
|
||||
% README.clang-tidy 2025-02-15
|
||||
% Current as of latest clang-tidy-20 from Ubuntu 24.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).
|
||||
|
@ -8,15 +8,15 @@ In project root directory (warning, slow):
|
|||
|
||||
clang-tidy-20 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.
|
||||
For "backend_tcl", which has no "compile_commands.json", specify the tcl include directory and package define, e.g.
|
||||
|
||||
clang-tidy-20 backend_tcl/*.c -- -I/usr/include/tcl8.6
|
||||
clang-tidy-20 backend_tcl/*.c -- -I/usr/include/tcl8.6 -DPACKAGE_VERSION='"2.14.0"'
|
||||
|
||||
Options are in ".clang-tidy" (in the project root directory). The excluded checks are
|
||||
`clang-analyzer-security.insecureAPI.strcpy` (for `strcpy()`, `strcat()` etc), and
|
||||
Options are in ".clang-tidy" (in the project root directory). The excluded check is
|
||||
`clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling` (for `sprintf()`).
|
||||
|
||||
The test suite (cmake given -DZINT_TEST=ON) can also be analysed with an additional check disabled:
|
||||
The test suite (cmake given -DZINT_TEST=ON) can also be analysed with additional checks disabled:
|
||||
|
||||
clang-tidy-20 backend/tests/*.c frontend/tests/*.c backend_qt/tests/*.cpp \
|
||||
-checks='-clang-analyzer-optin.performance.Padding' -p build/compile_commands.json
|
||||
-checks='-clang-analyzer-security.insecureAPI.strcpy,-clang-analyzer-optin.performance.Padding' \
|
||||
-p build/compile_commands.json
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue