Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | cmCreateTestSourceList: Port away from cmCommand | Regina Pfeifer | 2019-09-12 | 1 | -22/+17 |
| | | | | Ref: #19499 | ||||
* | clang-tidy: modernize-use-auto | Regina Pfeifer | 2019-09-10 | 1 | -2/+2 |
| | | | | | | Set the MinTypeNameLength option to an impossibly high value in order to limit the diagnostics to iterators. Leave new expressions and cast expressions for later. | ||||
* | Source sweep: Use cmStrCat for string concatenation | Sebastian Holtermann | 2019-08-22 | 1 | -8/+5 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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)` | ||||
* | cmMakefile: Let AddDefinition accept a value as cm::string_view | Sebastian Holtermann | 2019-07-24 | 1 | -6/+5 |
| | | | | | | | | | | | | | | | | This changes `cmMakefile::AddDefinition` to take a `cm::string_view` as value argument instead of a `const char *`. Benefits are: - `std::string` can be passed to `cmMakefile::AddDefinition` directly without the `c_str()` plus string length recomputation fallback. - Lengths of literals passed to `cmMakefile::AddDefinition` can be computed at compile time. In various sources uses of `cmMakefile::AddDefinition` are adapted to avoid `std::string::c_str` calls and the `std::string` is passed directly. Uses of `cmMakefile::AddDefinition`, where a `nullptr` `const char*` might be passed to `cmMakefile::AddDefinition` are extended with `nullptr` checks. | ||||
* | cmMakefile::ConfigureFile: Accept `std::string` parameters | Vitaly Stakhovsky | 2019-02-19 | 1 | -2/+1 |
| | |||||
* | Fix several include-what-you-use findings | Daniel Pfeifer | 2016-11-08 | 1 | -0/+4 |
| | |||||
* | Include necessary headers in commands | Daniel Pfeifer | 2016-10-26 | 1 | -0/+1 |
| | |||||
* | Separate compilation for commands included in cmBootstrapCommands1 | Daniel Pfeifer | 2016-10-21 |