Commit Graph

68816 Commits

Author SHA1 Message Date
Alex Turbov
de59765336
pre-commit: Add an initial configuration file
Add (except some meta-hooks) the `check-case-conflict` hook to
make sure the repo don't contain files that can cause a conflict
on case-insensitive filesystems.

Also, exclude third-party sources from further checks.
2025-01-26 05:34:15 +04:00
Brad King
8eff0d3351 Merge topic 'rel-src-cleanup'
00cfea965b gitattributes: Do not export lint config files in source archives

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10229
2025-01-25 08:06:46 -05:00
Brad King
7975ae0bb7 Merge topic 'clang-format-H'
c7323b004f clang-format: Apply formatting to files with upper-case .H extension

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10233
2025-01-25 08:04:43 -05:00
Brad King
bcc29fd68f Merge topic 'update-kwsys'
8c36c13081 Merge branch 'upstream-KWSys' into update-kwsys
ca5cdc6741 KWSys 2025-01-24 (2535f5f1)

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: buildbot <buildbot@kitware.com>
Merge-request: !10228
2025-01-25 08:03:00 -05:00
Kitware Robot
932634133b CMake Nightly Date Stamp 2025-01-25 00:08:39 -05:00
Brad King
c7323b004f clang-format: Apply formatting to files with upper-case .H extension 2025-01-24 11:06:54 -05:00
Brad King
a2267f337a Merge topic 'doc-auto-export'
7a69f9037e Help: Document more WINDOWS_EXPORT_ALL_SYMBOLS limitations on data symbols

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10219
2025-01-24 10:24:36 -05:00
Brad King
5f6114f8b8 Merge topic 'patch-load-cache'
6fc8d20250 load_cache: Improve explanation of command signatures

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10216
2025-01-24 10:20:13 -05:00
Brad King
7210f2d8c3 Merge topic 'patch-load-cache-find-modules'
676b6d4574 FindFLTK*: Fix the load_cache() signature

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10220
2025-01-24 10:02:22 -05:00
Brad King
00cfea965b gitattributes: Do not export lint config files in source archives 2025-01-24 09:58:45 -05:00
Brad King
8c36c13081 Merge branch 'upstream-KWSys' into update-kwsys
# By KWSys Upstream
* upstream-KWSys:
  KWSys 2025-01-24 (2535f5f1)
2025-01-24 09:55:57 -05:00
KWSys Upstream
ca5cdc6741 KWSys 2025-01-24 (2535f5f1)
Code extracted from:

    https://gitlab.kitware.com/utils/kwsys.git

at commit 2535f5f16a4077bba6da2d4cad2a417ca0c3918e (master).

Upstream Shortlog
-----------------

Brad King (4):
      a42b7759 clang-format.bash: update to clang-format-18
      6da5c6ac Empty commit at end of history preceding clang-format-18 style transition
      a234f2ff clang-format: Enforce "east const" qualifier placement
      ac2b3378 Empty commit at end of history preceding clang-format "east const" transition

Kitware Robot (2):
      7a19509c Revise C++ coding style using clang-format-18
      7dec9555 Revise C++ coding style using clang-format with "east const"

Nikita Nemkin (1):
      4a126278 clang-format.bash: Preserve CRLF line endings on Windows
2025-01-24 09:55:57 -05:00
Brad King
0fca814d00 Merge topic 'ci-rbenv'
482b7c358b ci: Add rbenv to Debian and Fedora base images

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10226
2025-01-24 09:55:46 -05:00
Brad King
ac601c8a51 Merge topic 'clang-format-18'
0b96ae1f6a Revise C++ coding style using clang-format with "east const"
6ef947ea97 Empty commit at end of history preceding clang-format "east const" transition
08f1cae4e8 clang-format: Enforce "east const" qualifier placement
b2ba64add9 Revise C++ coding style using clang-format-18
c03bab9610 Empty commit at end of history preceding clang-format-18 style transition
e641442149 clang-format.bash: update to clang-format-18

