diff options
Diffstat (limited to 'chromium/v8/src/torque/utils.h')
| -rw-r--r-- | chromium/v8/src/torque/utils.h | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/chromium/v8/src/torque/utils.h b/chromium/v8/src/torque/utils.h index 689d242ab0d..52efe6564e7 100644 --- a/chromium/v8/src/torque/utils.h +++ b/chromium/v8/src/torque/utils.h @@ -47,6 +47,7 @@ std::string ToString(Args&&... args) { class V8_EXPORT_PRIVATE MessageBuilder { public: + MessageBuilder() = delete; MessageBuilder(const std::string& message, TorqueMessage::Kind kind); MessageBuilder& Position(SourcePosition position) { @@ -62,7 +63,6 @@ class V8_EXPORT_PRIVATE MessageBuilder { } private: - MessageBuilder() = delete; void Report() const; TorqueMessage message_; @@ -172,9 +172,7 @@ void PrintCommaSeparatedList(std::ostream& os, const T& list) { struct BottomOffset { size_t offset; - BottomOffset(std::nullptr_t zero = 0) // NOLINT(runtime/explicit) - : offset(0) {} - explicit BottomOffset(std::size_t offset) : offset(offset) {} + BottomOffset& operator=(std::size_t offset) { this->offset = offset; return *this; @@ -370,10 +368,10 @@ class IfDefScope { public: IfDefScope(std::ostream& os, std::string d); ~IfDefScope(); - - private: IfDefScope(const IfDefScope&) = delete; IfDefScope& operator=(const IfDefScope&) = delete; + + private: std::ostream& os_; std::string d_; }; @@ -383,10 +381,10 @@ class NamespaceScope { NamespaceScope(std::ostream& os, std::initializer_list<std::string> namespaces); ~NamespaceScope(); - - private: NamespaceScope(const NamespaceScope&) = delete; NamespaceScope& operator=(const NamespaceScope&) = delete; + + private: std::ostream& os_; std::vector<std::string> d_; }; @@ -395,10 +393,10 @@ class IncludeGuardScope { public: IncludeGuardScope(std::ostream& os, std::string file_name); ~IncludeGuardScope(); - - private: IncludeGuardScope(const IncludeGuardScope&) = delete; IncludeGuardScope& operator=(const IncludeGuardScope&) = delete; + + private: std::ostream& os_; std::string d_; }; @@ -407,10 +405,10 @@ class IncludeObjectMacrosScope { public: explicit IncludeObjectMacrosScope(std::ostream& os); ~IncludeObjectMacrosScope(); - - private: IncludeObjectMacrosScope(const IncludeObjectMacrosScope&) = delete; IncludeObjectMacrosScope& operator=(const IncludeObjectMacrosScope&) = delete; + + private: std::ostream& os_; }; |
