mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-28 04:35:09 +00:00
clang-format all files
This commit is contained in:
parent
d1fc8d5f71
commit
fc99d6c7af
13 changed files with 30 additions and 28 deletions
|
@ -264,7 +264,8 @@ int builtin_complete(parser_t &parser, io_streams_t &streams, wchar_t **argv) {
|
|||
}
|
||||
|
||||
if (result_mode.no_files && result_mode.force_files) {
|
||||
streams.err.append_format(BUILTIN_ERR_COMBO2, L"complete", L"'--no-files' and '--force-files'");
|
||||
streams.err.append_format(BUILTIN_ERR_COMBO2, L"complete",
|
||||
L"'--no-files' and '--force-files'");
|
||||
return STATUS_INVALID_ARGS;
|
||||
}
|
||||
|
||||
|
|
|
@ -248,7 +248,8 @@ static wcstring encode_serialized(const wcstring_list_t &vals) {
|
|||
return join_strings(vals, UVAR_ARRAY_SEP);
|
||||
}
|
||||
|
||||
env_universal_t::env_universal_t(wcstring path) : narrow_vars_path(wcs2string(path)), explicit_vars_path(std::move(path)) {}
|
||||
env_universal_t::env_universal_t(wcstring path)
|
||||
: narrow_vars_path(wcs2string(path)), explicit_vars_path(std::move(path)) {}
|
||||
|
||||
maybe_t<env_var_t> env_universal_t::get(const wcstring &name) const {
|
||||
var_table_t::const_iterator where = vars.find(name);
|
||||
|
|
|
@ -49,7 +49,6 @@ class env_universal_t {
|
|||
// Path that we save to. If empty, use the default.
|
||||
wcstring explicit_vars_path;
|
||||
|
||||
|
||||
// Whether it's OK to save. This may be set to false if we discover that a future version of
|
||||
// fish wrote the uvars contents.
|
||||
bool ok_to_save{true};
|
||||
|
|
|
@ -1584,7 +1584,10 @@ struct pwd_environment_t : public environment_t {
|
|||
return {};
|
||||
}
|
||||
|
||||
wcstring_list_t get_names(int flags) const override { UNUSED(flags); return {L"PWD"}; }
|
||||
wcstring_list_t get_names(int flags) const override {
|
||||
UNUSED(flags);
|
||||
return {L"PWD"};
|
||||
}
|
||||
};
|
||||
|
||||
/// Perform parameter expansion and test if the output equals the zero-terminated parameter list
|
||||
|
|
|
@ -73,9 +73,7 @@ enum class readline_cmd_t {
|
|||
};
|
||||
|
||||
// The range of key codes for inputrc-style keyboard functions.
|
||||
enum {
|
||||
R_END_INPUT_FUNCTIONS = static_cast<int>(readline_cmd_t::reverse_repeat_jump) + 1
|
||||
};
|
||||
enum { R_END_INPUT_FUNCTIONS = static_cast<int>(readline_cmd_t::reverse_repeat_jump) + 1 };
|
||||
|
||||
/// Represents an event on the character input stream.
|
||||
enum class char_event_type_t : uint8_t {
|
||||
|
|
Loading…
Reference in a new issue