[clang] [clang-format] Ignore timestamps in clang-format-diff.py file headers (PR #240061)

via cfe-commits cfe-commits at lists.llvm.org
Sun Nov 8 00:19:37 PST 2026


thejesh23 wrote:

@mydeveloperday @HazardyKnusperkeks can you please take a look .

The bug is in a command the script's own help text and ClangFormat.md document: svn diff --diff-cmd=diff -x-U0 | clang-format-diff.py -i.
It fails silently: nothing gets formatted and the exit code is still 0.
The fix is one line, plus a test that fails before it and passes after.

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


More information about the cfe-commits mailing list