gecko-dev/build/build-clang/clang-tidy-no-errors.patch

13 строки
642 B
Diff

diff --git a/clang-tools-extra/clang-tidy/ClangTidyCheck.cpp b/clang-tools-extra/clang-tidy/ClangTidyCheck.cpp
index fbf117688bb..dc7235b1450 100644
--- a/clang-tools-extra/clang-tidy/ClangTidyCheck.cpp
+++ b/clang-tools-extra/clang-tidy/ClangTidyCheck.cpp
@@ -20,6 +20,7 @@ ClangTidyCheck::ClangTidyCheck(StringRef CheckName, ClangTidyContext *Context)
DiagnosticBuilder ClangTidyCheck::diag(SourceLocation Loc, StringRef Message,
DiagnosticIDs::Level Level) {
+ Level = Level == DiagnosticIDs::Error ? DiagnosticIDs::Warning : Level;
return Context->diag(CheckName, Loc, Message, Level);
}