summaryrefslogtreecommitdiffstats
path: root/Source/cmJSONState.h
Commit message (Collapse)AuthorAgeFilesLines
* Merge topic 'json-errors-filename'Brad King2025-03-141-12/+3
|\ | | | | | | | | | | | | | | f134468a98 JSON: Improve JSON error message formatting Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !10463
| * JSON: Improve JSON error message formattingMartin Duffy2025-03-131-12/+3
| | | | | | | | | | | | | | | | | | | | | | This improves the output of JSON-related error messages. It adds the filename to the output and excludes the column number. This is particularly useful when there are multiple JSON files being read that could be responsible for an error, ie CMakePresets.json and CMakeUserPresets.json, or multiple instrumentation queries. Issue: #26717
* | LICENSE: Replace references to Copyright.txt with LICENSE.rstKitware Robot2025-03-031-1/+1
|/ | | | | | | | | | ``` 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 ```
* Revise C++ coding style using clang-format with "east const"Kitware Robot2025-01-231-5/+5
| | | | | | | | | | | | | | | 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
* Revise C++ coding style using clang-format-18Kitware Robot2025-01-231-2/+2
| | | | | | | | | | | | | | 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
* cmJSONState: Add missing member initializerBrad King2024-07-081-1/+1
| | | | | | In commit 7d2cc6ece6 (presets: Allow comments in presets files, 2024-06-23) we added a member without an initializer. This causes dynamic analysis to report use of an uninitialized value.
* presets: Allow comments in presets filesAliaksandr Averchanka2024-06-241-0/+1
| | | | | Co-authored-by: Kanaiym <abdigak@clarkson.edu> Fixes: #22791
* IWYU: Update for Debian 12 CI jobBrad King2023-07-281-1/+0
| | | | | | `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 12.
* presets: Improve JSON parser and error messagesMartin Duffy2023-03-291-0/+73