diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2020-10-12 14:27:29 +0200 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2020-10-13 09:35:20 +0000 |
commit | c30a6232df03e1efbd9f3b226777b07e087a1122 (patch) | |
tree | e992f45784689f373bcc38d1b79a239ebe17ee23 /chromium/v8/src/torque/utils.h | |
parent | 7b5b123ac58f58ffde0f4f6e488bcd09aa4decd3 (diff) | |
download | qtwebengine-chromium-85-based.tar.gz |
BASELINE: Update Chromium to 85.0.4183.14085-based
Change-Id: Iaa42f4680837c57725b1344f108c0196741f6057
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
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_; }; |