summaryrefslogtreecommitdiffstats
path: root/Source/cmFileAPI.cxx
Commit message (Collapse)AuthorAgeFilesLines
* fileapi: Add support for user-wide queriesMartin Duffy2024-08-221-2/+21
| | | | Fixes: #19168
* fileapi: Add CONFIGURE_DEPENDS glob info to cmakeFiles objectArctic Lampyrid2024-03-191-1/+1
| | | | | Fixes: #25668 Co-authored-by: Brad King <brad.king@kitware.com>
* fileapi: Add cross-compiling emulator to codemodel-v2Ralf Habacker2023-12-011-1/+1
| | | | Fixes: #25408
* 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.
* cmake_file_api: New project commandCraig Scott2023-06-051-0/+42
| | | | | | | | Projects can use the new command to request file API replies for the current run. No query files are generated, the query is tracked internally. Replies are created in the file system at generation time in the usual way. Fixes: #24951
* fileapi: Extend codemodel targets/compileGroups with Apple frameworksMarc Chevrier2023-05-191-1/+1
| | | | Fixes: #19897
* FileAPI: Add "configureLog" object kindBrad King2022-12-171-5/+89
| | | | | | | Provide clients with a way to get a known set of configure log event versions. Issue: #23200
* file-api: support exporting file set informationBen Boeckel2022-11-081-1/+1
| | | | | | | This includes listing the filesets themselves as well as which file set (if any) each source file is associated with. Fixes: #24128
* clang-tidy: address `google-readability-casting` lintsBen Boeckel2022-05-241-1/+1
| | | | At least those involving `static_cast`.
* FileAPI: Add information on file set installersKyle Edwards2021-10-271-1/+2
|
* fileapi: Add a "directory" object to codemodel-v2Brad King2021-03-161-1/+1
| | | | | | This object will contain more detailed directory-level information. Co-Authored-by: Kyle Edwards <kyle.edwards@kitware.com>
* cmFileAPI: Add "toolchains" object kind.Ben McMorran2021-01-121-0/+63
| | | | Fixes #19514
* fileapi: Extend codemodel targets with language standardJustin Goshi2020-06-261-1/+1
|
* fileapi: Extend codemodel targets with PRECOMPILE_HEADERSJustin Goshi2020-05-221-1/+1
|
* Revise include order using clang-format-6.0Kitware Robot2019-10-011-11/+12
| | | | | Run the `clang-format.bash` script to update our C and C++ code to a new include order `.clang-format`. Use `clang-format` version 6.0.
* IWYU: Add missing cstddef includes for size_t and nullptr_tBrad King2019-09-031-0/+1
| | | | The IWYU tool we use for CI now diagnoses these.
* Source sweep: Use cmStrCat for string concatenationSebastian Holtermann2019-08-221-3/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch is generated by a python script that uses regular expressions to search for string concatenation patterns of the kind ``` std::string str = <ARG0>; str += <ARG1>; str += <ARG2>; ... ``` and replaces them with a single `cmStrCat` call ``` std::string str = cmStrCat(<ARG0>, <ARG1>, <ARG2>, ...); ``` If any `<ARGX>` is itself a concatenated string of the kind ``` a + b + c + ...; ``` then `<ARGX>` is split into multiple arguments for the `cmStrCat` call. If there's a sequence of literals in the `<ARGX>`, then all literals in the sequence are concatenated and merged into a single literal argument for the `cmStrCat` call. Single character strings are converted to single char arguments for the `cmStrCat` call. `std::to_string(...)` wrappings are removed from `cmStrCat` arguments, because it supports numeric types as well as string types. `arg.substr(x)` arguments to `cmStrCat` are replaced with `cm::string_view(arg).substr(x)`
* clang-tidy: Enable performance-inefficient-string-concatenationSebastian Holtermann2019-08-051-1/+1
| | | | | | | Enables the clang-tidy test performance-inefficient-string-concatenation and replaces all inefficient string concatenations with `cmStrCat`. Closes: #19555
* Merge topic 'clang-tidy-8'Brad King2019-07-311-3/+0
|\ | | | | | | | | | | | | 4af094c8df clang-tidy: Blacklist violations for version 8 Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3627
| * clang-tidy: Blacklist violations for version 8Regina Pfeifer2019-07-301-3/+0
| | | | | | | | | | Check the codebase with clang-tidy version 8, fix the low hanging fruits, blacklist the rest.
* | cmStringAlgorithms: Move string functions to the new cmStringAlgorithms.hSebastian Holtermann2019-07-291-1/+1
|/ | | | | This adds the `cmStringAlgorithms.h` header and moves all string functions from `cmAlgorithms.h` to `cmStringAlgorithms.h`.
* fileapi: Suppress lint warning about non-move with old jsoncppBrad King2019-06-121-3/+3
|
* cmake: Teach -E capabilities to report supported fileapi requestsBrad King2019-06-071-0/+32
| | | | Fixes: #19339
* fileapi: Factor out helper to construct a version objectBrad King2019-06-071-14/+17
|
* cmSystemTools::RenameFile: Accepts std::string argsVitaly Stakhovsky2019-01-231-1/+1
|
* fileapi: add cmakeFiles v1Brad King2018-12-121-3/+60
| | | | Issue: #18398
* fileapi: add cache v2Brad King2018-12-121-0/+57
| | | | | | Start with v2 to distinguish it from server-mode v1. Issue: #18398
* fileapi: add codemodel v2Brad King2018-12-121-2/+59
| | | | | | Start with v2 to distinguish it from server-mode v1. Issue: #18398
* fileapi: Report cmake generator in reply index fileBrad King2018-12-121-0/+2
|
* fileapi: Add helper to create and reference a json reply fileBrad King2018-12-121-0/+12
|
* fileapi: Add protocol v1 support for stateful per-client queriesBrad King2018-12-121-5/+298
| | | | | | | | | | | | Add support for client-owned *stateful* query files. These allow clients to request a list of versions of each object kind and get only the first-listed version that CMake recognizes. Since clients own their stateful query files they can mutate them over time. As a client installation is updated it may update the queries that it writes to build trees to get newer object versions without paying the cost of continuing to generate older versions. Issue: #18398
* fileapi: Add protocol v1 support for client-specific query filesBrad King2018-12-121-2/+25
| | | | | | | | Add support for client-owned stateless query files. These allow clients to *own* requests for major object versions and get all those recognized by CMake. Issue: #18398
* fileapi: Add protocol v1 infrastructure with support for shared query filesBrad King2018-12-121-0/+299
Add a file-based API that clients may use to get semantic information about the buildsystem that CMake generates. Clients will write query files under a designated location in the build tree, and CMake will write reply files for clients to read. Start with support for shared stateless query files. These allow clients to share requests for major object versions and get all those recognized by CMake. Once any client has written a shared request to a build tree it will persist. Other clients will not need to overwrite the request (since it is stateless) and should not remove it either. For now we add only an undocumented object kind to use for testing the query and reply infrastructure. Object kinds providing real semantic information will be added later. Issue: #18398