forked from OSchip/llvm-project
DiagnosticsEngine::setMappingToAllDiagnostics() does not need to return bool,
caught by Chad. llvm-svn: 149173
This commit is contained in:
parent
7471d1303d
commit
059cac4db4
|
@ -479,7 +479,7 @@ public:
|
|||
/// \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; }
|
||||
|
|
|
@ -295,7 +295,7 @@ bool DiagnosticsEngine::setDiagnosticGroupErrorAsFatal(StringRef Group,
|
|||
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;
|
||||
|
@ -305,8 +305,6 @@ bool DiagnosticsEngine::setMappingToAllDiagnostics(diag::Mapping Map,
|
|||
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) {
|
||||
|
|
Loading…
Reference in New Issue