[cmd][fix] Fix crash of "checkers --warnings" command
The error was
return any(g in guideline_set for g in selected_guidelines)
TypeError: 'NoneType' object is not iterable
@@ -383,7 +383,7 @@ def main(args):
for warning in get_warnings(analyzer_environment):
warning = 'clang-diagnostic-' + warning[2:]
- if 'guideline' in args:
+ if args.guideline is not None:
if not match_guideline(warning, args.guideline):
continue
