summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Source sweep: Use cmStrCat for string concatenationSebastian Holtermann2019-08-22175-2949/+1960
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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)`
* Merge topic 'cmCommand_refactor'Brad King2019-08-2270-2042/+1568
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | 6ab28b9413 cmCommand refactor: cmStringCommand 36f32d3604 cmCommand refactor: cmSetPropertyCommand 7c83c19205 cmCommand refactor: cmSetDirectoryPropertiesCommand 9413952c42 cmCommand refactor: cmCMakePolicyCommand 07ea93de54 cmCommand refactor: cmWriteFileCommand ca3b9186bb cmCommand refactor: cmVariableWatchCommand b1acc711f4 cmCommand refactor: cmRemoveCommand 413a960391 cmCommand refactor: cmCMakeHostSystemInformationCommand ... Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3673
| * cmCommand refactor: cmStringCommandGabor Bencze2019-08-203-221/+241
| |
| * cmCommand refactor: cmSetPropertyCommandGabor Bencze2019-08-203-198/+256
| |
| * cmCommand refactor: cmSetDirectoryPropertiesCommandGabor Bencze2019-08-203-40/+21
| |
| * cmCommand refactor: cmCMakePolicyCommandGabor Bencze2019-08-204-77/+66
| |
| * cmCommand refactor: cmWriteFileCommandGabor Bencze2019-08-203-33/+11
| |
| * cmCommand refactor: cmVariableWatchCommandGabor Bencze2019-08-203-31/+12
| |
| * cmCommand refactor: cmRemoveCommandGabor Bencze2019-08-203-30/+9
| |
| * cmCommand refactor: cmCMakeHostSystemInformationCommandGabor Bencze2019-08-203-82/+57
| |
| * cmCommand refactor: cmUnsetCommandGabor Bencze2019-08-203-33/+12
| |
| * cmCommand refactor: cmSiteNameCommandGabor Bencze2019-08-203-32/+11
| |
| * cmCommand refactor: cmSetCommandGabor Bencze2019-08-203-39/+18
| |
| * cmCommand refactor: cmSeparateArgumentsCommandGabor Bencze2019-08-203-34/+12
| |
| * cmCommand refactor: cmParseArgumentsCommandGabor Bencze2019-08-203-47/+24
| |
| * cmCommand refactor: cmOptionCommandGabor Bencze2019-08-203-38/+17
| |
| * cmCommand refactor: CmMessageCommandGabor Bencze2019-08-203-40/+20
| |
| * cmCommand refactor: cmMathCommandGabor Bencze2019-08-203-41/+25
| |
| * cmCommand refactor: cmMarkAsAdvancedCommandGabor Bencze2019-08-203-32/+10
| |
| * cmCommand refactor: cmMakeDirectoryCommandGabor Bencze2019-08-203-32/+10
| |
| * cmCommand refactor: cmListCommandGabor Bencze2019-08-203-224/+244
| |
| * cmCommand refactor: cmMacroCommandGabor Bencze2019-08-203-27/+10
| |
| * cmCommand refactor: cmIncludeGuardCommandGabor Bencze2019-08-203-31/+10
| |
| * cmCommand refactor: cmIncludeCommandGabor Bencze2019-08-203-48/+29
| |
| * cmCommand_refactor: cmGetPropertyCommandGabor Bencze2019-08-203-162/+187
| |
| * cmCommand refactor: cmGetFilenameComponentCommandGabor Bencze2019-08-203-37/+16
| |
| * cmCommand refactor: cmGetDirectoryPropertyCommandGabor Bencze2019-08-203-42/+29
| |
| * cmCommand refactor: cmGetCMakePropertyCommandGabor Bencze2019-08-203-31/+12
| |
| * cmCommand refactor: cmFunctionCommandGabor Bencze2019-08-203-27/+10
| |
| * cmCommand refactor: cmForEachCommandGabor Bencze2019-08-203-39/+21
| |
| * cmCommand refactor: cmExecuteProcessCommandGabor Bencze2019-08-203-61/+46
| |
| * cmCommand refactor: cmExecProgramCommandGabor Bencze2019-08-203-47/+25
| |
| * cmCommand refactor: cmContinueCommandGabor Bencze2019-08-203-33/+15
| |
| * cmCommand refactor: cmConfigureFileCommandGabor Bencze2019-08-203-73/+37
| |
| * cmCommand refactor: cmCMakeMinimumRequiredGabor Bencze2019-08-203-49/+34
| |
| * cmCommand refactor: cmBreakCommandGabor Bencze2019-08-203-31/+11
| |
* | Merge topic 'isolate-declarations'Brad King2019-08-2226-49/+102
|\ \ | | | | | | | | | | | | | | | | | | d331021255 clang-tidy: isolate declarations for readability Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3704
| * | clang-tidy: isolate declarations for readabilityRegina Pfeifer2019-08-2026-49/+102
| |/
* | Merge topic 'FindBoost-clarify-header-only'Brad King2019-08-221-1/+2
|\ \ | | | | | | | | | | | | | | | | | | 0148f1a867 FindBoost: Add note about header-only libs in warning msg Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3712
| * | FindBoost: Add note about header-only libs in warning msgDennis Klein2019-08-201-1/+2
| |/
* | CMake Nightly Date StampKitware Robot2019-08-221-1/+1
| |
* | Merge topic 'FindBZip2-windows-lib-names'Brad King2019-08-211-2/+2
|\ \ | | | | | | | | | | | | | | | | | | 5edceff308 FindBZip2: Add Windows library names emitted from bzip2 1.0.6 makefile Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3711
| * | FindBZip2: Add Windows library names emitted from bzip2 1.0.6 makefileBraden McDaniel2019-08-211-2/+2
| |/ | | | | | | | | As of release 1.0.6, the bzip2 distribution includs a makefile for nmake on Windows that emits library names of the form `libbz2.lib`.
* | Merge topic 'source_group-tests'Brad King2019-08-219-26/+93
|\ \ | | | | | | | | | | | | | | | | | | bb6e95ca6d source_group: Improved generated filters tests Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3675
| * | source_group: Improved generated filters testsMateusz Janek2019-08-169-26/+93
| | |
* | | Merge topic 'double-export-error-message-install'Brad King2019-08-216-20/+35
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | d17580909f cmExportInstallFileGenerator: improve error message a18100898a cmInstallExportGenerator: add a method for the file destination Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3703
| * | | cmExportInstallFileGenerator: improve error messageBen Boeckel2019-08-204-20/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Following commit 49cfd390 (cmExportBuildFileGenerator: improve error message, 2019-06-26), improve the error message related to installed export sets by referencing the files which contain the exported target ambiguously.
| * | | cmInstallExportGenerator: add a method for the file destinationBen Boeckel2019-08-192-0/+6
| | | | | | | | | | | | | | | | | | | | This will be used in the error message which remarks about a target being exported ambiguously into different installations.
* | | | Merge topic 'shared-string'Brad King2019-08-216-28/+40
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | be7807478c cmDefinitions: Reduce allocation of keys and values in MakeClosure e07e2bc8bb bootstrap: Compile cm::String c1787cb5eb cpack.cxx: Re-order include blocks to follow our conventions 141e307484 cmConfigure.h: Tell windows.h not to define min/max macros Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3669
| * | | | cmDefinitions: Reduce allocation of keys and values in MakeClosureBrad King2019-08-203-14/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use `cm::String` to store keys and values so that `MakeClosure` does not need to allocate new copies of all of them. Issue: #19581