[clang] [clang-format] Clarify git-clang-format output for deletion-only edits (PR #247386)

via cfe-commits cfe-commits at lists.llvm.org
Tue Dec 1 13:57:05 PST 2026


https://github.com/savealamb updated https://github.com/llvm/llvm-project/pull/247386

>From 47361f41fce54a895177d36d8b6f7dc0dbd0840b Mon Sep 17 00:00:00 2001
From: savealamb <361336614+savealamb at users.noreply.github.com>
Date: Tue, 1 Dec 2026 01:29:27 +0000
Subject: [PATCH] [clang-format] Clarify git-clang-format output for
 deletion-only edits

---
 clang/tools/clang-format/git-clang-format | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/clang/tools/clang-format/git-clang-format b/clang/tools/clang-format/git-clang-format
index 50b35122bfb003..da719ec83274ea 100755
--- a/clang/tools/clang-format/git-clang-format
+++ b/clang/tools/clang-format/git-clang-format
@@ -289,7 +289,7 @@ def main():
 
     if not changed_lines:
         if opts.verbose >= 0:
-            print("no modified files to format")
+            print("no changes to format")
         return 0
 
     if len(commits) > 1:



More information about the cfe-commits mailing list