| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 TOOLS_BLINK_GC_PLUGIN_BLINK_GC_PLUGIN_CONSUMER_H_ | 5 #ifndef TOOLS_BLINK_GC_PLUGIN_BLINK_GC_PLUGIN_CONSUMER_H_ |
| 6 #define TOOLS_BLINK_GC_PLUGIN_BLINK_GC_PLUGIN_CONSUMER_H_ | 6 #define TOOLS_BLINK_GC_PLUGIN_BLINK_GC_PLUGIN_CONSUMER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "BlinkGCPluginOptions.h" | 10 #include "BlinkGCPluginOptions.h" |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 | 59 |
| 60 // Determine what type of tracing method this is (dispatch or trace). | 60 // Determine what type of tracing method this is (dispatch or trace). |
| 61 void CheckTraceOrDispatchMethod(RecordInfo* parent, | 61 void CheckTraceOrDispatchMethod(RecordInfo* parent, |
| 62 clang::CXXMethodDecl* method); | 62 clang::CXXMethodDecl* method); |
| 63 | 63 |
| 64 // Check an actual trace method. | 64 // Check an actual trace method. |
| 65 void CheckTraceMethod(RecordInfo* parent, | 65 void CheckTraceMethod(RecordInfo* parent, |
| 66 clang::CXXMethodDecl* trace, | 66 clang::CXXMethodDecl* trace, |
| 67 Config::TraceMethodType trace_type); | 67 Config::TraceMethodType trace_type); |
| 68 | 68 |
| 69 void CheckStaticSingleton(clang::VarDecl*); |
| 70 |
| 69 void DumpClass(RecordInfo* info); | 71 void DumpClass(RecordInfo* info); |
| 70 | 72 |
| 71 // Adds either a warning or error, based on the current handling of -Werror. | 73 // Adds either a warning or error, based on the current handling of -Werror. |
| 72 clang::DiagnosticsEngine::Level getErrorLevel(); | 74 clang::DiagnosticsEngine::Level getErrorLevel(); |
| 73 | 75 |
| 74 std::string GetLocString(clang::SourceLocation loc); | 76 std::string GetLocString(clang::SourceLocation loc); |
| 75 | 77 |
| 76 bool IsIgnored(RecordInfo* info); | 78 bool IsIgnored(RecordInfo* info); |
| 77 | 79 |
| 78 bool IsIgnoredClass(RecordInfo* info); | 80 bool IsIgnoredClass(RecordInfo* info); |
| 79 | 81 |
| 80 bool InIgnoredDirectory(RecordInfo* info); | 82 bool InIgnoredDirectory(RecordInfo* info); |
| 81 | 83 |
| 82 bool InCheckedNamespace(RecordInfo* info); | 84 bool InCheckedNamespace(RecordInfo* info); |
| 83 | 85 |
| 84 bool GetFilename(clang::SourceLocation loc, std::string* filename); | 86 bool GetFilename(clang::SourceLocation loc, std::string* filename); |
| 85 | 87 |
| 86 clang::CompilerInstance& instance_; | 88 clang::CompilerInstance& instance_; |
| 87 DiagnosticsReporter reporter_; | 89 DiagnosticsReporter reporter_; |
| 88 BlinkGCPluginOptions options_; | 90 BlinkGCPluginOptions options_; |
| 89 RecordCache cache_; | 91 RecordCache cache_; |
| 90 JsonWriter* json_; | 92 JsonWriter* json_; |
| 91 }; | 93 }; |
| 92 | 94 |
| 93 #endif // TOOLS_BLINK_GC_PLUGIN_BLINK_GC_PLUGIN_CONSUMER_H_ | 95 #endif // TOOLS_BLINK_GC_PLUGIN_BLINK_GC_PLUGIN_CONSUMER_H_ |
| OLD | NEW |