We do not need to set the corresponding clang-diagnostic if we already disabled a warning in the compiler.
@@ -97,8 +97,6 @@ class ClangTidy(analyzer_base.SourceAnalyzer):
compiler_warnings.append('-W' + warning_name)
else:
compiler_warnings.append('-Wno-' + warning_name)
- checkers_cmdline += ',-clang-diagnostic-' + \
- warning_name
continue
