Commit Graph

2197 Commits

Author SHA1 Message Date
Marc Chevrier
35dafcb5a1 cmext/enum_set: add various enhancements to increase usability 2025-01-29 16:42:52 +01:00
Marc Chevrier
a3ae58c9c5 C++ features: add cm::is_scoped_enum from C++23 2025-01-28 17:52:36 +01:00
Kitware Robot
0b96ae1f6a Revise C++ coding style using clang-format with "east const"
Run the `clang-format.bash` script to update all our C and C++ code to a
new style defined by `.clang-format`, now with "east const" enforcement.
Use `clang-format` version 18.

* 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.

Issue: #26123
2025-01-23 13:09:50 -05:00
Kitware Robot
b2ba64add9 Revise C++ coding style using clang-format-18
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 18.

* 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: #26123
2025-01-23 11:43:06 -05:00
Brad King
e641442149 clang-format.bash: update to clang-format-18
The `.clang-format` configuration needs no changes to make the
version 18 format close to what version 15 produced before.

Issue: #26123
2025-01-23 11:42:52 -05:00
Brad King
93ee29964a libuv: Explicitly enable GNU APIs on Cygwin
Backport upstream libuv commit `17ea56ee73` build: Improve build by
cmake for Cygwin, 2023-01-20, v1.45.0~68) to define `_GNU_SOURCE`.
2025-01-15 15:20:15 -05:00
Brad King
72e27a4856 Merge topic 'fix-typos-found-by-pre-commit-hooks'
d620d77d26 FindDoxygen: Rename `_Doxygen_dne_header` -> `_Doxygen_do_not_edit_header`
e7ff3cccea PushToAndroidDevice.cmake: Rename `cmake_parse_arguments` prefix
bc8621d999 Fix: A lot of typos in code found by `typos`
b33beb7af5 Help: Fix some typos found by `sphinx-lint`
78e45c2db6 Style: Replace TABs with spaces for indentation in some files
74e0173f66 Tests(NuGet): Fix the test to ignore empty and space-only lines

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10151
2025-01-14 09:44:34 -05:00
Alex Turbov
bc8621d999
Fix: A lot of typos in code found by typos
Yet another great code spellchecker: https://github.com/crate-ci/typos/

(Will be added later as a `pre-commit` hook)
2025-01-12 18:49:34 +04:00
Alex Turbov
78e45c2db6
Style: Replace TABs with spaces for indentation in some files
Mark files that must use TABs to indent in the `.gitattributes`.
Use space instead of TABs in sources and some data/test files.
2025-01-12 18:49:25 +04:00
Brad King
8f9b5ff8d6 liblzma: Disable inline assembly when compiled with conflicting flag 2025-01-08 09:17:58 -05:00
Brad King
63a2a79c4f Merge branch 'upstream-liblzma' into update-liblzma
# By liblzma upstream
* upstream-liblzma:
  liblzma 2024-10-01 (9331ce40)
2025-01-07 16:24:12 -05:00
Brad King
7ad473b020 liblzma: Update script to get 5.6.3 2025-01-07 16:24:06 -05:00
Brad King
bfa489b933 liblzma: Revise conditions for LCC
Revise commit fa764ce311 (liblzma: Make cmliblzma buildable on LCC 1.21,
2024-01-15, v3.29.0-rc1~113^2~4) to reduce conflicts with upstream.
2025-01-07 16:14:35 -05:00
Brad King
21befcd8aa ci: Do not linkcheck web.archive.org URLs
Avoid unnecessary use of Internet Archive resources.
Their URLs are meant to be stable.
2024-12-18 09:10:26 -05:00
Brad King
db5829fc14 Merge topic 'update-curl'
52114de052 curl: Set build options the way we need for CMake
54ddc7023c Merge branch 'upstream-curl' into update-curl
4cebf01c70 curl 2024-12-11 (75a2079d)
799cd70398 curl: Update script to get curl 8.11.1

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: buildbot <buildbot@kitware.com>
Merge-request: !10095
2024-12-13 09:01:57 -05:00
Brad King
52114de052 curl: Set build options the way we need for CMake
Set options added by the update to curl 8.11.1.
2024-12-12 10:26:43 -05:00
Brad King
54ddc7023c Merge branch 'upstream-curl' into update-curl
* upstream-curl:
  curl 2024-12-11 (75a2079d)
