Mercurial > hgrepos > Python2 > PyMuPDF
comparison mupdf-source/thirdparty/zint/README.clang-tidy @ 2:b50eed0cc0ef upstream
ADD: MuPDF v1.26.7: the MuPDF source as downloaded by a default build of PyMuPDF 1.26.4.
The directory name has changed: no version number in the expanded directory now.
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Mon, 15 Sep 2025 11:43:07 +0200 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| 1:1d09e1dec1d9 | 2:b50eed0cc0ef |
|---|---|
| 1 % README.clang-tidy 2024-09-03 | |
| 2 % Current as of latest clang-tidy-20 from Ubuntu 22.04 apt package | |
| 3 | |
| 4 Requires cmake in "build" sub-directory with -DCMAKE_EXPORT_COMPILE_COMMANDS=ON (for "build/compile_commands.json") | |
| 5 and -DCMAKE_BUILD_TYPE=Debug (so `assert()`s defined), and then make (for Qt generated includes). | |
| 6 | |
| 7 In project root directory (warning, slow): | |
| 8 | |
| 9 clang-tidy-20 backend/*.c frontend/*.c backend_qt/*.cpp frontend_qt/*.cpp -p build/compile_commands.json | |
| 10 | |
| 11 For "backend_tcl", which has no "compile_commands.json", specify the tcl include directory, e.g. | |
| 12 | |
| 13 clang-tidy-20 backend_tcl/*.c -- -I/usr/include/tcl8.6 | |
| 14 | |
| 15 Options are in ".clang-tidy" (in the project root directory). The excluded checks are | |
| 16 `clang-analyzer-security.insecureAPI.strcpy` (for `strcpy()`, `strcat()` etc), and | |
| 17 `clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling` (for `sprintf()`). | |
| 18 | |
| 19 The test suite (cmake given -DZINT_TEST=ON) can also be analysed with an additional check disabled: | |
| 20 | |
| 21 clang-tidy-20 backend/tests/*.c frontend/tests/*.c backend_qt/tests/*.cpp \ | |
| 22 -checks='-clang-analyzer-optin.performance.Padding' -p build/compile_commands.json |
