summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Refactor: `cmGlobalGeneratorFactory::GetDocumentation` returns entryAlex Turbov2022-11-1728-124/+91
| | | | | | | | | | Before, a documentation entry was in/out parameter. Now it's a normal return value. This also makes possible to eliminate defaulted default ctor for `cmDocumentationEntry` for C++ 11. Also, simplify `cmake::AppendGlobalGeneratorsDocumentation()`.
* cmGlobalGeneratorFactory.h: Simplify returning default valuesAlex Turbov2022-11-171-7/+5
|
* cmake.cxx: Simplify `cmake::AppendExtraGeneratorsDocumentation()`Alex Turbov2022-11-171-12/+5
|
* cpack.cxx: Optimize calls to `std::osteam::operator<<`Alex Turbov2022-11-171-64/+53
|
* cpack.cxx: Eliminate redundant `if`Alex Turbov2022-11-171-5/+1
|
* cpack.cxx: Deduplicate "Generators" section creation codeAlex Turbov2022-11-171-21/+24
|
* cmake.cxx: Move `static` functions to an anonymous namespaceAlex Turbov2022-11-171-100/+97
|
* cmDocumentationEntry: Drop all user provided ctors for C++ >= 14Alex Turbov2022-11-178-34/+33
| | | | | | | | | | | There is no need for them cuz: - the last field has a default value - all static instances use 2 arguments convertible to `std::string` - "dynamic" instances used for _Generator_ doc entries access fields diectly using default constructed instance Moreover, compiler may generate move ctor/assign when needed.
* cmake.cxx: Optimize calls to `std::osteam::operator<<`Alex Turbov2022-11-171-28/+27
|
* cmDocumentationFormatter: Hide internal methods into `private` sectionAlex Turbov2022-11-171-4/+5
|
* cmDocumentation: Drop unused `SetSections` methodAlex Turbov2022-11-172-8/+0
|
* cmDocumentation: `char*[][2]` → `cmDocumentationEntry[N]`Alex Turbov2022-11-1713-161/+87
| | | | | | | | | | Use fixed size arrays of `cmDocumentationEntry` items instead of open arrays of two `char` pointers when describe program options help screens. Also, drop `const char*[][2]` overloads of methods of `cmDocumentation` and `cmDocumentationSection` classes in the sake of generic (template) appenders introduced earlier.
* CMakeSetup.cxx: Use anonymous namespace instead of `static`Alex Turbov2022-11-171-5/+9
|
* ccmake.cxx: Use anonymous namespace instead of `static`Alex Turbov2022-11-171-10/+10
|
* ctest.cxx: Eliminate redundand trenary operatorAlex Turbov2022-11-173-3/+3
|
* ctest.cxx: Optimize `std::ostream::operator<<` callsAlex Turbov2022-11-171-6/+4
|
* ctest.cxx: Use anonymous namespace instead of `static` arraysAlex Turbov2022-11-171-5/+6
|
* cmakemain.cxx: Remove always true preprocessor `#if` blockAlex Turbov2022-11-171-2/+0
|
* cmDocumentation: Accept `Iterable` instead of `vector` on add entriesAlex Turbov2022-11-172-26/+18
|
* cmDocumentationSection: Accept `Iterable` instead of `vector` on addAlex Turbov2022-11-171-7/+11
|
* cmDocumentationFormatter: Improve `PrintFormatted`Alex Turbov2022-11-171-34/+54
| | | | Instead of one char at time copy (append), use lines.
* cmDocumentationFormatter: All printing methods accept stringsAlex Turbov2022-11-173-13/+14
|
* cmDocumentationFormatter: Turn `while ()` into `for ()` loopAlex Turbov2022-11-171-15/+23
|
* cmDocumentationFormatter: Eliminate one `if` in the `PrintColumn` loopAlex Turbov2022-11-171-7/+2
|
* cmDocumentationFormatter: Turn `TextWidth` member into `size_t`Alex Turbov2022-11-172-8/+10
| | | | Cuz normally required text width can't be negative. It was `int`…
* cmDocumentationFormatter: Prevent indentation reset side effectAlex Turbov2022-11-171-2/+7
| | | | | Fix `cmDocumentationFormatter::PrintColumn()` method to eliminate an indentation reset side effect.
* cmDocumentation: Drop useless call to formatter's `SetIndent()`Alex Turbov2022-11-171-1/+0
| | | | | The `cmDocumentationFormatter::PrintSection()` method ignores the currently set indentation level and use it's own.
* cmDocumentationFormatter: Turn `TextIndent` member into `size_t`Alex Turbov2022-11-174-27/+33
| | | | … instead of `std::string`.
* cmDocumentationFormatter: Use `std::ostream` padding capabitilyAlex Turbov2022-11-171-7/+6
| | | | … instead of manually print spaces to align fields.
* cmDocumentationFormatter: `TextIndent` member is `std::string` nowAlex Turbov2022-11-172-20/+17
| | | | Was `const char*`.
* cmDocumentationFormatter: `PrintPreformatted` accept stringAlex Turbov2022-11-172-14/+16
| | | | Also, make it `const` method cuz it's not modify the state.
* cmDocumentationFormatter.h: No need `virtual` methodsAlex Turbov2022-11-172-11/+3
| | | | | Can be added later it really need. Also, drop ctor/dtor to make the class trivially destructable.
* cmDocumentationEntry.h: Drop unused constructorAlex Turbov2022-11-171-9/+0
|
* cmDocumentation: Optimize `std::ostream::operator<<()` callsAlex Turbov2022-11-172-19/+19
|
* cmDocumentation.cxx: Use lambda function instead of macroAlex Turbov2022-11-172-46/+41
|
* cmDocumentation.cxx: Use anonymous namespace instead of `static`Alex Turbov2022-11-161-3/+5
|
* cmDocumentation: Remove MSVC 6 workaroundAlex Turbov2022-11-162-36/+26
|
* Merge branch 'release-3.25'Brad King2022-11-160-0/+0
|\
| * Merge topic 'qtifw-4.5' into release-3.25Brad King2022-11-161-0/+2
| |\ | | | | | | | | | | | | | | | | | | 351239b776 CPack/IFW: Add support for QtIFW 4.5 Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7920
* | \ Merge topic 'qtifw-4.5'Brad King2022-11-161-0/+2
|\ \ \ | | |/ | |/| | | | | | | | | | | | | 351239b776 CPack/IFW: Add support for QtIFW 4.5 Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7920
| * | CPack/IFW: Add support for QtIFW 4.5Erlend E. Aasland2022-11-151-0/+2
| | | | | | | | | | | | Fixes: #24164
* | | Merge branch 'release-3.25'Brad King2022-11-160-0/+0
|\ \ \ | | |/ | |/|
| * | Merge topic 'cmp0141-pch-reuse' into release-3.25Brad King2022-11-163-2/+11
| |\ \ | | |/ | |/| | | | | | | | | | | | | 94164ea55e CMP0141: Fix PCH REUSE_FROM when MSVC_DEBUG_INFORMATION_FORMAT is empty Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7914
* | | Merge topic 'cmp0141-pch-reuse'Brad King2022-11-163-2/+11
|\ \ \ | | |/ | |/| | | | | | | | | | | | | 94164ea55e CMP0141: Fix PCH REUSE_FROM when MSVC_DEBUG_INFORMATION_FORMAT is empty Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7914
| * | CMP0141: Fix PCH REUSE_FROM when MSVC_DEBUG_INFORMATION_FORMAT is emptyBrad King2022-11-153-2/+11
| |/ | | | | | | | | | | | | | | | | | | | | | | Under the policy's NEW behavior, `[CMAKE_]MSVC_DEBUG_INFORMATION_FORMAT` may be explicitly set to an empty string to tell CMake not to add any flags for this abstraction. In this case, fall back to checking the language-wide flags as we do in the OLD behavior. This revises commit 183b9a9eca (CMP0141: Fix PCH REUSE_FROM under policy NEW behavior, 2022-10-31, v3.25.0-rc3~4^2). Issue: #24106
* | CMake Nightly Date StampKitware Robot2022-11-161-1/+1
| |
* | Merge topic 'ci-continuous'Brad King2022-11-151-0/+3
|\ \ | | | | | | | | | | | | | | | | | | 6cf026ab06 ci: add macos-x86_64-ninja build and test jobs to continuous pipeline Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7915
| * | ci: add macos-x86_64-ninja build and test jobs to continuous pipelineBrad King2022-11-151-0/+3
|/ /
* | Merge topic 'ci-openmp-macos'Brad King2022-11-1510-1/+49
|\ \ | | | | | | | | | | | | | | | | | | 7ef3638454 ci: Enable FindOpenMP tests on macOS Ninja and Makefiles jobs Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7912
| * | ci: Enable FindOpenMP tests on macOS Ninja and Makefiles jobsBrad King2022-11-1410-1/+49
| | | | | | | | | | | | | | | Since Apple does not distribute the OpenMP header and library with its AppleClang compiler, download them as part of the jobs.