summaryrefslogtreecommitdiffstats
path: root/Tests/CMakeLib
Commit message (Collapse)AuthorAgeFilesLines
* Merge topic 'modernize-build-self'Brad King2022-09-232-7/+5
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 9629be8080 Build: Use `CMAKE_CURRENT_XXX_DIR` instead of top dirs e6fb5a1feb Build: Sort linked libraries list of `CMakeLib` aa7290e8dc Build: Use imported target `Threads::Threads` instead of variable df8ad72ffa Build: Use imported target `kwiml::kwiml` instead of variables eeebf31e54 Build: Use imported target `LibRHash::LibRHash` instead of variables 08be01a181 Build: Use imported target `LibUV::LibUV` instead of variables ddac6dcbe8 Build: Use imported target `JsonCpp::JsonCpp` instead of variables ac76c53d33 Build: Use imported target `CURL::libcurl` instead of variables ... Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !7570
| * Build: Simplify `configure_file()` callsAlex Turbov2022-09-222-5/+3
| |
| * Build: Modernize some `foreach` calls to use `IN LISTS`/`IN ITEMS`Alex Turbov2022-09-221-2/+2
| |
* | Merge topic 'parse-large-int'Brad King2022-09-211-0/+35
|\ \ | |/ |/| | | | | | | | | | | | | 8fc822e13a file: Avoid strange istringstream crash in cmake.org binaries on Alpine Linux 31f158e4c8 cmStringAlgorithms: Add functions to parse strings to long long integers Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !7698
| * cmStringAlgorithms: Add functions to parse strings to long long integersBrad King2022-09-201-0/+35
| |
* | cm::enum_set: fix various bugsMarc Chevrier2022-08-221-0/+9
| |
* | cmArgumentParser: Ignore positional after keywordMatthew Woehlke2022-08-171-6/+15
| | | | | | | | | | | | | | | | | | Tweak cmArgumentParser to ignore positional arguments once a keyword argument has been seen. This prevents mingling of keyword arguments being able to effectively skip positional arguments, with later arguments being picked up again; this seems highly likely to lead to user confusion. This is also consistent with how other languages (e.g. Python) handle a mix of "named" and positional arguments.
* | cmArgumentParser: Model non-empty strings with wrapper typeBrad King2022-07-281-0/+16
| | | | | | | | | | | | Some clients have been explicitly checking whether the string specified after a keyword is empty. Offer them a way to specify that the string must be non-empty as part of the binding type.
* | cmArgumentParser: Offer bindings for positional argumentsBrad King2022-07-271-0/+7
| |
* | cmArgumentParser: Add callback bindingsBrad King2022-07-271-3/+110
| |
* | cmArgumentParser: Propagate constructors through binding wrapper typesBrad King2022-07-271-0/+14
| |
* | cmArgumentParser: Offer binding for list of parsed keywordsBrad King2022-07-251-0/+23
| | | | | | | | | | Some clients ask for this list in their `Parse()` call. Offer them a way to express this request as a binding.
* | cmArgumentParser: Drop unused keywordsMissingValue argument to Parse()Brad King2022-07-251-17/+7
| | | | | | | | | | All clients have been converted to encoding this requirement in their bindings.
* | cmArgumentParser: Capture keyword errors in parse resultsBrad King2022-07-221-2/+16
| | | | | | | | | | | | | | | | | | Since commit f46b2e9142 (cmArgumentParser: Model maybe-missing string with wrapper type, 2022-07-06) we know during parsing whether or not it is an error for a keyword to be missing a value. Record such errors in the parse results structure. Offer clients a helper method to report them. This provides clients with an alternative to manually checking `keywordsMissingValue` and generating their own error message.
* | cmArgumentParser: Add structure to capture operational resultsBrad King2022-07-221-39/+57
| | | | | | | | | | | | | | Create a way for the parser to record errors or incidental information about the argument parsing operation that clients can inspect afterward. Offer clients a way to hold the structure as part of their arguments structure.
* | cmArgumentParser: Model maybe-missing string with wrapper typeBrad King2022-07-071-0/+5
| | | | | | | | | | | | Bindings to `std::string` require one value. Some clients have been filtering `keywordsMissingValue` to support keywords that tolerate a missing value. Offer them a type-safe way to achieve this instead.
* | cmArgumentParser: Model maybe-empty and non-empty lists with wrapper typesBrad King2022-07-071-5/+12
| | | | | | | | | | | | | | | | Previously bindings to `std::vector<std::string>` required at least one value. Some clients have been filtering `keywordsMissingValue` to support keywords followed by empty lists. Instead, require clients to specify whether a keyword's list can be empty as part of the binding type.
* | cmArgumentParser: Offer cm::optional bindings to capture keyword presenceBrad King2022-07-051-11/+38
| | | | | | | | | | | | Several clients have been using `keywordsMissingValue` or `parsedKeywords` to check for the presence of keywords. Offer them a type-encoded way to explicitly check whether a keyword is present.
* | cmArgumentParser: Avoid allocating copies of keyword stringsBrad King2022-07-051-4/+5
| |
* | clang-tidy: address `google-readability-casting` lintsBen Boeckel2022-05-241-1/+1
| | | | | | | | At least those involving `static_cast`.
* | cmJSONHelpers: Restructure cmJSONHelpersMartin Duffy2022-05-051-23/+24
| | | | | | | | Restructure cmJSONHelpers to prevent SunPro errors when passing context.
* | cm::enum_set: container that contains a set of unique enum values.Marc Chevrier2022-04-272-0/+205
|/ | | | The enum must be an `enum class` with an unsigned integer as base type.
* Merge topic 'builtin-help-versionadded'Brad King2021-10-282-0/+12
|\ | | | | | | | | | | | | | | 054754359a cmRST: support `versionadded` and `versionchanged` directives Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !6667
| * cmRST: support `versionadded` and `versionchanged` directivesBen Boeckel2021-10-272-0/+12
| | | | | | | | | | | | | | | | This makes `versionadded` and `versionchanged` directives show up in `cmake --help-*` output instead of disappearing (and potentially making empty sections). Fixes: #22808
* | Source: fix many -Wmissing-prototypes warnings by marking functions staticSean McBride2021-10-258-30/+36
| |
* | Fix Clang -Wbitwise-instead-of-logical warningsBrad King2021-10-131-4/+9
|/
* Source: Fix clang -Wextra-semi warningsSean McBride2021-09-281-3/+3
|
* clang-analyzer: Suppress warnings in intentional use-after-move casesBrad King2021-06-032-0/+6
|
* Tests: Fix typos and spelling in test error messageJosef Angstenberger2021-05-071-1/+1
|
* clang-tidy: fix `readability-make-member-function-const` warningsBen Boeckel2021-01-271-1/+1
|
* Utilities/Sphinx: Add role and directive for 'genex' in CMake domainBrad King2021-01-182-0/+28
| | | | | | | | | | | | | | | | | This enables cross-reference syntax for CMake generator expressions: :genex:`SOME_GENEX` :genex:`$<SOME_GENEX>` :genex:`$<SOME_GENEX:...>` and definition of CMake generator expressions via a directive: .. genex:: SOME_GENEX .. genex:: $<SOME_GENEX> .. genex:: $<SOME_GENEX:...> It also adds generator expressions defined by the directive and by `Help/genex/SOME_GENEX.rst` documents to the index.
* cmRST: Add support for 'envvar' directiveBrad King2021-01-182-0/+16
| | | | | | This was accidentally left out of commit 8acf46caf1 (Utilities/Sphinx: Add role and directive for 'envvar' in CMake domain, 2018-04-19, v3.12.0-rc1~200^2~1).
* Code style: add missed explicit 'this->'Oleksandr Koval2021-01-052-27/+27
| | | | | CMake uses explicit 'this->' style. Using custom clang-tidy check we can detect and fix places where 'this->' was missed.
* test/CMakeLib: make testUVProcessChain work with qemuEicke Herbertz2020-10-291-0/+4
| | | | | | | | | When building and testing CMake in a container with qemu user mode emulation, the expected termination with std::abort() in testUVProcessChainHelper leads qemu to emit an additional message about an uncaught signal. There appears to be no way to make qemu shut up, so any qemu message will be removed from the output during validation.
* cm::optional: Fix move assignmentKyle Edwards2020-10-211-0/+28
|
* cmGccDepfileReader: Rework helper codeKyle Edwards2020-10-136-5/+35
| | | | | Fix some of the semantics of the depfile, add error handling, and refactor cmGccDepfileLexerHelper.
* IWYU: Map <*> headers to <cm/*> headersKyle Edwards2020-10-081-1/+0
| | | | | For headers which exclusively contain things that were not present in C++11.
* cmJSONHelpers: Add new Bind() functionKyle Edwards2020-10-051-12/+23
|
* cmake_path: enhancementsMarc Chevrier2020-09-201-0/+3
| | | | | * Fix error on parsing "c:a" (root-name without root-directory) * Enrich documentation
* JSON: Add helpersKyle Edwards2020-09-092-0/+494
|
* Merge topic 'cmstrlen'Kyle Edwards2020-09-091-0/+10
|\ | | | | | | | | | | | | 0c9cdf30ed cmStringAlgorithms: Add cmStrLen() Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5201
| * cmStringAlgorithms: Add cmStrLen()Kyle Edwards2020-09-081-0/+10
| |
* | cm::optional: Add comparison operatorsKyle Edwards2020-09-071-0/+158
| |
* | Refactor: Add ASSERT_TRUE() macro to testOptional.cxxKyle Edwards2020-09-061-118/+39
|/
* Tests: Fix -Wsuggest-destructor-override warning in testCMExtMemoryBrad King2020-07-281-1/+1
|
* Fix typos identified using codespellJean-Christophe Fillion-Robin2020-07-222-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | See https://github.com/codespell-project/codespell#readme The following command was used: ``` codespell -q6 --skip="\ .git,\ *.json,\ ./Copyright.txt,\ ./Help/command/foreach.rst,\ ./Help/prop_test/REQUIRED_FILES.rst,\ ./Help/variable/CTEST_COVERAGE_COMMAND.rst,\ ./Modules/CMakeCheckCompilerFlagCommonPatterns.cmake,\ ./Modules/CMakeRCInformation.cmake,\ ./Modules/Internal/CPack/NSIS.template.in,\ ./Modules/FindMatlab.cmake,\ ./Modules/MatlabTestsRedirect.cmake,\ ./Modules/Platform/Windows-Clang.cmake,\ ./Modules/Platform/Windows-Intel-Fortran.cmake,\ ./Modules/Platform/Windows-MSVC.cmake,\ ./Source/CMakeVersion.cmake,\ ./Source/cmConvertMSBuildXMLToJSON.py,\ ./Source/cmCreateTestSourceList.cxx,\ ./Source/cmGlobalVisualStudio10Generator.cxx,\ ./Source/cmExportBuildFileGenerator.cxx,\ ./Source/cmExportInstallAndroidMKGenerator.cxx,\ ./Source/cmExportInstallFileGenerator.cxx,\ ./Source/cmExportSet.cxx,\ ./Source/cmExportTryCompileFileGenerator.cxx,\ ./Source/cmFindPackageCommand.cxx,\ ./Source/cmInstallCommand.cxx,\ ./Source/cmGeneratorExpressionLexer.cxx,\ ./Source/cmLocalVisualStudio7Generator.cxx,\ ./Source/cmOrderDirectories.cxx,\ ./Source/cmTarget.cxx,\ ./Source/kwsys/*,\ ./Source/QtDialog/CMakeSetupDialog.ui,\ ./Source/CPack/WiX/cmWIXRichTextFormatWriter.cxx,\ ./Source/CTest/cmParseCoberturaCoverage.h,\ ./Tests/CMakeTests/ImplicitLinkInfoTest.cmake.in,\ ./Tests/RunCMake/CPack/tests/DMG_SLA/English.license.rtf,\ ./Tests/RunCMake/CPack/tests/DMG_SLA/German.license.txt,\ ./Tests/RunCMake/CPack/tests/DMG_SLA/German.menu.txt,\ ./Tests/RunCMake/GoogleTest/xml_output.cpp,\ ./Tests/RunCMake/Make/TargetMessages*,\ ./Utilities/*,\ " \ -L "\ dependees,\ endwhile,\ fo,\ filetest,\ helpfull,\ nd,\ objext,\ stoll,\ supercedes,\ superceded,\ vas,\ varn,\ " ```
* Merge topic 'stl-support-filesystem-path'Brad King2020-07-132-0/+1009
|\ | | | | | | | | | | | | | | | | d654bf3449 STL Support: Add cm::filesystem::path in <cm/filesystem> e5798126fc STL Support: introduce dedicated configuration file 4408f34cfe STL Support: Add function cm::quoted in <cm/iomanip> Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4968
| * STL Support: Add cm::filesystem::path in <cm/filesystem>Marc Chevrier2020-07-092-0/+1009
| |
* | Tests: Add cases for CTest cuda-memcheck parserTobias Ribizel2020-07-092-2/+35
|/
* Refactoring: Third-parties public headers are under cm3p prefixMarc Chevrier2020-05-073-4/+3
| | | | Fixes: #20666