Lines Matching refs:Diags
21 DiagnosticsEngine Diags(new DiagnosticIDs(),
24 Diags.setSuppressAllDiagnostics(true);
27 DiagnosticErrorTrap trap(Diags);
30 Diags.Report(diag::err_target_unknown_triple) << "unknown";
33 Diags.Report(diag::err_cannot_open_file) << "file" << "error";
37 Diags.Report(diag::warn_mt_message) << "warning";
43 EXPECT_FALSE(Diags.hasErrorOccurred());
44 EXPECT_FALSE(Diags.hasFatalErrorOccurred());
45 EXPECT_FALSE(Diags.hasUncompilableErrorOccurred());
46 EXPECT_FALSE(Diags.hasUnrecoverableErrorOccurred());
51 DiagnosticsEngine Diags(new DiagnosticIDs(),
54 Diags.setFatalsAsError(true);
57 Diags.Report(diag::err_target_unknown_triple) << "unknown";
60 Diags.Report(diag::err_cannot_open_file) << "file" << "error";
64 Diags.Report(diag::warn_mt_message) << "warning";
66 EXPECT_TRUE(Diags.hasErrorOccurred());
67 EXPECT_FALSE(Diags.hasFatalErrorOccurred());
68 EXPECT_TRUE(Diags.hasUncompilableErrorOccurred());
69 EXPECT_TRUE(Diags.hasUnrecoverableErrorOccurred());