Esempio n. 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();
}
Esempio n. 2
0
File: opt.cpp Progetto: 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();
}
Esempio n. 4
0
Reporter Reporter::error() {
    return Reporter(ERROR);
}
Esempio n. 5
0
Reporter Reporter::warning() {
    return Reporter(WARNING);
}
Esempio n. 6
0
Reporter Reporter::info() {
    return Reporter(INFO);
}