Example #1
0
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();
}
Example #2
0
File: opt.cpp Project: Mortal/opt
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();
}
Example #4
0
Reporter Reporter::error() {
    return Reporter(ERROR);
}
Example #5
0
Reporter Reporter::warning() {
    return Reporter(WARNING);
}
Example #6
0
Reporter Reporter::info() {
    return Reporter(INFO);
}