summaryrefslogtreecommitdiffstats
path: root/build/build-clang/clang-tidy-no-errors.patch
diff options
context:
space:
mode:
Diffstat (limited to 'build/build-clang/clang-tidy-no-errors.patch')
-rw-r--r--build/build-clang/clang-tidy-no-errors.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/build/build-clang/clang-tidy-no-errors.patch b/build/build-clang/clang-tidy-no-errors.patch
new file mode 100644
index 0000000000..57a8167021
--- /dev/null
+++ b/build/build-clang/clang-tidy-no-errors.patch
@@ -0,0 +1,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);
+ }
+