| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
`include-what-you-use` diagnostics, in practice, are specific to
the environment's compiler and standard library. Update includes
to satisfy IWYU for our CI job under Debian 13. Some patterns:
* Types named in virtual `override` signatures no longer require
includes since the overridden signature already names them.
* A function argument's type needs to be included even if its constructor
is called only by implicit conversion. For example, constructing a
`std::function` from a lambda now requires `<functional>`.
* Some prior mysterious `<type_traits>` inclusions are no longer required.
|
| |
|
|
|
|
|
|
|
|
| |
```
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
```
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
| |
And use it in the `cmCMakePresetsGraphReadJSON.cxx` to check
presets schema version in the declarative way.
Co-authored-by: Martin Duffy <martin.duffy@kitware.com>
|
| |
|
|
| |
Closes: #22164
|
| |
|
|
|
| |
Co-authored-by: Kanaiym <abdigak@clarkson.edu>
Fixes: #22791
|
| |
|
|
| |
Signed-off-by: Cristian Le <cristian.le@mpsd.mpg.de>
|
| |
|
|
|
|
| |
Change the macro expander to use vtable dispatch.
Signed-off-by: Cristian Le <cristian.le@mpsd.mpg.de>
|
| |
|
|
|
|
|
| |
Many modern code editors have support for JSON Schema. When you specify
the `$schema` property in a JSON file, the editor can provide features
like auto-completion, error checking, etc., which can improve your
efficiency when writing and modifying the `CMakePresets.json` file.
|
| |
|
|
| |
And rename cmCMakePresetErrors to cmCMakePresetsErrors.
|
| |
|
|
| |
Only `$penv{}` can be expanded when processing includes.
|
| |
|
|
|
|
| |
Add JSON schema version 7 to support them.
Fixes: #22543
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
| |
Print errors only if there are errors. Add filename for better
introspection, particularly for FileNotFound errors with presets.
|
| |
|
|
| |
Restructure cmJSONHelpers to prevent SunPro errors when passing context.
|
| |
|
|
|
|
|
| |
The `TestOutputTruncation` is an optional preset. Do not set a default
value to avoid failing the JSON schema version check.
Closes issue #23411.
|
| |
|
|
|
|
|
|
|
|
| |
Add `--test-output-truncation` to `ctest`. This option can be used to
customize which part of the test output is being truncated. Currently
supported values are `tail`, `middle` and `head`.
Also add equivalent `CTEST_CUSTOM_TEST_OUTPUT_TRUNCATION` variable.
Fixes: #23206
|
| |
|
|
| |
Prepare for new test preset fields.
|
| |
|
|
|
|
| |
There are some valid use cases for allowing these files to be outside
the project directory. Relax the restriction, and include a strong
warning in the documentation.
|
| |
|
|
| |
Fixes: #21331
|
| |
|
|
|
|
|
|
| |
Before this refactoring, presets had a simple flag that marked them
as "user" or "not user", and checking the file graph of two files
was as simple as checking this flag. This only allowed for two files
in the graph. Generalize the code to allow for arbitrarily many files
in the graph.
|
| |
|
|
| |
Split up the file so that it won't be too big on some systems.
|
|
|
And change all references to "file" to say "graph" instead.
|