It is possible to use --list-checks for clang-tidy without positional argumetns since at least clang 3.9
@@ -55,8 +55,7 @@ class ClangTidy(analyzer_base.SourceAnalyzer):
if not self.checkers:
analyzer_binary = config_handler.analyzer_binary
- command = [analyzer_binary, "-list-checks", "-checks='*'", "-",
- "--"]
+ command = [analyzer_binary, "-list-checks", "-checks='*'"]
try:
command = shlex.split(' '.join(command))
