Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5)

Side by Side Diff: tools/clang/blink_gc_plugin/tests/heap/stubs.h

Issue 261973002: Blink GC plugin: require that GC derived classes do not override their new(size_t) operator. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: only check new(size_t) Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « tools/clang/blink_gc_plugin/tests/class_overrides_new.txt ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef HEAP_STUBS_H_ 5 #ifndef HEAP_STUBS_H_
6 #define HEAP_STUBS_H_ 6 #define HEAP_STUBS_H_
7 7
8 #include "stddef.h" 8 #include "stddef.h"
9 9
10 #define WTF_MAKE_FAST_ALLOCATED \
11 public: \
12 void* operator new(size_t, void* p); \
13 void* operator new[](size_t, void* p); \
14 void* operator new(size_t size); \
15 private: \
16 typedef int __thisIsHereToForceASemicolonAfterThisMacro
17
10 namespace WTF { 18 namespace WTF {
11 19
12 template<typename T> class RefCounted { }; 20 template<typename T> class RefCounted { };
13 21
14 template<typename T> class RawPtr { 22 template<typename T> class RawPtr {
15 public: 23 public:
16 operator T*() const { return 0; } 24 operator T*() const { return 0; }
17 T* operator->() { return 0; } 25 T* operator->() { return 0; }
18 }; 26 };
19 27
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 namespace WTF { 223 namespace WTF {
216 224
217 template<typename T> 225 template<typename T>
218 struct VectorTraits<WebCore::Member<T> > { 226 struct VectorTraits<WebCore::Member<T> > {
219 static const bool needsDestruction = false; 227 static const bool needsDestruction = false;
220 }; 228 };
221 229
222 } 230 }
223 231
224 #endif 232 #endif
OLDNEW
« no previous file with comments | « tools/clang/blink_gc_plugin/tests/class_overrides_new.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698