summaryrefslogtreecommitdiffstats
path: root/Tests/CMakeLib
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Merge topic 'stl-support'Brad King2020-05-012-4/+2
|\ | | | | | | | | | | | | 8d4a9ee398 Refactoring: rename "cm_static_string_view.hxx" as <cmext/string_view> Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4689
| * Refactoring: rename "cm_static_string_view.hxx" as <cmext/string_view>Marc Chevrier2020-04-302-4/+2
| |
* | IWYU: mark <cstddef> as neededBen Boeckel2020-04-291-1/+1
| | | | | | | | Newer IWYU is not seeing this as necessary for `_GLIBCXX_USE_CXX11_ABI`.
* | IWYU: mark <cstddef> as neededBen Boeckel2020-04-292-2/+2
|/ | | | Newer IWYU is not seeing them as needed for `size_t`.
* Merge topic 'automoc-using-depfiles'Brad King2020-01-308-0/+198
|\ | | | | | | | | | | | | | | | | | | aebfbcaa46 AutoGen: Use depfiles for the XXX_autogen ninja targets f765fdea03 AutoGen: Use moc's feature to output dependencies f8c505d4b3 Add a parser for GCC-style depfiles Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Jan Niklas Hasse <jhasse@bixense.com> Merge-request: !4221
| * Add a parser for GCC-style depfilesJoerg Bornemann2020-01-288-0/+198
| | | | | | | | | | | | | | | | | | | | | | Introduce the function cmReadGccDepfile that parses a GCC-style depfile and returns its content. The implementation uses a lexer that is modeled after the re2c implementation in Ninja. The sample files of the autotest have been created with gcc 8.3.0. This depfile reader is to be used by the Autogen facility to make use of the depfiles that are generated by Qt's meta object compiler.
* | Merge topic 'cmsting-stl-compatibility'Brad King2020-01-281-5/+5
|\ \ | |/ |/| | | | | | | | | 8f839d02e3 cm::String: enhance compatibility with STL Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4281
| * cm::String: enhance compatibility with STLMarc Chevrier2020-01-251-5/+5
| |
* | Stl support: cm::append now supports any sequential containerMarc Chevrier2020-01-241-0/+1
|/
* Merge topic 'ctest-resource-allocation-spec-message'Craig Scott2019-12-291-52/+70
|\ | | | | | | | | | | | | b393b32b4b CTest: Improve error handling when reading resource spec file Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4162
| * CTest: Improve error handling when reading resource spec fileKyle Edwards2019-12-271-52/+70
| | | | | | | | Fixes: #20079
* | Merge topic 'test-resource-spec-init-lists'Brad King2019-12-191-37/+36
|\ \ | |/ | | | | | | | | | | | | e8dbe4bba1 Tests: Fix testCTestResourceSpec struct initialization for some compilers Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Michael Dickens <michael.dickens@ettus.com> Merge-request: !4141
| * Tests: Fix testCTestResourceSpec struct initialization for some compilersMichael Dickens2019-12-181-37/+36
| | | | | | | | | | | | | | | | Some compilers do not like the nested `{{{}}}` member initialization syntax, so use just `{}`. GCC 4.8 warns about the latter, so add a suppression. Fixes: #20097
* | Refactoring: introduce header cmext/algorithm with append functionsMarc Chevrier2019-12-172-0/+118
| |
* | Merge topic 'cmext-memory'Brad King2019-12-042-0/+66
|\ \ | | | | | | | | | | | | | | | | | | fc3b4caa2e Memory management: cast functions for managed pointers Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4064
| * | Memory management: cast functions for managed pointersMarc Chevrier2019-11-272-0/+66
| | |
* | | Merge topic 'ctest-spec-file-version-test'Kyle Edwards2019-11-282-0/+5
|\ \ \ | |/ / |/| / | |/ | | | | | | 59df85194e CTest Resource Allocation: Add test for spec file with no version Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4092
| * CTest Resource Allocation: Add test for spec file with no versionKyle Edwards2019-11-262-0/+5
| |
* | Merge topic 'ctest-resource-fixes'Brad King2019-11-2635-0/+188
|\ \ | |/ | | | | | | | | | | | | | | a033bafbe0 Help: Clarify how tests are run if no resource spec file is specified a64ba0235f CTest: Clarify that resource requirements can be split f9f294f5fa CTest: Add version field to resource spec file Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4080
| * CTest: Clarify that resource requirements can be splitKyle Edwards2019-11-251-0/+3
| | | | | | | | | | | | | | Add a note to the documentation to clarify this, and add test cases to ensure it. Fixes: #19987
| * CTest: Add version field to resource spec fileKyle Edwards2019-11-2534-0/+185
| | | | | | | | Fixes: #20007
* | Merge topic 'fix-optional-test'Brad King2019-11-151-36/+48
|\ \ | |/ | | | | | | | | | | | | e8bd920df1 Tests: Fix reliance on undefined behavior of cm::optional Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Ben Boeckel <ben.boeckel@kitware.com> Merge-request: !4049