[clang] Add option to format a whole file using git-clang-format (PR #204336)

Björn Schäpers via cfe-commits cfe-commits at lists.llvm.org
Fri Jun 19 12:53:01 PDT 2026


================
@@ -456,11 +461,23 @@ def extract_lines(patch_file):
     zero lines of context.  The return value is a dict mapping filename to a
     list of line `Range`s."""
     matches = {}
+
+    if whole_file:
----------------
HazardyKnusperkeks wrote:

But is this just a different issue, or why does it only need to be done when using the whole file? I'm fairly certain I ran `git clang-format` from subdirectories.

https://github.com/llvm/llvm-project/pull/204336


More information about the cfe-commits mailing list