summaryrefslogtreecommitdiffstats
path: root/build/build-clang/clang-tidy-no-errors.patch
blob: 57a816702166a6cf4f89d85e4b0c36b87681dd0e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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);
 }