diff options
author | David Blaikie <dblaikie@gmail.com> | 2011-09-25 23:23:43 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2011-09-25 23:23:43 +0000 |
commit | 9c902b5502fe921137177912ce0f56289e3824b5 (patch) | |
tree | 45eacdb31f6821030d5b367eabafdb015526a85f /clang/lib/StaticAnalyzer/Frontend/CheckerRegistration.cpp | |
parent | 74e2c35fbc62d643358518cf83e9651c347ea8f5 (diff) | |
download | bcm5719-llvm-9c902b5502fe921137177912ce0f56289e3824b5.tar.gz bcm5719-llvm-9c902b5502fe921137177912ce0f56289e3824b5.zip |
Rename Diagnostic to DiagnosticsEngine as per issue 5397
llvm-svn: 140478
Diffstat (limited to 'clang/lib/StaticAnalyzer/Frontend/CheckerRegistration.cpp')
-rw-r--r-- | clang/lib/StaticAnalyzer/Frontend/CheckerRegistration.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/clang/lib/StaticAnalyzer/Frontend/CheckerRegistration.cpp b/clang/lib/StaticAnalyzer/Frontend/CheckerRegistration.cpp index 89b99f98079..a59fcad6f81 100644 --- a/clang/lib/StaticAnalyzer/Frontend/CheckerRegistration.cpp +++ b/clang/lib/StaticAnalyzer/Frontend/CheckerRegistration.cpp @@ -35,17 +35,18 @@ class ClangCheckerRegistry : public CheckerRegistry { typedef void (*RegisterCheckersFn)(CheckerRegistry &); static bool isCompatibleAPIVersion(const char *versionString); - static void warnIncompatible(Diagnostic *diags, StringRef pluginPath, + static void warnIncompatible(DiagnosticsEngine *diags, StringRef pluginPath, const char *pluginAPIVersion); public: - ClangCheckerRegistry(ArrayRef<std::string> plugins, Diagnostic *diags = 0); + ClangCheckerRegistry(ArrayRef<std::string> plugins, + DiagnosticsEngine *diags = 0); }; } // end anonymous namespace ClangCheckerRegistry::ClangCheckerRegistry(ArrayRef<std::string> plugins, - Diagnostic *diags) { + DiagnosticsEngine *diags) { registerBuiltinCheckers(*this); for (ArrayRef<std::string>::iterator i = plugins.begin(), e = plugins.end(); @@ -83,7 +84,7 @@ bool ClangCheckerRegistry::isCompatibleAPIVersion(const char *versionString) { return false; } -void ClangCheckerRegistry::warnIncompatible(Diagnostic *diags, +void ClangCheckerRegistry::warnIncompatible(DiagnosticsEngine *diags, StringRef pluginPath, const char *pluginAPIVersion) { if (!diags) @@ -102,7 +103,7 @@ void ClangCheckerRegistry::warnIncompatible(Diagnostic *diags, CheckerManager *ento::createCheckerManager(const AnalyzerOptions &opts, const LangOptions &langOpts, ArrayRef<std::string> plugins, - Diagnostic &diags) { + DiagnosticsEngine &diags) { llvm::OwningPtr<CheckerManager> checkerMgr(new CheckerManager(langOpts)); SmallVector<CheckerOptInfo, 8> checkerOpts; |