mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-02-07 15:05:16 +08:00
clang-tidy: use append
Found with performance-inefficient-string-concatenation Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
parent
334be56021
commit
cef84cf2c2
|
@ -147,7 +147,7 @@ maybe_t<int> builtin_type(parser_t &parser, io_streams_t &streams, wchar_t **arg
|
|||
int line_number = function_get_definition_lineno(name);
|
||||
wcstring comment;
|
||||
append_format(comment, L"# Defined in %ls @ line %d\n", path, line_number);
|
||||
def = comment + def;
|
||||
def = comment.append(def);
|
||||
}
|
||||
if (!streams.out_is_redirected && isatty(STDOUT_FILENO)) {
|
||||
std::vector<highlight_spec_t> colors;
|
||||
|
|
Loading…
Reference in New Issue
Block a user