Commit 9b4f14de authored by Clemens Hammacher's avatar Clemens Hammacher Committed by Commit Bot

Fix semicolons after DISALLOW_* macros

The vast majority of places puts a semicolon after these macros
(DISALLOW_ASSIGN, DISALLOW_COPY_AND_ASSIGN). Thus remove the semicolon
from the definition and fix the few places that omitted the semicolon
at the use.

R=mlippautz@chromium.org

Bug: v8:8562
Change-Id: Id730576f3061b86d8a5cee0e0b9b762f693f16ec
Reviewed-on: https://chromium-review.googlesource.com/c/1371824Reviewed-by: 's avatarMichael Lippautz <mlippautz@chromium.org>
Reviewed-by: 's avatarJakob Gruber <jgruber@chromium.org>
Commit-Queue: Clemens Hammacher <clemensh@chromium.org>
Cr-Commit-Position: refs/heads/master@{#58166}
parent bffc2ab6
...@@ -109,7 +109,7 @@ V8_INLINE Dest bit_cast(Source const& source) { ...@@ -109,7 +109,7 @@ V8_INLINE Dest bit_cast(Source const& source) {
} }
// Explicitly declare the assignment operator as deleted. // Explicitly declare the assignment operator as deleted.
#define DISALLOW_ASSIGN(TypeName) TypeName& operator=(const TypeName&) = delete; #define DISALLOW_ASSIGN(TypeName) TypeName& operator=(const TypeName&) = delete
// Explicitly declare the copy constructor and assignment operator as deleted. // Explicitly declare the copy constructor and assignment operator as deleted.
#define DISALLOW_COPY_AND_ASSIGN(TypeName) \ #define DISALLOW_COPY_AND_ASSIGN(TypeName) \
......
...@@ -45,7 +45,7 @@ class BuiltinsConstantsTableBuilder final { ...@@ -45,7 +45,7 @@ class BuiltinsConstantsTableBuilder final {
typedef IdentityMap<uint32_t, FreeStoreAllocationPolicy> ConstantsMap; typedef IdentityMap<uint32_t, FreeStoreAllocationPolicy> ConstantsMap;
ConstantsMap map_; ConstantsMap map_;
DISALLOW_COPY_AND_ASSIGN(BuiltinsConstantsTableBuilder) DISALLOW_COPY_AND_ASSIGN(BuiltinsConstantsTableBuilder);
}; };
} // namespace internal } // namespace internal
......
...@@ -1276,7 +1276,7 @@ class HeapNumberBase : public HeapObject { ...@@ -1276,7 +1276,7 @@ class HeapNumberBase : public HeapObject {
static const int kNonMantissaBitsInTopWord = 12; static const int kNonMantissaBitsInTopWord = 12;
private: private:
DISALLOW_IMPLICIT_CONSTRUCTORS(HeapNumberBase) DISALLOW_IMPLICIT_CONSTRUCTORS(HeapNumberBase);
}; };
class HeapNumber : public HeapNumberBase { class HeapNumber : public HeapNumberBase {
...@@ -1285,7 +1285,7 @@ class HeapNumber : public HeapNumberBase { ...@@ -1285,7 +1285,7 @@ class HeapNumber : public HeapNumberBase {
V8_EXPORT_PRIVATE void HeapNumberPrint(std::ostream& os); V8_EXPORT_PRIVATE void HeapNumberPrint(std::ostream& os);
private: private:
DISALLOW_IMPLICIT_CONSTRUCTORS(HeapNumber) DISALLOW_IMPLICIT_CONSTRUCTORS(HeapNumber);
}; };
class MutableHeapNumber : public HeapNumberBase { class MutableHeapNumber : public HeapNumberBase {
...@@ -1294,7 +1294,7 @@ class MutableHeapNumber : public HeapNumberBase { ...@@ -1294,7 +1294,7 @@ class MutableHeapNumber : public HeapNumberBase {
V8_EXPORT_PRIVATE void MutableHeapNumberPrint(std::ostream& os); V8_EXPORT_PRIVATE void MutableHeapNumberPrint(std::ostream& os);
private: private:
DISALLOW_IMPLICIT_CONSTRUCTORS(MutableHeapNumber) DISALLOW_IMPLICIT_CONSTRUCTORS(MutableHeapNumber);
}; };
enum EnsureElementsMode { enum EnsureElementsMode {
......
...@@ -462,7 +462,7 @@ class Code::OptimizedCodeIterator { ...@@ -462,7 +462,7 @@ class Code::OptimizedCodeIterator {
Isolate* isolate_; Isolate* isolate_;
DISALLOW_HEAP_ALLOCATION(no_gc); DISALLOW_HEAP_ALLOCATION(no_gc);
DISALLOW_COPY_AND_ASSIGN(OptimizedCodeIterator) DISALLOW_COPY_AND_ASSIGN(OptimizedCodeIterator);
}; };
// CodeDataContainer is a container for all mutable fields associated with its // CodeDataContainer is a container for all mutable fields associated with its
......
...@@ -50,7 +50,7 @@ class CallbackTask : public Microtask { ...@@ -50,7 +50,7 @@ class CallbackTask : public Microtask {
DECL_VERIFIER(CallbackTask) DECL_VERIFIER(CallbackTask)
private: private:
DISALLOW_IMPLICIT_CONSTRUCTORS(CallbackTask) DISALLOW_IMPLICIT_CONSTRUCTORS(CallbackTask);
}; };
// A CallableTask is a special (internal) Microtask that allows us to // A CallableTask is a special (internal) Microtask that allows us to
......
...@@ -99,7 +99,7 @@ class DeserializerAllocator final { ...@@ -99,7 +99,7 @@ class DeserializerAllocator final {
// The current deserializer. // The current deserializer.
Deserializer* const deserializer_; Deserializer* const deserializer_;
DISALLOW_COPY_AND_ASSIGN(DeserializerAllocator) DISALLOW_COPY_AND_ASSIGN(DeserializerAllocator);
}; };
} // namespace internal } // namespace internal
......
...@@ -68,7 +68,7 @@ class SerializerAllocator final { ...@@ -68,7 +68,7 @@ class SerializerAllocator final {
// The current serializer. // The current serializer.
Serializer* const serializer_; Serializer* const serializer_;
DISALLOW_COPY_AND_ASSIGN(SerializerAllocator) DISALLOW_COPY_AND_ASSIGN(SerializerAllocator);
}; };
} // namespace internal } // namespace internal
......
...@@ -64,7 +64,7 @@ class V8_EXPORT_PRIVATE DisjointAllocationPool final { ...@@ -64,7 +64,7 @@ class V8_EXPORT_PRIVATE DisjointAllocationPool final {
private: private:
std::list<base::AddressRegion> regions_; std::list<base::AddressRegion> regions_;
DISALLOW_COPY_AND_ASSIGN(DisjointAllocationPool) DISALLOW_COPY_AND_ASSIGN(DisjointAllocationPool);
}; };
class V8_EXPORT_PRIVATE WasmCode final { class V8_EXPORT_PRIVATE WasmCode final {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment