Fix formatting.

This commit is contained in:
levlam 2022-04-04 16:48:53 +03:00
parent 7d3f0cb37f
commit 6d17d58307
10 changed files with 20 additions and 19 deletions

View File

@ -302,8 +302,8 @@ class TlWriterCCommon final : public tl::TL_writer {
class_name + ", struct TdVector" + class_name + " *);\n"; class_name + ", struct TdVector" + class_name + " *);\n";
} }
std::string gen_class_begin(const std::string &class_name, const std::string &base_class_name, std::string gen_class_begin(const std::string &class_name, const std::string &base_class_name, bool is_proxy,
bool is_proxy, const tl::tl_tree *result) const final { const tl::tl_tree *result) const final {
if (is_header_ != 1 || class_name == "") { if (is_header_ != 1 || class_name == "") {
return ""; return "";
} }

View File

@ -46,8 +46,8 @@ class TD_TL_writer_cpp : public TD_TL_writer {
std::string gen_forward_class_declaration(const std::string &class_name, bool is_proxy) const override; std::string gen_forward_class_declaration(const std::string &class_name, bool is_proxy) const override;
std::string gen_class_begin(const std::string &class_name, const std::string &base_class_name, std::string gen_class_begin(const std::string &class_name, const std::string &base_class_name, bool is_proxy,
bool is_proxy, const tl::tl_tree *result) const override; const tl::tl_tree *result) const override;
std::string gen_class_end() const override; std::string gen_class_end() const override;
std::string gen_class_alias(const std::string &class_name, const std::string &alias_name) const override; std::string gen_class_alias(const std::string &class_name, const std::string &alias_name) const override;

View File

@ -200,8 +200,8 @@ class TlWriterDotNet final : public TL_writer {
return ss.str(); return ss.str();
} }
std::string gen_class_begin(const std::string &class_name, const std::string &base_class_name, std::string gen_class_begin(const std::string &class_name, const std::string &base_class_name, bool is_proxy,
bool is_proxy, const tl::tl_tree *result) const final { const tl::tl_tree *result) const final {
if (!is_header_) { if (!is_header_) {
return ""; return "";
} }

View File

@ -33,8 +33,8 @@ class TD_TL_writer_h : public TD_TL_writer {
std::string gen_forward_class_declaration(const std::string &class_name, bool is_proxy) const override; std::string gen_forward_class_declaration(const std::string &class_name, bool is_proxy) const override;
std::string gen_class_begin(const std::string &class_name, const std::string &base_class_name, std::string gen_class_begin(const std::string &class_name, const std::string &base_class_name, bool is_proxy,
bool is_proxy, const tl::tl_tree *result) const override; const tl::tl_tree *result) const override;
std::string gen_class_end() const override; std::string gen_class_end() const override;
std::string gen_class_alias(const std::string &class_name, const std::string &alias_name) const override; std::string gen_class_alias(const std::string &class_name, const std::string &alias_name) const override;

View File

@ -33,8 +33,8 @@ class TD_TL_writer_hpp final : public TD_TL_writer {
std::string gen_forward_class_declaration(const std::string &class_name, bool is_proxy) const final; std::string gen_forward_class_declaration(const std::string &class_name, bool is_proxy) const final;
std::string gen_class_begin(const std::string &class_name, const std::string &base_class_name, std::string gen_class_begin(const std::string &class_name, const std::string &base_class_name, bool is_proxy,
bool is_proxy, const tl::tl_tree *result) const final; const tl::tl_tree *result) const final;
std::string gen_class_end() const final; std::string gen_class_end() const final;
std::string gen_class_alias(const std::string &class_name, const std::string &alias_name) const final; std::string gen_class_alias(const std::string &class_name, const std::string &alias_name) const final;

View File

@ -58,8 +58,8 @@ class TD_TL_writer_java final : public tl::TL_writer {
std::string gen_forward_class_declaration(const std::string &class_name, bool is_proxy) const final; std::string gen_forward_class_declaration(const std::string &class_name, bool is_proxy) const final;
std::string gen_class_begin(const std::string &class_name, const std::string &base_class_name, std::string gen_class_begin(const std::string &class_name, const std::string &base_class_name, bool is_proxy,
bool is_proxy, const tl::tl_tree *result) const final; const tl::tl_tree *result) const final;
std::string gen_class_end() const final; std::string gen_class_end() const final;
std::string gen_class_alias(const std::string &class_name, const std::string &alias_name) const final; std::string gen_class_alias(const std::string &class_name, const std::string &alias_name) const final;

View File

@ -54,8 +54,8 @@ class TD_TL_writer_jni_cpp final : public TD_TL_writer_cpp {
std::string gen_base_type_class_name(int arity) const final; std::string gen_base_type_class_name(int arity) const final;
std::string gen_base_tl_class_name() const final; std::string gen_base_tl_class_name() const final;
std::string gen_class_begin(const std::string &class_name, const std::string &base_class_name, std::string gen_class_begin(const std::string &class_name, const std::string &base_class_name, bool is_proxy,
bool is_proxy, const tl::tl_tree *result) const final; const tl::tl_tree *result) const final;
std::string gen_field_definition(const std::string &class_name, const std::string &type_name, std::string gen_field_definition(const std::string &class_name, const std::string &type_name,
const std::string &field_name) const final; const std::string &field_name) const final;

View File

@ -34,8 +34,8 @@ class TD_TL_writer_jni_h final : public TD_TL_writer_h {
std::string gen_output_begin() const final; std::string gen_output_begin() const final;
std::string gen_class_begin(const std::string &class_name, const std::string &base_class_name, std::string gen_class_begin(const std::string &class_name, const std::string &base_class_name, bool is_proxy,
bool is_proxy, const tl::tl_tree *result) const final; const tl::tl_tree *result) const final;
std::string gen_field_definition(const std::string &class_name, const std::string &type_name, std::string gen_field_definition(const std::string &class_name, const std::string &type_name,
const std::string &field_name) const final; const std::string &field_name) const final;

View File

@ -303,7 +303,8 @@ void Scheduler::register_migrated_actor(ActorInfo *actor_info) {
<< tag("actor_count", actor_count_); << tag("actor_count", actor_count_);
actor_count_++; actor_count_++;
LOG_CHECK(actor_info->is_migrating()) << *actor_info << ' ' << actor_count_ << ' ' << sched_id_ << ' ' LOG_CHECK(actor_info->is_migrating()) << *actor_info << ' ' << actor_count_ << ' ' << sched_id_ << ' '
<< actor_info->migrate_dest() << ' ' << actor_info->is_running() << ' ' << close_flag_; << actor_info->migrate_dest() << ' ' << actor_info->is_running() << ' '
<< close_flag_;
CHECK(sched_id_ == actor_info->migrate_dest()); CHECK(sched_id_ == actor_info->migrate_dest());
// CHECK(!actor_info->is_running()); // CHECK(!actor_info->is_running());
actor_info->finish_migrate(); actor_info->finish_migrate();

View File

@ -88,8 +88,8 @@ class TL_writer {
virtual std::string gen_forward_class_declaration(const std::string &class_name, bool is_proxy) const = 0; virtual std::string gen_forward_class_declaration(const std::string &class_name, bool is_proxy) const = 0;
virtual std::string gen_class_begin(const std::string &class_name, const std::string &base_class_name, virtual std::string gen_class_begin(const std::string &class_name, const std::string &base_class_name, bool is_proxy,
bool is_proxy, const tl_tree *result) const = 0; const tl_tree *result) const = 0;
virtual std::string gen_class_end() const = 0; virtual std::string gen_class_end() const = 0;
virtual std::string gen_class_alias(const std::string &class_name, const std::string &alias_name) const = 0; virtual std::string gen_class_alias(const std::string &class_name, const std::string &alias_name) const = 0;