Ben Boeckel
557c44b93e
cmStrCat: use character literals where possible
...
Found and replaced using the `cmstrcat-to-char-literal` rule for
`ast-grep`.
2025-05-15 19:12:04 +02:00
Kitware Robot
1772622772
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 10:43:35 -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
Marc Chevrier
241304190f
CMake code rely on cmList class for CMake lists management (part. 2)
2023-04-29 09:54:31 +02:00
Brad King
4368a524c6
cmCMakePathCommand: Enforce non-empty string arguments via binding type
2022-07-28 08:25:00 -04:00
Brad King
8a18e82e95
cmCMakePathCommand: Report keyword errors via argument parser results
2022-07-22 10:32:25 -04:00
Brad King
31d7aa5e3c
cmCMakePathCommand: Use cm::optional for keyword argument presence
2022-07-20 16:03:12 -04:00
Brad King
1ee5a4a548
cmArgumentParser: Avoid allocating copies of keyword strings
2022-07-05 16:34:57 -04:00
Marc Chevrier
cc56dc7468
Rename cmProp in cmValue
2021-09-21 17:14:04 +02:00
Vitaly Stakhovsky
5e8fa0b7bc
Source: Minor code improvements
2021-05-11 11:20:04 -04:00
Marc Chevrier
76cea3dfe2
cmake_path: rename 'GET ... RELATIVE_PATH' to 'GET ... RELATIVE_PART'
...
For consistency, subcommand 'HAS_RELATIVE_PATH' is also renamed
to 'HAS_RELATIVE_PART'.
Fixes : #21385
2021-01-28 11:06:31 +11:00
Ben Boeckel
cdfc4e3195
clang-tidy: fix readability-qualified-auto warnings
2021-01-27 08:45:45 -05:00
Marc Chevrier
76f0bcdfb6
cmake_path: various updates
...
To follow discussions in #21385 and !5682 :
* Fix bug in cmCMakePath::IsSuffix() method
* cmake_path(HASH) always normalized paths (NORMALIZE option removed)
2021-01-13 15:27:49 +01:00
Oleksandr Koval
209daa20b2
Code style: add missed explicit 'this->'
...
CMake uses explicit 'this->' style. Using custom clang-tidy check we can
detect and fix places where 'this->' was missed.
2021-01-05 14:32:36 +02:00
Marc Chevrier
ed21ad181e
cmake_path: various enhancements to subcommands/keywords
...
This change address partly the remarks done in issue #21385
2020-11-11 23:43:51 +01:00
Marc Chevrier
eb583b0a66
cmake_path command: path management
...
Fixes : #19568 , #20922
2020-09-06 10:52:25 +02:00