2024-12-12 10:00:24 -05:00
Brad King
799cd70398 curl: Update script to get curl 8.11.1 2024-12-12 09:41:35 -05:00
Brad King
0330513c24 jsoncpp: Add cm3p/ header for json/version.h
Add a `cm3p/` header to use the selected copy of the library.
2024-12-12 08:26:22 -05:00
Matthew Woehlke
75f53f9e11 IWYU: Add mapping for jsoncpp version.h
Add an IWYU rule for `version.h` from `jsoncpp`. This mirrors the
existing rules that recommend `value.h` for things from `forwards.h` and
`config.h`, and is needed for IWYU to not complain about use of things
from `version.h`. (This is especially important as we do not directly
wrap `version.h`.)
2024-12-09 14:13:05 -05:00
Brad King
365aab5650 Merge topic 'update-libarchive'
ddb72eb3e6 Merge branch 'upstream-LibArchive' into update-libarchive
ad48f00c30 LibArchive 2024-10-13 (b439d586)
e048b0cc94 libarchive: Update script to get 3.7.7

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: buildbot <buildbot@kitware.com>
Merge-request: !10011
2024-11-19 10:12:40 -05:00
Brad King
ddb72eb3e6 Merge branch 'upstream-LibArchive' into update-libarchive
# By LibArchive Upstream
* upstream-LibArchive:
  LibArchive 2024-10-13 (b439d586)
2024-11-18 14:17:22 -05:00
Brad King
e048b0cc94 libarchive: Update script to get 3.7.7 2024-11-18 14:15:17 -05:00
Brad King
5fa7f75577 ci: Do not linkcheck www.tasking.com URLs
The server's certificate fails verification.
2024-10-30 05:39:11 -04:00
Brad King
0b2be5c0bf ci: linkcheck_ignore www.intel.com URLs more precisely 2024-10-30 05:38:00 -04:00
Brad King
323638f573 Merge topic 'libuv-error-mode-backport'
0f515c2d26 libuv: win/spawn: add option to use parent process error mode
728f40d4bf libuv: win/spawn: allow exception through to OS

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: buildbot <buildbot@kitware.com>
Merge-request: !9931
2024-10-28 09:32:24 -04:00
Brad King
8779b1ad28 Merge branch 'backport-ci-fedora-41' into ci-fedora-41 2024-10-26 06:02:18 -04:00
Brad King
f60b4c553e Utilities/Sphinx: Tell linkcheck to not treat timeouts as broken
Sphinx 7.3 warns:

    sphinx/builders/linkcheck.py:86: RemovedInSphinx80Warning:
    The default value for 'linkcheck_report_timeouts_as_broken'
    will change to False in Sphinx 8, ...

Configure that behavior explicitly.
2024-10-26 06:01:09 -04:00
Dylan Snelgrove
0f515c2d26 libuv: win/spawn: add option to use parent process error mode
Backport changes from libuv v2 commit `8ad246557a` (win,process: allow
users to configure child error mode, 2024-10-17) to add the
`UV_PROCESS_WINDOWS_USE_PARENT_ERROR_MODE` option.

Also use `UV_PROCESS_WINDOWS_USE_PARENT_ERROR_MODE` to keep
the behavior the same as before the option was added,
all child processes would be spawned the the parent's
error mode.

Issue: #20115
2024-10-25 08:51:45 -04:00
Dylan Snelgrove
728f40d4bf libuv: win/spawn: allow exception through to OS
Backport changes from libuv v2 commit `da343e6237` (win: allow fatal
errors to trigger WER, 2023-01-17).

