summaryrefslogtreecommitdiffstats
path: root/Source/cmFileCopier.cxx
Commit message (Collapse)AuthorAgeFilesLines
* Source sweep: Use cmStrCat for string concatenationSebastian Holtermann2019-08-221-13/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 'install-fail-reason'Brad King2019-08-211-8/+13
|\ | | | | | | | | | | | | | | 891e670e59 install: print reason of failure Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Alex Turbov <i.zaufi@gmail.com> Merge-request: !3696
| * install: print reason of failureJon Chronopoulos2019-08-171-8/+13
| | | | | | | | Fixes: #19430
* | Source code: Use cmExpandList instead of cmSystemTools::ExpandListArgumentSebastian Holtermann2019-08-141-1/+1
|/
* Merge topic 'cmFileCommand-refactoring'Brad King2019-08-091-23/+23
|\ | | | | | | | | | | | | | | | | | | | | a7a5f376bc cmFileCommand: Use cmSubcommandTable b66b7464ab Introduce cmSubcommandTable 2b785875fb cmFileCommand: turn into free function 9703c65718 cmFileCommand: put subcommands in unnamed namespace 64f987c174 cmFileCommand: port to cmExecutionStatus Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3657
| * cmFileCommand: port to cmExecutionStatusDaniel Pfeifer2019-08-061-23/+23
| |
* | clang-tidy: Enable performance-inefficient-string-concatenationSebastian Holtermann2019-08-051-2/+3
|/ | | | | | | Enables the clang-tidy test performance-inefficient-string-concatenation and replaces all inefficient string concatenations with `cmStrCat`. Closes: #19555
* cmCommand: deprecate functions GetMakefile and SetErrorDaniel Pfeifer2019-07-211-5/+2
| | | | | | | | | Replace the members for the Makefile and the Error with a cmExecutionStatus. Re-implement GetMakefile and SetError based on that. Both functions should be called directly on the cmExecutionStatus that is passed to InitialPass. This will help us make all Commands immutable and remove the need for cloning.
* Use cmFileTimes instead of cmSystemToolsFileTime interfaceSebastian Holtermann2019-05-221-14/+10
|
* file(INSTALL): Add FOLLOW_SYMLINK_CHAIN argumentKyle Edwards2019-05-161-7/+64
|
* Rename cmFileTimeCache::FileTimesDiffer to cmFileTimeCache::DifferSSebastian Holtermann2019-03-181-1/+1
|
* cmFileCommand: Factor out cmFileCopier and cmFileInstallerBryon Bean2019-03-131-0/+660
Split these classes out into their own sources.