Index: tools/clang/blink_gc_plugin/DiagnosticsReporter.h |
diff --git a/tools/clang/blink_gc_plugin/DiagnosticsReporter.h b/tools/clang/blink_gc_plugin/DiagnosticsReporter.h |
index 6a32f70ec6fb72f8964cd865e5f322fc04ed8d7a..c30d07acab42469a0815df14432fb72f338acc6d 100644 |
--- a/tools/clang/blink_gc_plugin/DiagnosticsReporter.h |
+++ b/tools/clang/blink_gc_plugin/DiagnosticsReporter.h |
@@ -62,8 +62,9 @@ class DiagnosticsReporter { |
clang::CXXRecordDecl* base); |
void BaseClassMustDeclareVirtualTrace(RecordInfo* derived, |
clang::CXXRecordDecl* base); |
- void TraceMethodForStackAllocatedClass(RecordInfo* parent, |
+ void TraceMethodForStackAllocatedClass(RecordInfo* info, |
clang::CXXMethodDecl* trace); |
+ void StaticSingletonContainsScriptWrappable(clang::VarDecl* info); |
void NoteManualDispatchMethod(clang::CXXMethodDecl* dispatch); |
void NoteBaseRequiresTracing(BasePoint* base); |
@@ -78,11 +79,14 @@ class DiagnosticsReporter { |
void NoteField(FieldPoint* point, unsigned note); |
void NoteField(clang::FieldDecl* field, unsigned note); |
void NoteOverriddenNonVirtualTrace(clang::CXXMethodDecl* overridden); |
+ void NoteUnsafeScriptWrappableField(clang::VarDecl* decl, |
+ const std::string& context, |
+ const std::string& type); |
private: |
- clang::DiagnosticBuilder ReportDiagnostic( |
- clang::SourceLocation location, |
- unsigned diag_id); |
+ clang::DiagnosticBuilder ReportDiagnostic(unsigned diag_id); |
+ clang::DiagnosticBuilder ReportDiagnostic(clang::SourceLocation location, |
+ unsigned diag_id); |
void ReportMissingDispatchMethod(RecordInfo* info, unsigned error); |
void ReportMissingDispatch(const clang::FunctionDecl* dispatch, |
@@ -114,6 +118,9 @@ class DiagnosticsReporter { |
unsigned diag_class_declares_pure_virtual_trace_; |
unsigned diag_left_most_base_must_be_polymorphic_; |
unsigned diag_base_class_must_declare_virtual_trace_; |
+ unsigned diag_iterator_to_gc_managed_collection_; |
+ unsigned diag_trace_method_of_stack_allocated_parent_; |
+ unsigned diag_static_singleton_with_scriptwrappable_; |
unsigned diag_base_requires_tracing_note_; |
unsigned diag_field_requires_tracing_note_; |
@@ -137,8 +144,7 @@ class DiagnosticsReporter { |
unsigned diag_field_requires_finalization_note_; |
unsigned diag_overridden_non_virtual_trace_note_; |
unsigned diag_manual_dispatch_method_note_; |
- unsigned diag_iterator_to_gc_managed_collection_note_; |
- unsigned diag_trace_method_of_stack_allocated_parent_; |
+ unsigned diag_unsafe_scriptwrappable_field_note_; |
}; |
#endif // TOOLS_BLINK_GC_PLUGIN_DIAGNOSTICS_REPORTER_H_ |