/// \brief Add the specified mapping to all diagnostics. Mainly to be used
/// by -Wno-everything to disable all warnings but allow subsequent -W options
/// to enable specific warnings.
- bool setMappingToAllDiagnostics(diag::Mapping Map,
+ void setMappingToAllDiagnostics(diag::Mapping Map,
SourceLocation Loc = SourceLocation());
bool hasErrorOccurred() const { return ErrorOccurred; }
return false;
}
-bool DiagnosticsEngine::setMappingToAllDiagnostics(diag::Mapping Map,
+void DiagnosticsEngine::setMappingToAllDiagnostics(diag::Mapping Map,
SourceLocation Loc) {
// Get all the diagnostics.
llvm::SmallVector<diag::kind, 64> AllDiags;
for (unsigned i = 0, e = AllDiags.size(); i != e; ++i)
if (Diags->isBuiltinWarningOrExtension(AllDiags[i]))
setDiagnosticMapping(AllDiags[i], Map, Loc);
-
- return false;
}
void DiagnosticsEngine::Report(const StoredDiagnostic &storedDiag) {