void handleErrors(const std::vector<ClangTidyError> &Errors, bool Fix) { ErrorReporter Reporter(Fix); for (const ClangTidyError &Error : Errors) { Reporter.reportDiagnostic( Error.Message, static_cast<DiagnosticsEngine::Level>(Error.DiagLevel), &Error.Fix); for (const ClangTidyMessage &Note : Error.Notes) Reporter.reportDiagnostic(Note, DiagnosticsEngine::Note); } Reporter.Finish(); }
void go(input_t & input, bool parallel, bool delayed, Reporter reporter = Reporter()) { obj_goodness objective; if (parallel) { if (delayed) { parallel_solve<buffer_report_delayed>(input, objective, reporter); } else { parallel_solve<buffer_report_immediate>(input, objective, reporter); } } else { solve(input, objective, reporter); } }
void handleErrors(const std::vector<ClangTidyError> &Errors, bool Fix) { ErrorReporter Reporter(Fix); for (const ClangTidyError &Error : Errors) Reporter.reportDiagnostic(Error); Reporter.Finish(); }
Reporter Reporter::error() { return Reporter(ERROR); }
Reporter Reporter::warning() { return Reporter(WARNING); }
Reporter Reporter::info() { return Reporter(INFO); }