Kitware Robot
de273b2e11
LICENSE: Replace references to Copyright.txt with LICENSE.rst
...
```
git grep -lz 'Copyright.txt or https://cmake.org/licensing ' |
while IFS= read -r -d $'\0' f ; do
sed -i '/Copyright.txt or https:\/\/cmake.org\/licensing / {
s/Copyright.txt/LICENSE.rst/
}' "$f" ; done
```
2025-03-03 09:56:07 -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
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
21ef873660
clang-tidy module: Update to build against LLVM/Clang 18
2024-04-24 16:43:00 -04:00
Brad King
653262162c
clang-tidy module: Update to build against LLVM/Clang 17
2023-11-17 09:58:21 -05:00
Brad King
fad150d314
clang-tidy module: Update to build against LLVM/Clang 16
2023-05-22 17:16:12 -04:00
Brad King
ce3ec02bb2
clang-tidy module: Drop unused variable
2023-05-22 17:16:12 -04:00
Kyle Edwards
550f6b40bd
clang-tidy module: copy .gitignore from top level
...
Since 8b094845
, .gitignore entries have been pinned to the top-level
.gitignore file. Copy these entries into a .gitignore for the
clang-tidy module.
2023-03-29 16:32:40 -04:00
Kyle Edwards
b1366e215e
clang-tidy module: fix offset issue with last string concat operand
2022-12-03 13:56:56 -05:00
Sean Orner
c6c8616468
clang-tidy module: add tests for string concatenation check
2022-11-28 13:37:52 -05:00
Joe Blaauboer
e1ec052d53
clang-tidy module: add check for string concatenation
...
Co-Authored-by: Kyle Edwards <kyle.edwards@kitware.com>
2022-11-28 13:34:04 -05:00
Kyle Edwards
c6368a23fe
clang-tidy module: look for sizeof string literal in cmStrLen() check
2022-11-18 09:37:58 -05:00
Sean Orner
aa0c99c55c
clang-tidy module: add test for #pragma once check
2022-11-17 13:55:52 -05:00
Igor-Mikhail-Valentin Glebov
c9af6f2ff6
clang-tidy module: add #pragma once check
...
Co-Authored-by: Kyle Edwards <kyle.edwards@kitware.com>
2022-11-17 13:55:52 -05:00
Kyle Edwards
68a4d97da7
clang-tidy module: allow header files in test cases
2022-11-17 13:55:52 -05:00
Sean Orner
75ab77ee19
clang-tidy module: add test for ostringstream check
2022-11-14 13:51:59 -05:00
Joe Blaauboer
04638e7358
clang-tidy module: add check for ostringstream
2022-11-14 13:51:59 -05:00
Sean Orner
eab8e38961
clang-tidy module: add check for boolean parameters
...
Co-Authored-by: Kyle Edwards <kyle.edwards@kitware.com>
2022-11-07 13:15:02 -05:00
Igor-Mikhail-Valentin Glebov
ffa970559c
clang-tidy module: add tests for cmsys::fstream check
...
Co-Authored-by: Kyle Edwards <kyle.edwards@kitware.com>
2022-11-04 11:33:23 -04:00
Joe Blaauboer
d520853682
clang-tidy module: add check for cmsys::fstream
...
Co-Authored-by: Kyle Edwards <kyle.edwards@kitware.com>
Co-Authored-by: Igor-Mikhail-Valentin Glebov <iglebov@albany.edu>
2022-11-04 11:33:23 -04:00
Kyle Edwards
01d8308406
Tests: remove stderr from clang-tidy module tests
...
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.
2022-11-04 11:02:47 -04:00
Sean Orner
43481a77f9
clang-tidy module: add test for cmStrLen() check
2022-10-19 13:52:58 -04:00
Kyle Edwards
43a88b56af
clang-tidy module: add check for cmStrLen()
...
Co-Authored-by: Joe Blaauboer <jblaauboer67@gmail.com>
2022-10-19 13:51:11 -04:00
Kyle Edwards
0a2093d0c5
clang-tidy module: add test framework
2022-10-14 11:09:38 -04:00
Kyle Edwards
0ad3941f73
clang-tidy module: Add stub module
...
Issue: #23912
2022-10-12 13:23:45 -04:00