From 468f0051f0c8fd469116172b54c774f67f0b8736 Mon Sep 17 00:00:00 2001 From: Nikita Lutsenko Date: Fri, 6 Sep 2024 15:20:09 -0700 Subject: [PATCH] hermes | Remove extra unneeded semicolons. Summary: Removing extra semicolons, nothing more. Trying to enable extra-semi warning in clang for code that depends on Hermes. Reviewed By: justinvjoseph Differential Revision: D62305863 fbshipit-source-id: d3110fc48110851b4d43cef59a6dfb14ca0bd399 --- public/hermes/Public/CtorConfig.h | 2 +- public/hermes/Public/GCConfig.h | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/public/hermes/Public/CtorConfig.h b/public/hermes/Public/CtorConfig.h index 80924a48e1a..aff3f3989cb 100644 --- a/public/hermes/Public/CtorConfig.h +++ b/public/hermes/Public/CtorConfig.h @@ -69,7 +69,7 @@ public: \ Builder() = default; \ \ - explicit Builder(const NAME &config) : config_(config){}; \ + explicit Builder(const NAME &config) : config_(config) {} \ \ inline const NAME build() { \ config_.doBuild(*this); \ diff --git a/public/hermes/Public/GCConfig.h b/public/hermes/Public/GCConfig.h index b7af5b664f6..8d3f316f74d 100644 --- a/public/hermes/Public/GCConfig.h +++ b/public/hermes/Public/GCConfig.h @@ -110,7 +110,7 @@ struct GCAnalyticsEvent { nullptr) \ /* GC_TRIPWIRE_FIELDS END */ -_HERMES_CTORCONFIG_STRUCT(GCTripwireConfig, GC_TRIPWIRE_FIELDS, {}); +_HERMES_CTORCONFIG_STRUCT(GCTripwireConfig, GC_TRIPWIRE_FIELDS, {}) #undef HEAP_TRIPWIRE_FIELDS @@ -124,7 +124,7 @@ _HERMES_CTORCONFIG_STRUCT(GCTripwireConfig, GC_TRIPWIRE_FIELDS, {}); F(constexpr, int64_t, RandomSeed, -1) \ /* GC_HANDLESAN_FIELDS END */ -_HERMES_CTORCONFIG_STRUCT(GCSanitizeConfig, GC_HANDLESAN_FIELDS, {}); +_HERMES_CTORCONFIG_STRUCT(GCSanitizeConfig, GC_HANDLESAN_FIELDS, {}) #undef GC_HANDLESAN_FIELDS @@ -221,7 +221,7 @@ _HERMES_CTORCONFIG_STRUCT(GCConfig, GC_FIELDS, { // Make sure the max is at least the Init. MaxHeapSize_ = std::max(InitHeapSize_, MaxHeapSize_); -}); +}) #undef GC_FIELDS