Index: tools/clang/plugins/FindBadConstructsConsumer.h |
diff --git a/tools/clang/plugins/FindBadConstructsConsumer.h b/tools/clang/plugins/FindBadConstructsConsumer.h |
index 8f8fc87046630911ac93ae59995da6d5c8ca8a68..bd8470ad7fcbdae31eff127e5733bb572cae7daa 100644 |
--- a/tools/clang/plugins/FindBadConstructsConsumer.h |
+++ b/tools/clang/plugins/FindBadConstructsConsumer.h |
@@ -20,6 +20,8 @@ |
#ifndef TOOLS_CLANG_PLUGINS_FINDBADCONSTRUCTSCONSUMER_H_ |
#define TOOLS_CLANG_PLUGINS_FINDBADCONSTRUCTSCONSUMER_H_ |
+#include <memory> |
+ |
#include "clang/AST/AST.h" |
#include "clang/AST/ASTConsumer.h" |
#include "clang/AST/Attr.h" |
@@ -29,6 +31,7 @@ |
#include "clang/Basic/SourceManager.h" |
#include "clang/Basic/SourceLocation.h" |
+#include "CheckIPCVisitor.h" |
#include "ChromeClassTester.h" |
#include "Options.h" |
#include "SuppressibleDiagnosticBuilder.h" |
@@ -51,6 +54,9 @@ class FindBadConstructsConsumer |
clang::CXXRecordDecl* record) override; |
void CheckChromeEnum(clang::SourceLocation enum_location, |
clang::EnumDecl* enum_decl) override; |
+ void HandleTranslationUnit(clang::ASTContext& context) override; |
+ |
+ CheckIPCVisitor* ipc_checker() const { return ipc_checker_.get(); } |
private: |
// The type of problematic ref-counting pattern that was encountered. |
@@ -110,6 +116,8 @@ class FindBadConstructsConsumer |
unsigned diag_note_implicit_dtor_; |
unsigned diag_note_public_dtor_; |
unsigned diag_note_protected_non_virtual_dtor_; |
+ |
+ std::unique_ptr<CheckIPCVisitor> ipc_checker_; |
}; |
} // namespace chrome_checker |