[clang] Add option to format a whole file using git-clang-format (PR #204336)
via cfe-commits
cfe-commits at lists.llvm.org
Sat Jun 27 18:44:10 PDT 2026
================
@@ -190,6 +190,11 @@ def main():
action="store_true",
help="format lines in the stage instead of the working dir",
)
+ p.add_argument(
+ "--whole-file",
+ action="store_true",
+ help="format whole file instead of only modified lines",
+ )
----------------
owenca wrote:
Please move it down to right after "-v" to keep the options (mostly) sorted.
https://github.com/llvm/llvm-project/pull/204336
More information about the cfe-commits
mailing list