Issue: #20115
2024-10-25 08:51:45 -04:00
Brad King
7605228f5e codespell: Fix typos 2024-10-25 08:43:04 -04:00
Brad King
3a96346a3f Configure CMake itself with policies through CMake 3.30 2024-10-10 09:32:06 -04:00
Brad King
2cfe2ac0c7 Merge topic 'update-curl'
022d16659b curl: Work around missing OpenSSL symbol with LCC 1.23
01dde28dab ci: curl with Secure Transport on macOS does not support TLS 1.3
da52e4e571 curl: Set build options the way we need for CMake
ce908c42a3 Merge branch 'upstream-curl' into update-curl
1a2b208170 curl 2024-09-18 (7eb8c048)
862bd5defc curl: Update script to get curl 8.10.1

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !9832
2024-09-20 10:09:47 -04:00
Brad King
022d16659b curl: Work around missing OpenSSL symbol with LCC 1.23
Extend commit 8443dfa946 (curl: Work around missing OpenSSL symbol on
machine with LCC 1.23, 2023-01-30, v3.26.0-rc1~18^2) to cover the
`X509_get_signature_nid` symbol used by curl 8.10.
2024-09-19 11:03:46 -04:00
Brad King
da52e4e571 curl: Set build options the way we need for CMake
Set options added by the update to curl 8.10.1.
2024-09-19 10:15:40 -04:00
Brad King
387a9a746a libarchive: tar: fix memory leaks when reading symlinks or parsing pax headers
Backport [libarchive PR 2338] to fix [libarchive issue 2336].

[libarchive PR 2338]: https://github.com/libarchive/libarchive/pull/2338
[libarchive issue 2336]: https://github.com/libarchive/libarchive/issues/2336
2024-09-19 10:01:04 -04:00
Brad King
ce908c42a3 Merge branch 'upstream-curl' into update-curl
* upstream-curl:
  curl 2024-09-18 (7eb8c048)
2024-09-18 11:51:18 -04:00
Brad King
862bd5defc curl: Update script to get curl 8.10.1 2024-09-18 11:24:37 -04:00
Brad King
21affa271e Utilities: Update hard-coded try_compile results for libarchive 3.7.5 2024-09-17 13:03:11 -04:00
Brad King
fe3f0d469f Merge branch 'upstream-LibArchive' into update-libarchive
* upstream-LibArchive:
  LibArchive 2024-09-13 (12ecf841)
2024-09-17 13:03:03 -04:00
Brad King
dfbb1f2f0d libarchive: Update script to get 3.7.5 2024-09-17 10:03:33 -04:00
Brad King
cd74a14633 Merge topic 'librhash-glibc-version'
628a807730 librhash: aligned_alloc is not available with glibc < 2.16

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !9804
2024-09-10 08:06:09 -04:00
Dilshod Mukhtarov
628a807730 librhash: aligned_alloc is not available with glibc < 2.16
Revise the version check from commit e14300816b (librhash: aligned_alloc
is not available with glibc < 2.15, 2024-02-14, v3.29.0-rc2~30^2).

Issue: #25679
2024-09-09 09:45:04 -04:00
Brad King
1d46a7f7ee Merge topic 'update-cppdap'
f6745ed29f Merge branch 'upstream-cppdap' into update-cppdap
bcfd096ed9 cppdap 2024-08-02 (c69444ed)
5098a08fde cppdap: Update script to get version as of 2024-08-02

Acked-by: Kitware Robot <kwrobot@kitware.com>
Tested-by: buildbot <buildbot@kitware.com>
Merge-request: !9730
2024-08-15 09:50:58 -04:00
Christoph Grüninger
f742c298a0 cppdap: include/dap/network.h: add <stdint.h> include for GCC 15
GCC 15 requires the include for the declaration of `uint32_t`.
Backport [cppdap PR 133](https://github.com/google/cppdap/pull/133).
2024-08-13 15:42:40 -04:00
Brad King
f6745ed29f Merge branch 'upstream-cppdap' into update-cppdap
# By cppdap Upstream
* upstream-cppdap:
  cppdap 2024-08-02 (c69444ed)
2024-08-13 15:36:07 -04:00
Brad King
5098a08fde cppdap: Update script to get version as of 2024-08-02 2024-08-13 15:35:20 -04:00
Brad King
6b8ab3c282 expat: Hard-code configuration options for our needs 2024-08-13 15:22:45 -04:00
Brad King
25c2d60c04 Merge branch 'upstream-expat' into update-expat
* upstream-expat:
  expat 2024-03-13 (fa75b965)
2024-08-13 15:22:18 -04:00
Brad King
fc5bbb1f01 expat: Update script to get Expat 2.6.2 2024-08-13 15:16:02 -04:00