private:
Context& m_ctx;
- Result::FileType m_dest_file_type;
+ Result::FileType m_dest_file_type{};
Fd m_dest_fd;
std::string m_dest_path;
// Some arguments that clang passes directly to cc1 (related to precompiled
// headers) need the usual ccache handling. In those cases, the -Xclang
// prefix is skipped and the cc1 argument is handled instead.
- if (args[i] == "-Xclang" && i < args.size() - 1
+ if (args[i] == "-Xclang" && i + 1 < args.size()
&& (args[i + 1] == "-emit-pch" || args[i + 1] == "-emit-pth"
|| args[i + 1] == "-include-pch" || args[i + 1] == "-include-pth"
|| args[i + 1] == "-fno-pch-timestamp")) {
// In the "-Xclang -fcolor-diagnostics" form, -Xclang is skipped and the
// -fcolor-diagnostics argument which is passed to cc1 is handled below.
- if (args[i] == "-Xclang" && i < args.size() - 1
+ if (args[i] == "-Xclang" && i + 1 < args.size()
&& args[i + 1] == "-fcolor-diagnostics") {
state.compiler_only_args_no_hash.push_back(args[i]);
++i;
const auto password_username_pair = split_user_info(url.user_info());
const auto& password = password_username_pair.first;
if (password) {
- decltype(redis_command("")) reply = nonstd::make_unexpected(Failure::error);
const auto& username = password_username_pair.second;
if (username) {
LOG("Redis AUTH {} {}", *username, k_redacted_password);
- reply = util::value_or_throw<Failed>(
+ util::value_or_throw<Failed>(
redis_command("AUTH %s %s", username->c_str(), password->c_str()));
} else {
LOG("Redis AUTH {}", k_redacted_password);
- reply = util::value_or_throw<Failed>(
- redis_command("AUTH %s", password->c_str()));
+ util::value_or_throw<Failed>(redis_command("AUTH %s", password->c_str()));
}
}
}