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

Side by Side Diff: tools/clang/blink_gc_plugin/RecordInfo.h

Issue 278513005: Blink GC plugin: disallow pure-virtual trace methods. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove pure related code 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
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 // This file provides a wrapper for CXXRecordDecl that accumulates GC related 5 // This file provides a wrapper for CXXRecordDecl that accumulates GC related
6 // information about a class. Accumulated information is memoized and the info 6 // information about a class. Accumulated information is memoized and the info
7 // objects are stored in a RecordCache. 7 // objects are stored in a RecordCache.
8 8
9 #ifndef TOOLS_BLINK_GC_PLUGIN_RECORD_INFO_H_ 9 #ifndef TOOLS_BLINK_GC_PLUGIN_RECORD_INFO_H_
10 #define TOOLS_BLINK_GC_PLUGIN_RECORD_INFO_H_ 10 #define TOOLS_BLINK_GC_PLUGIN_RECORD_INFO_H_
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 TracingStatus NeedsTracing(Edge::NeedsTracingOption); 102 TracingStatus NeedsTracing(Edge::NeedsTracingOption);
103 clang::CXXMethodDecl* InheritsNonVirtualTrace(); 103 clang::CXXMethodDecl* InheritsNonVirtualTrace();
104 bool IsConsideredAbstract(); 104 bool IsConsideredAbstract();
105 105
106 private: 106 private:
107 RecordInfo(clang::CXXRecordDecl* record, RecordCache* cache); 107 RecordInfo(clang::CXXRecordDecl* record, RecordCache* cache);
108 108
109 Fields* CollectFields(); 109 Fields* CollectFields();
110 Bases* CollectBases(); 110 Bases* CollectBases();
111 void DetermineTracingMethods(); 111 void DetermineTracingMethods();
112 bool InheritsNonPureTrace(); 112 bool InheritsTrace();
113 113
114 Edge* CreateEdge(const clang::Type* type); 114 Edge* CreateEdge(const clang::Type* type);
115 115
116 RecordCache* cache_; 116 RecordCache* cache_;
117 clang::CXXRecordDecl* record_; 117 clang::CXXRecordDecl* record_;
118 const std::string name_; 118 const std::string name_;
119 TracingStatus fields_need_tracing_; 119 TracingStatus fields_need_tracing_;
120 Bases* bases_; 120 Bases* bases_;
121 Fields* fields_; 121 Fields* fields_;
122 122
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 } 167 }
168 } 168 }
169 } 169 }
170 170
171 private: 171 private:
172 typedef std::map<clang::CXXRecordDecl*, RecordInfo> Cache; 172 typedef std::map<clang::CXXRecordDecl*, RecordInfo> Cache;
173 Cache cache_; 173 Cache cache_;
174 }; 174 };
175 175
176 #endif // TOOLS_BLINK_GC_PLUGIN_RECORD_INFO_H_ 176 #endif // TOOLS_BLINK_GC_PLUGIN_RECORD_INFO_H_
OLDNEW
« no previous file with comments | « tools/clang/blink_gc_plugin/BlinkGCPlugin.cpp ('k') | tools/clang/blink_gc_plugin/RecordInfo.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698