summaryrefslogtreecommitdiff
path: root/Utilities
Commit message (Collapse)AuthorAgeFilesLines
...
* | CMake: add an option to run IWYU in verbose modeBen Boeckel2023-01-271-1/+1
|/ | | | | This helps to diagnose places where IWYU asks to include headers for internal stdlib details.
* Revise C++ coding style using clang-format-15Kitware Robot2023-01-183-26/+22
| | | | | | | | | | | | | | Run the `clang-format.bash` script to update all our C and C++ code to a new style defined by `.clang-format`. Use `clang-format` version 15. * If you reached this commit for a line in `git blame`, re-run the blame operation starting at the parent of this commit to see older history for the content. * See the parent commit for instructions to rebase a change across this style transition commit. Fixes: #24315
* clang-format.bash: update to clang-format-15Brad King2023-01-182-5/+5
| | | | | | | The `.clang-format` configuration needs no changes to make the version 15 format close to what version 6.0 produced before. Issue: #24315
* clang-format.bash: Use generic clang-format attributeBrad King2023-01-182-9/+7
| | | | | | | Specify the clang-format version in the attribute value instead of its name. Issue: #24315
* Merge topic 'fix-cmzlib-crc32-fn-mangling'Brad King2023-01-121-2/+1
|\ | | | | | | | | | | | | 7d92e363a2 zlib: Fix typo in mangling the crc32() function Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !8049
| * zlib: Fix typo in mangling the crc32() functionleha-bot2023-01-111-2/+1
| | | | | | | | | | | | | | | | Fix the mangling of `crc32` by commit 29c578c8fb (zlib: Mangle symbols to avoid conflict with external transitive dependencies, 2022-06-10, v3.24.0-rc1~7^2). Fixes: #24281
* | clang-tidy module: fix offset issue with last string concat operandKyle Edwards2022-12-034-42/+62
| |
* | Merge topic 'rel-win-sign-digest'Brad King2022-11-301-1/+1
|\ \ | |/ | | | | | | | | | | 870f30aacc Utilities/Release: Use explicit digest for Win7-compatible signature Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7970
| * Utilities/Release: Use explicit digest for Win7-compatible signatureBrad King2022-11-301-1/+1
| | | | | | | | Otherwise `signtool` warns.
* | clang-tidy module: add tests for string concatenation checkSean Orner2022-11-284-0/+186
| |
* | clang-tidy module: add check for string concatenationJoe Blaauboer2022-11-284-0/+218
| | | | | | | | Co-Authored-by: Kyle Edwards <kyle.edwards@kitware.com>
* | clang-tidy module: look for sizeof string literal in cmStrLen() checkKyle Edwards2022-11-184-4/+90
| |
* | clang-tidy module: add test for #pragma once checkSean Orner2022-11-1710-0/+79
| |
* | clang-tidy module: add #pragma once checkIgor-Mikhail-Valentin Glebov2022-11-174-0/+389
| | | | | | | | Co-Authored-by: Kyle Edwards <kyle.edwards@kitware.com>
* | clang-tidy module: allow header files in test casesKyle Edwards2022-11-171-12/+42
| |
* | clang-tidy module: add test for ostringstream checkSean Orner2022-11-143-0/+17
| |
* | clang-tidy module: add check for ostringstreamJoe Blaauboer2022-11-144-0/+78
| |
* | Merge topic 'expat-c-no-extensions'Brad King2022-11-111-0/+6
|\ \ | |/ | | | | | | | | | | | | 019af62294 expat: Activate POSIX APIs even without compiler extensions Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !7899
| * expat: Activate POSIX APIs even without compiler extensionsRaul Tambre2022-11-101-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Compile with the preprocessor definitions necessary for the `arc4random` family so it's available even when compiler extensions are not enabled. Similar things are done in cmbzip2, cmcurl, cmlibarchive, cmliblizma and cmlibuv. This issue surfaced on a nightly bot after glibc 2.36 added arc4random functions. cmlibarchive defines the necessary macro, but also relies on `HAVE_ARC4RANDOM_BUF`. cmlibarchive's check with the necessary macro defined was skipped due to cmexpat running the same check before, but without the macros, and it being cached. This extends commit c7c3e39e4f (Utilities: Activate POSIX APIs even without compiler extensions, 2022-06-02, v3.24.0-rc1~34^2) to cover our build of expat too. Issue: #20454
| * Merge branch 'filesystem-path-c++03-abi' into release-3.24Brad King2022-10-201-10/+6
| |\ | | | | | | | | | Merge-request: !7813
* | \ Merge topic 'curl-windows-no-tls1.3'Brad King2022-11-101-0/+7
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | c0a4536cec curl: Disable schannel TLS 1.3 support on Windows 11 Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7894
| * | | curl: Disable schannel TLS 1.3 support on Windows 11Brad King2022-11-091-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Curl 7.85.0 introduced support for TLS 1.3 support with schannel. We've observed connection failures in some cases, so disable the support pending further investigation. Fixes: #24147
* | | | Merge topic 'doc-guide-link-style'Brad King2022-11-091-0/+11
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | 977c38c339 Help: Render guide links as normal text instead of monospace Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7886
| * | | Help: Render guide links as normal text instead of monospaceAlex Turbov2022-11-081-0/+11
| | | | | | | | | | | | | | | | | | | | The guide document names are phrases, not code-like man-page names. Add CSS selectors for `:guide:` links and revert unnecessary properties.
* | | | Merge topic 'clang-tidy-module-use-bespoke-enum-class-check'Brad King2022-11-087-0/+143
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 5f97772fcb clang-tidy: disable bespoke enum class check eab8e38961 clang-tidy module: add check for boolean parameters Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7883
| * | | | clang-tidy module: add check for boolean parametersSean Orner2022-11-077-0/+143
| | | | | | | | | | | | | | | | | | | | Co-Authored-by: Kyle Edwards <kyle.edwards@kitware.com>
* | | | | Merge topic 'sphinx-linkcheck'Brad King2022-11-082-34/+76
|\ \ \ \ \ | |/ / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | a89c76a773 Build: Add `SPHINX_LINKCHECK` build option 137b00cda1 Build: Do not redirect `sphinx-build` output if CMake running in verbose mode d954fb8a60 Build: Deduplicate `add_custom_command()` calls for Sphinx targets 2af8724485 Merge branch 'backport-sphinx-linkcheck' into sphinx-linkcheck 435b0c573c Help: Fix some redirects reported with sphinx linkcheck ac5295a9de Help: Fix broken external links found by sphinx linkcheck Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7876
| * | | | Build: Add `SPHINX_LINKCHECK` build optionAlex Turbov2022-11-072-1/+19
| | | | | | | | | | | | | | | | | | | | Run `sphinx-build` to check external links and report broken one.
| * | | | Build: Do not redirect `sphinx-build` output if CMake running in verbose modeAlex Turbov2022-11-071-3/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Configuring with `--log-level=VERBOSE` a user can see an output of `sphinx-build` at build time. The other way is to have `VERBOSE` envvar set at configure time. And finally one can set `CMAKE_VERBOSE_MAKEFILE` CMake cache variable.
| * | | | Build: Deduplicate `add_custom_command()` calls for Sphinx targetsAlex Turbov2022-11-071-32/+25
| | | | |
* | | | | clang-tidy module: add tests for cmsys::fstream checkIgor-Mikhail-Valentin Glebov2022-11-044-0/+318
| | | | | | | | | | | | | | | | | | | | Co-Authored-by: Kyle Edwards <kyle.edwards@kitware.com>
* | | | | clang-tidy module: add check for cmsys::fstreamJoe Blaauboer2022-11-044-0/+130
| | | | | | | | | | | | | | | | | | | | | | | | | Co-Authored-by: Kyle Edwards <kyle.edwards@kitware.com> Co-Authored-by: Igor-Mikhail-Valentin Glebov <iglebov@albany.edu>
* | | | | Tests: remove stderr from clang-tidy module testsKyle Edwards2022-11-042-18/+12
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | The stderr has the potential to count warnings from system header files, which are very platform-specific and not reliable, and they are simply a count of all the warnings that were emitted on stdout, which we already have. Remove stderr and only look at stdout.
* | | | Merge topic 'update-nghttp2'Brad King2022-11-0128-695/+3252
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | e44b551e8d nghttp2: Update build within CMake to account for 1.50.0 8b73605408 Merge branch 'upstream-nghttp2' into update-nghttp2 7ce2a682a3 nghttp2 2022-09-21 (87fef4ab) 66c9536775 nghttp2: Update script to get nghttp2 1.50.0 Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !7856
| * | | | nghttp2: Update build within CMake to account for 1.50.0Brad King2022-10-311-0/+1
| | | | |
| * | | | Merge branch 'upstream-nghttp2' into update-nghttp2Brad King2022-10-3126-694/+3250
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | # By nghttp2 upstream * upstream-nghttp2: nghttp2 2022-09-21 (87fef4ab)
| * | | | nghttp2: Update script to get nghttp2 1.50.0Brad King2022-10-311-1/+1
| | | | |
* | | | | Merge topic 'update-curl'Brad King2022-11-01350-4296/+8265
|\ \ \ \ \ | |/ / / / |/| / / / | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | 25e9f31878 curl: Set build options the way we need for CMake 9ffe6b0969 Merge branch 'upstream-curl' into update-curl ec122fff08 curl 2022-10-26 (cd95ee9f) fa9bbb8627 curl: Update script to get curl 7.86.0 Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7851
| * | | curl: Set build options the way we need for CMakeBrad King2022-10-312-0/+18
| | | |
| * | | Merge branch 'upstream-curl' into update-curlBrad King2022-10-31348-4295/+8246
| | | | | | | | | | | | | | | | | | | | * upstream-curl: curl 2022-10-26 (cd95ee9f)
| * | | curl: Update script to get curl 7.86.0Brad King2022-10-311-1/+1
| | | |
| * | | Merge topic 'filesystem-path-c++03-abi' into release-3.25Brad King2022-10-211-10/+6
| |\ \ \ | | | |/ | | |/| | | | | | | | | | | | | | | | | | | | | ee9805ccd1 cm/filesystem: Fix crash with pre-C++11 std::string GNU ABI in C++17 Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !7813
* | | | Utilities/Sphinx: support cmakedomain running in parallelHenry Schreiner2022-10-241-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | Fixes: #24076 Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
* | | | Merge topic 'filesystem-path-c++03-abi'Brad King2022-10-211-10/+6
|\ \ \ \ | | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | ee9805ccd1 cm/filesystem: Fix crash with pre-C++11 std::string GNU ABI in C++17 Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !7813
| * | | cm/filesystem: Fix crash with pre-C++11 std::string GNU ABI in C++17Brad King2022-10-201-10/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The `remove_filename` and `replace_extension` methods compute an offset between the whole path in a `std::string` and a part of a path in a `std::string_view`. This is done by subtracting their `.data()` pointers. However, C++17 adds a non-const `.data()` through which modification of the string is allowed. This means the copy-on-write implementation used by the pre-C++11 std::string GNU ABI must reallocate if the string has been copied. Our subtraction then computes an offset between two different allocations, which is undefined behavior. The workaround in commit b3ca4f9ad1 (cm/filesystem: Work around crash when compiled for CYGWIN/MSYS runtime, 2021-04-22, v3.21.0-rc1~271^2~2) avoided the problem by calling the non-const `.data()` to reallocate before constructing the `string_view`. Instead, explicitly call the const `.data()` method on the string, which does not reallocate. Fixes: #22090, #23328
| * | | Merge branch 'rel-macos-sign-notarize' into release-3.23Brad King2022-07-081-18/+25
| |\ \ \ | | | | | | | | | | | | | | | Merge-request: !7463
| * \ \ \ Merge topic 'backport-update-libarchive' into release-3.23Brad King2022-05-2444-827/+1807
| |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | e2fe1d17e6 libarchive: Update build within CMake after changes in 3.5.3 ac5e524763 libarchive: include archive_platform.h first in blake2s sources b93d8b1714 Merge branch 'upstream-LibArchive' into update-libarchive 9fd16c5b5b LibArchive 2022-02-08 (673c1eae) de38c89252 libarchive: Update script to get 3.5.3 Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7294
* | | | | | clang-tidy module: add test for cmStrLen() checkSean Orner2022-10-195-0/+98
| | | | | |
* | | | | | clang-tidy module: add check for cmStrLen()Kyle Edwards2022-10-194-1/+61
| | | | | | | | | | | | | | | | | | | | | | | | Co-Authored-by: Joe Blaauboer <jblaauboer67@gmail.com>
* | | | | | clang-tidy module: add test frameworkKyle Edwards2022-10-143-0/+87
| | | | | |