summaryrefslogtreecommitdiffstats
path: root/Tests/CMakeLib
Commit message (Collapse)AuthorAgeFilesLines
* cmUVProcessChain: Simplify SetExternalStream usageBrad King2024-01-241-4/+1
| | | | | It is commonly called with the `fileno()` of a `FILE*` stream, so accept the latter directly.
* Tests: Add missing include in testUVProcessChainHelper on WindowsBrad King2024-01-241-0/+4
| | | | We use `STATUS_ACCESS_VIOLATION` from `windows.h`.
* Tests: Avoid compiling call to dap::optional<dap::string>(nullptr)Brad King2023-11-072-3/+3
|
* cmDebugTools: add headerBen Boeckel2023-10-012-0/+34
| | | | | | | | | | | | | | This provides a utility macro which prints out: - location of the call; - the expression being evaluated; and - the value of the expression. Evaluates to the value of the expression. Inspired by Rust's `dbg!` macro. See: https://doc.rust-lang.org/stable/std/macro.dbg.html
* cmCTestScriptHandler: Replace cmsysProcess with cmUVProcessChainKyle Edwards2023-08-291-4/+0
| | | | And update cmSystemTools::WaitForLine() to use cmUVProcessChain.
* cmUVStreamRead: Return RAII handle to avoid memory leakKyle Edwards2023-08-251-2/+56
|
* CMakeLibTests: Compile with WIN32_LEAN_AND_MEANKyle Edwards2023-08-211-0/+6
|
* Merge topic 'debugger-pipe-connections'Brad King2023-08-192-4/+11
|\ | | | | | | | | | | | | | | 8b1257e7bf Debugger: Replace libuv with platform-specific connection code Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !8711
| * Debugger: Replace libuv with platform-specific connection codePaul Maybee2023-08-172-4/+11
| | | | | | | | | | | | | | Remove libuv usage from CMake debugger. Libuv has an async io model and cppdap uses a sync model, so an extra thread and a buffer copy were necessary to match semantics. In order to eliminate those costs this commit implements the IO using platform specific APIs.
* | Merge topic 'test-debugger-named-pipe-fix'Brad King2023-08-161-7/+7
|\ \ | | | | | | | | | | | | | | | | | | | | | 1a5cb0c1c1 testDebuggerNamedPipe: fix for cppdap with nlohmann_json Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !8725
| * | testDebuggerNamedPipe: fix for cppdap with nlohmann_jsonĐoàn Trần Công Danh2023-08-161-7/+7
| | | | | | | | | | | | | | | Fixes: #25190 Signed-off-by: Đoàn Trần Công Danh <congdanhqx@gmail.com>
| * | cmList: Fix performance regression in append/prependMarc Chevrier2023-08-041-4/+4
| | | | | | | | | | | | Fixes: #25147
* | | Merge topic 'add-cm-fileno'Brad King2023-08-091-1/+4
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | fbdb1fd843 Source: Add cm_fileno wrapper Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Merge-request: !8686
| * | | Source: Add cm_fileno wrapperKyle Edwards2023-08-071-1/+4
| | | | | | | | | | | | | | | | And use it where appropriate.
* | | | cmList: Fix performance regression in append/prependMarc Chevrier2023-08-041-4/+4
|/ / / | | | | | | | | | Fixes: #25147
* | | Merge topic 'test_utf8_improve'Brad King2023-08-011-58/+49
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | 3ce4e9523c testUTF8: Improve using string_view Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Merge-request: !8673
| * | | testUTF8: Improve using string_viewVitaly Stakhovsky2023-07-301-58/+49
| | | |
* | | | IWYU: Update for Debian 12 CI jobBrad King2023-07-287-7/+1
|/ / / | | | | | | | | | | | | | | | `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.
* | | cmUVProcessChain::Wait(): Treat timeout of 0 as no timeoutKyle Edwards2023-07-261-0/+19
| |/ |/|
* | cmCMakePath: workarounds for Sunpro/sparc compilerMarc Chevrier2023-07-182-0/+442
| |
* | Merge topic 'debugger-breakpoints'Brad King2023-07-141-0/+13
|\ \ | |/ | | | | | | | | | | | | 60b6383993 Debugger: Always clear existing breakpoints on setBreakpoints Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !8624
| * Debugger: Always clear existing breakpoints on setBreakpointsBen McMorran2023-07-131-0/+13
| | | | | | | | Fixes: #25063
* | Merge topic 'debugger-no-supportsVariableType'Brad King2023-07-133-4/+38
|\ \ | |/ | | | | | | | | | | | | | | e02cf3f190 Debugger: Correctly handle clients without supportsVariableType Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Acked-by: Garrett Campbell <gcampbell@microsoft.com> Merge-request: !8620
| * Debugger: Correctly handle clients without supportsVariableTypeBen McMorran2023-07-123-4/+38
| | | | | | | | Fixes: #25057
* | Tests: Improve order of CMakeLibTests link librariesBrad King2023-07-071-1/+1
| | | | | | | | Avoid repeating `libCMakeLib.a` multiple times on the link line.
* | Merge topic 'debugger-segfault'Brad King2023-06-301-1/+29
|\ \ | |/ | | | | | | | | | | | | 764258771a Debugger: Fix threads request segfault after thread exited event Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !8604
| * Debugger: Fix threads request segfault after thread exited eventBen McMorran2023-06-291-1/+29
| | | | | | | | Fixes: #25041
* | CMakeLibTests: Precompile common expensive headersClemens Wasser2023-06-221-0/+4
| |
* | cmUVStream: Add cmUVStreamRead() functionKyle Edwards2023-06-141-0/+57
| |
* | cmUVProcessChain: Return output and error streams as file descriptorsKyle Edwards2023-06-141-21/+30
| |
* | cmUVPipeIStream: Add cmUVPipeIStreamKyle Edwards2023-06-141-0/+40
| |
* | cmUVProcessChain: Add support for SetExternalStream(Stream_INPUT)Kyle Edwards2023-06-122-0/+34
| |
* | cmUVProcessChain: Add Status::SpawnResult fieldKyle Edwards2023-06-082-64/+203
|/
* cmUVProcessChain: Add Status::GetException() methodKyle Edwards2023-06-052-14/+65
|
* cmUVProcessChain: Add Finished() methodKyle Edwards2023-05-311-0/+12
|
* cmake: Add debuggerGlen Chung2023-05-3012-0/+1733
| | | | | | | | | | | | | | | | - Depends on cppdap and jsoncpp. - Add --debugger argument to enable the Debugger. - Add --debugger-pipe argument for DAP traffics over named pipes. - Support breakpoints by filenames and line numbers. - Support exception breakpoints. - Call stack shows filenames and line numbers. - Show Cache Variables. - Show the state of currently defined targets, tests and directories with their properties. - Add cmakeVersion to DAP initialize response. - Include unit tests. Co-authored-by: Ben McMorran <bemcmorr@microsoft.com>
* cmUVProcessChain: Add option for merged output and errorKyle Edwards2023-05-261-0/+60
|
* cmUVProcessChain: Add working directory optionKyle Edwards2023-05-263-0/+70
|
* iwyu: ignore `std::remove_reference` requirementsBen Boeckel2023-05-161-2/+1
| | | | This removes some includes from some existing files.
* Link step: use linker dependency linker fileMarc Chevrier2023-05-032-19/+19
| | | | | | Based on work done by @ben.boeckel (!8051) Fixes: #22217
* CMake code rely on cmList class for CMake lists management (part. 2)Marc Chevrier2023-04-291-1/+0
|
* cmList class: various enhancementsMarc Chevrier2023-04-291-34/+35
|
* cmList: CMake list implementationMarc Chevrier2023-04-052-0/+996
| | | | Fixes: #24548
* Merge topic 'presets-json-errors'Brad King2023-03-303-167/+167
|\ | | | | | | | | | | | | | | | | 19305afd8a presets: Improve JSON parser and error messages Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Acked-by: scivision <michael@scivision.dev> Merge-request: !8290
| * presets: Improve JSON parser and error messagesMartin Duffy2023-03-293-167/+167
| |
* | Utilities/Sphinx: Add 'cref' roleMatthew Woehlke2023-03-142-2/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | Add a role that can be used to create local links (a la '`LINK`_'), but that also applies literal style. This is particularly useful for referring to subcommands within the command's documentation in a style that is consistent with ':command:`BAR <foo(BAR)>`' but is much less verbose. Although this is intended for subcommands, it works with any local reference. Co-authored-by: Brad King <brad.king@kitware.com>
* | cmRST: Fix cmake domain directives with newline before argumentBrad King2023-03-092-10/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The `signature` directive added by commit 74e3c1d313 (Utilities/Sphinx: Add a directive to document command signatures, 2023-02-24) will be commonly used with the form: .. signature:: some_command(SOME_SIGNATURE) Docs for this signature. Drop the assumption that all CMake domain directives are immediately followed by their argument on the same line.
* | Utilities/Sphinx: Add a directive to document command signaturesMatthew Woehlke2023-03-032-0/+16
|/ | | | | | | Add a `signature` directive to offer a CMake version of Sphinx's `function` directive, similar to that found in other domains (py, cpp, etc.). Like others, this takes one or more signatures as arguments and creates dt/dd nodes from the signatures and the directive contents.
* Remove component size limit for version comparisonsDavid Gobbi2023-02-201-2/+20
| | | | | | | | | The VersionCompare() function converted version components to 'unsigned long' prior to comparing them. Any version components too large for 'unsigned long' were treated as equal to ULONG_MAX. This impacted operators like VERSION_GREATER, VERSION_LESS, and VERSION_EQUAL. The new code does not limit the length of the version components for valid comparisons.
* Tests: Add cases for cmSystemTools::VersionCompareDavid Gobbi2023-02-201-0/+29
|