Acked-by: Kitware Robot <kwrobot@kitware.com>
Tested-by: buildbot <buildbot@kitware.com>
Merge-request: !10225
2025-01-24 09:53:52 -05:00
Kitware Robot
709de0858d CMake Nightly Date Stamp 2025-01-24 00:05:47 -05:00
Brad King
482b7c358b ci: Add rbenv to Debian and Fedora base images 2025-01-23 14:40:40 -05: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
Brad King
6ef947ea97 Empty commit at end of history preceding clang-format "east const" transition
This is an empty commit that precedes an automatic application of clang-format
with "east const" to update the C++ style of our entire source tree.
This may be helpful to rebase a topic branch that was originally
based on a commit preceding the transition.  One may first rebase
the topic on this commit.  Then use one of the following approaches.

*   Rewrite the topic, including this commit, using `git filter-branch`
    `--tree-filter` with `clang-format.bash` to update the style in
    every commit.  Rebase the revised topic, excluding the rewrite of
    this commit, on the style transition commit.

OR

*   Add a `.git/info/grafts` entry to change the parent of the first
    commit in the topic from this commit to the style transition commit.
    Rewrite the topic using `git filter-branch --tree-filter` with
    `clang-format.bash` to update the style in every commit.  Then
    remove the graft, which was resolved by the filter.

See `git help filter-branch` and `git help repository-layout` for
details.
2025-01-23 11:51:15 -05:00
Brad King
08f1cae4e8 clang-format: Enforce "east const" qualifier placement
Issue: #26123
2025-01-23 11:48:37 -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
c03bab9610 Empty commit at end of history preceding clang-format-18 style transition
This is an empty commit that precedes an automatic application of
clang-format-18 to update the C++ style of our entire source tree.
This may be helpful to rebase a topic branch that was originally
based on a commit preceding the transition.  One may first rebase
the topic on this commit.  Then use one of the following approaches.

*   Rewrite the topic, including this commit, using `git filter-branch`
    `--tree-filter` with `clang-format.bash` to update the style in
    every commit.  Rebase the revised topic, excluding the rewrite of
    this commit, on the style transition commit.

OR

*   Add a `.git/info/grafts` entry to change the parent of the first
    commit in the topic from this commit to the style transition commit.
    Rewrite the topic using `git filter-branch --tree-filter` with
    `clang-format.bash` to update the style in every commit.  Then
    remove the graft, which was resolved by the filter.

See `git help filter-branch` and `git help repository-layout` for
details.
2025-01-23 11:42:58 -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
cf44774fd0 Merge branch 'release-3.31' 2025-01-23 11:27:53 -05:00
Brad King
9fe70fd764 CMake 3.31.5 2025-01-23 10:53:36 -05:00
Brad King
17255e48af Merge branch 'release-3.31' 2025-01-23 10:40:59 -05:00
Brad King
e2a0790be5 Merge branch 'release-3.30' 2025-01-23 10:40:41 -05:00
Brad King
ba5aaa73ba Merge branch 'release-3.30' into release-3.31 2025-01-23 10:40:25 -05:00
Brad King
d437178a10 CMake 3.30.7 2025-01-23 09:59:38 -05:00
Brad King
1d4d4362d9 Merge topic 'remove-old-compatibility'
77f71ad4e2 Remove compatibility with CMake versions older than 3.5
fb1bd1d330 CMP0065: Remove support for OLD behavior
d9dd38cccf CMP0064: Remove support for OLD behavior
d88047c329 Remove compatibility with CMake versions older than 3.3
ac1a9cb160 CMP0063: Remove support for OLD behavior
36fffb673a CMP0062: Remove support for OLD behavior
789a7d73d4 CMP0061: Remove support for OLD behavior
3dc19e24cb CMP0060: Remove support for OLD behavior
...

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10210
2025-01-23 09:36:59 -05:00
Brad King
63924c4afa Merge topic 'ci-typos'
c3777c1536 ci: Extend spellcheck job with 'typos' tool
d11552c2d9 codespell: Exclude paths by patterns following pre-commit check conventions
11d0a631d4 codespell: Split multi-valued configuration across multiple lines
54dfadaf5a ci: Rename "codespell" job to more general name "spellcheck"
17fc94e5e3 ci: Add typos 1.29.4 to Fedora base image
ddf8220572 ci: Use Fedora 41 default flang package now that it is new enough
1e2d19ea4f gitignore: Tell tools honoring .gitignore to ignore .git too
0d0a94bcfb Tests: Fix Fortran syntax for initialized variable

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10211
2025-01-23 09:34:02 -05:00
Brad King
5b69a459e2 Merge topic 'ci-iar'
737e9f0647 ci: Update to IAR bxarm 9.60.3

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10218
2025-01-23 09:32:56 -05:00
Brad King
f66eee89d1 Merge topic 'update-kwsys'
4cd8b15c8d Merge branch 'upstream-KWSys' into update-kwsys
d6d1695d89 KWSys 2025-01-22 (22ffdf26)

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10215
2025-01-23 09:31:15 -05:00
Brad King
e7c7b86007 Merge topic 'patch-check-cxx-compiler-flag-typo'
f416449664 CheckCXXCompilerFlag: Fix typo in argument

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10217
2025-01-23 09:29:52 -05:00
Kitware Robot
f2082cc660 CMake Nightly Date Stamp 2025-01-23 00:07:32 -05:00
Peter Kokot
676b6d4574
FindFLTK*: Fix the load_cache() signature
The load_cache(READ_WITH_PREFIX) command requires specifying one prefix
and the rest of the arguments are the cache entry names.
2025-01-22 23:43:39 +01:00
Peter Kokot
6fc8d20250
load_cache: Improve explanation of command signatures
This extends the descriptions of command signatures and options.
Additional examples are listed at the bottom for better understanding
and overview of this command.
2025-01-22 23:40:39 +01:00
Brad King
7a69f9037e Help: Document more WINDOWS_EXPORT_ALL_SYMBOLS limitations on data symbols
Issue: #26604
2025-01-22 16:58:52 -05:00
Brad King
737e9f0647 ci: Update to IAR bxarm 9.60.3
Run `.gitlab/ci/repackage/iar.ps1` with the installer and host the
package archives ourselves.
2025-01-22 14:15:11 -05:00
Peter Kokot
f416449664
CheckCXXCompilerFlag: Fix typo in argument 2025-01-22 18:24:13 +01:00
Brad King
4cd8b15c8d Merge branch 'upstream-KWSys' into update-kwsys
# By KWSys Upstream
* upstream-KWSys:
  KWSys 2025-01-22 (22ffdf26)
