File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -278,15 +278,15 @@ CoverageChecker::collectUmbrellaHeaderHeaders(StringRef UmbrellaHeaderName) {
278278 sys::fs::current_path (PathBuf);
279279
280280 // Create the compilation database.
281- std::unique_ptr<CompilationDatabase> Compilations;
282- Compilations.reset (new FixedCompilationDatabase (Twine (PathBuf), CommandLine));
281+ FixedCompilationDatabase Compilations (Twine (PathBuf), CommandLine);
283282
284283 std::vector<std::string> HeaderPath;
285284 HeaderPath.push_back (std::string (UmbrellaHeaderName));
286285
287286 // Create the tool and run the compilation.
288- ClangTool Tool (*Compilations, HeaderPath);
289- int HadErrors = Tool.run (new CoverageCheckerFrontendActionFactory (*this ));
287+ ClangTool Tool (Compilations, HeaderPath);
288+ CoverageCheckerFrontendActionFactory ActionFactory (*this );
289+ int HadErrors = Tool.run (&ActionFactory);
290290
291291 // If we had errors, exit early.
292292 return !HadErrors;
You can’t perform that action at this time.
0 commit comments