This revision was automatically updated to reflect the committed changes. Closed by commit rG5e969125c609: [clang-format] git-clang-format throws an assertion when removing files as part… (authored by MyDeveloperDay).
Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D112056/new/ https://reviews.llvm.org/D112056 Files: clang/tools/clang-format/git-clang-format Index: clang/tools/clang-format/git-clang-format =================================================================== --- clang/tools/clang-format/git-clang-format +++ clang/tools/clang-format/git-clang-format @@ -327,6 +327,8 @@ line_count = int(match.group(3)) if line_count == 0: line_count = 1 + if start_line == 0: + continue matches.setdefault(filename, []).append(Range(start_line, line_count)) return matches
Index: clang/tools/clang-format/git-clang-format =================================================================== --- clang/tools/clang-format/git-clang-format +++ clang/tools/clang-format/git-clang-format @@ -327,6 +327,8 @@ line_count = int(match.group(3)) if line_count == 0: line_count = 1 + if start_line == 0: + continue matches.setdefault(filename, []).append(Range(start_line, line_count)) return matches
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits