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

Nikolaos Chatzikonstantinou via cfe-commits cfe-commits at lists.llvm.org
Sun Feb 2 12:17:25 PST 2025


================
@@ -260,15 +265,13 @@ def main():
                 "Ignoring the following files (wrong extension, symlink, or "
                 "ignored by clang-format):"
             )
-            for filename in ignored_files:
-                print("    %s" % filename)
+            print_filenames(ignored_files, opts.print0)
----------------
createyourpersonalaccount wrote:

You have a good point, should they be mutually exclusive? I.e. if both are specified an error message is printed. I don't think `--verbose` is meaningful because `--null` does not have extra information to print.

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


More information about the cfe-commits mailing list