serge-sans-paille added inline comments.
================ Comment at: clang/utils/creduce-clang-crash.py:45 + result = [] + for i, arg in enumerate(cmd): + if arg.startswith('$'): ---------------- Useless enumerate here. You could even use a list comprehension here ``` return ' '.join(arg if arg.startswith('$') else pipes.quote(arg) for arg in cmd) ``` ================ Comment at: clang/utils/creduce-clang-crash.py:161 + for arg in args: + if (any(arg.startswith(a) for a in opts_startswith)): + continue ---------------- useless parenthesis around test could be a list comprehension ``` result = [arg for arg in args if all(not arg.startswith(a) for a in opts_startswith)] ``` CHANGES SINCE LAST ACTION https://reviews.llvm.org/D59440/new/ https://reviews.llvm.org/D59440 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits