[clang] [clang-format] Add null-terminated path option (#123921) (PR #123926)

Owen Pan via cfe-commits cfe-commits at lists.llvm.org
Sun Jan 26 00:28:23 PST 2025


================
@@ -205,6 +205,12 @@ def main():
             "commits"
         ),
     )
+    p.add_argument(
+        "-0",
+        "--null",
----------------
owenca wrote:

Please move it (and `--diff_from_common_commit` above) up to keep the options sorted.

I would use `--print0` (without `-0`) instead, just like in `find -print0` that can be piped to `xargs -0`.

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


More information about the cfe-commits mailing list