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

Unified Diff: tools/clang/blink_gc_plugin/RecordInfo.h

Issue 206123004: Add checks for stack-allocated types and their uses in fields. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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/RecordInfo.h
diff --git a/tools/clang/blink_gc_plugin/RecordInfo.h b/tools/clang/blink_gc_plugin/RecordInfo.h
index 2e3ea4dfc5654861a5e96433585cf603a100625c..1890afb459cc7bd0e2656811f3cfeff0148cb4a2 100644
--- a/tools/clang/blink_gc_plugin/RecordInfo.h
+++ b/tools/clang/blink_gc_plugin/RecordInfo.h
@@ -112,6 +112,9 @@ class RecordInfo {
Bases* bases_;
Fields* fields_;
+ enum BoolOption { kFalse = 0, kTrue = 1, kNone = 2 };
+ BoolOption is_stack_allocated_;
+
bool determined_trace_methods_;
clang::CXXMethodDecl* trace_method_;
clang::CXXMethodDecl* trace_dispatch_method_;

Powered by Google App Engine
This is Rietveld 408576698