This revision was automatically updated to reflect the committed changes. Closed by commit rG24b4965ce65b: [clang/clang-tools-extra] Fix BZ44437 - add_new_check.py does not work with… (authored by kwk).
Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D79419/new/ https://reviews.llvm.org/D79419 Files: clang-tools-extra/clang-tidy/add_new_check.py Index: clang-tools-extra/clang-tidy/add_new_check.py =================================================================== --- clang-tools-extra/clang-tidy/add_new_check.py +++ clang-tools-extra/clang-tidy/add_new_check.py @@ -172,7 +172,7 @@ lines = iter(lines) try: while True: - line = lines.next() + line = next(lines) if not header_added: match = re.search('#include "(.*)"', line) if match: @@ -197,7 +197,7 @@ # If we didn't find the check name on this line, look on the # next one. prev_line = line - line = lines.next() + line = next(lines) match = re.search(' *"([^"]*)"', line) if match: current_check_name = match.group(1)
Index: clang-tools-extra/clang-tidy/add_new_check.py =================================================================== --- clang-tools-extra/clang-tidy/add_new_check.py +++ clang-tools-extra/clang-tidy/add_new_check.py @@ -172,7 +172,7 @@ lines = iter(lines) try: while True: - line = lines.next() + line = next(lines) if not header_added: match = re.search('#include "(.*)"', line) if match: @@ -197,7 +197,7 @@ # If we didn't find the check name on this line, look on the # next one. prev_line = line - line = lines.next() + line = next(lines) match = re.search(' *"([^"]*)"', line) if match: current_check_name = match.group(1)
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits