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) {
278
278
sys::fs::current_path (PathBuf);
279
279
280
280
// Create the compilation database.
281
- std::unique_ptr<CompilationDatabase> Compilations;
282
- Compilations.reset (new FixedCompilationDatabase (Twine (PathBuf), CommandLine));
281
+ FixedCompilationDatabase Compilations (Twine (PathBuf), CommandLine);
283
282
284
283
std::vector<std::string> HeaderPath;
285
284
HeaderPath.push_back (std::string (UmbrellaHeaderName));
286
285
287
286
// 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);
290
290
291
291
// If we had errors, exit early.
292
292
return !HadErrors;
You can’t perform that action at this time.
0 commit comments