2025-01-22 11:12:29 -05:00
KWSys Upstream
d6d1695d89 KWSys 2025-01-22 (22ffdf26)
Code extracted from:

    https://gitlab.kitware.com/utils/kwsys.git

at commit 22ffdf26989e08367b722087a7f126ce23eb8e2f (master).

Upstream Shortlog
-----------------

Tom Stellard (1):
      e1aeb61e SystemInformation: Fix GetNumberOfLogicalCPU on s390x
2025-01-22 11:12:28 -05:00
Brad King
77f71ad4e2 Remove compatibility with CMake versions older than 3.5
This compatibility has been deprecated since commit 3a4791548d
(Deprecate compatibility with CMake versions older than 3.5, 2023-02-09,
v3.27.0-rc1~508^2).  The behavior itself has been deprecated
since CMake 3.5.

Issue: #26613
2025-01-22 10:40:55 -05:00
Brad King
fb1bd1d330 CMP0065: Remove support for OLD behavior 2025-01-22 10:40:55 -05:00
Brad King
d9dd38cccf CMP0064: Remove support for OLD behavior 2025-01-22 10:40:55 -05:00
Brad King
d88047c329 Remove compatibility with CMake versions older than 3.3
This compatibility has been deprecated since commit 3a4791548d
(Deprecate compatibility with CMake versions older than 3.5, 2023-02-09,
v3.27.0-rc1~508^2).  The behavior itself has been deprecated
since CMake 3.3.

Issue: #26613
2025-01-22 10:40:54 -05:00
Brad King
ac1a9cb160 CMP0063: Remove support for OLD behavior 2025-01-22 10:40:54 -05:00
Brad King
36fffb673a CMP0062: Remove support for OLD behavior 2025-01-22 10:40:54 -05:00
Brad King
789a7d73d4 CMP0061: Remove support for OLD behavior 2025-01-22 10:40:54 -05:00
Brad King
3dc19e24cb CMP0060: Remove support for OLD behavior 2025-01-22 10:40:54 -05:00
Brad King
1393fbf13f CMP0059: Remove support for OLD behavior 2025-01-22 10:40:54 -05:00