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

Unified Diff: tools/clang/blink_gc_plugin/tests/class_does_not_require_finalization.h

Issue 551343002: Blink GC plugin: Add plugin flags for generating raw-pointer errors and unneeded-finalizer warnings. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: presubmit Created 6 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: tools/clang/blink_gc_plugin/tests/class_does_not_require_finalization.h
diff --git a/tools/clang/blink_gc_plugin/tests/class_does_not_require_finalization.h b/tools/clang/blink_gc_plugin/tests/class_does_not_require_finalization.h
new file mode 100644
index 0000000000000000000000000000000000000000..000dfd74142ebbaf0915a8328c1a43dd207294c1
--- /dev/null
+++ b/tools/clang/blink_gc_plugin/tests/class_does_not_require_finalization.h
@@ -0,0 +1,45 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CLASS_DOES_NOT_REQUIRE_FINALIZATION_BASE_H_
+#define CLASS_DOES_NOT_REQUIRE_FINALIZATION_BASE_H_
+
+#include "heap/stubs.h"
+
+namespace blink {
+
+class DoesNeedFinalizer : public GarbageCollectedFinalized<DoesNeedFinalizer> {
+public:
+ ~DoesNeedFinalizer() { ; }
+ void trace(Visitor*);
+};
+
+class DoesNotNeedFinalizer
+ : public GarbageCollectedFinalized<DoesNotNeedFinalizer> {
+public:
+ void trace(Visitor*);
+};
+
+class DoesNotNeedFinalizer2
+ : public GarbageCollectedFinalized<DoesNotNeedFinalizer2> {
+public:
+ ~DoesNotNeedFinalizer2();
+ void trace(Visitor*);
+};
+
+class HasEmptyDtor {
+public:
+ virtual ~HasEmptyDtor() { }
+};
+
+class DoesNotNeedFinalizer3
+ : public GarbageCollectedFinalized<DoesNotNeedFinalizer3>,
+ public HasEmptyDtor {
+public:
+ void trace(Visitor*);
+};
+
+}
+
+#endif

Powered by Google App Engine
This is Rietveld 408576698