https://bugs.llvm.org/show_bug.cgi?id=40860
Bug ID: 40860
Summary: git-clang-format updates modified time of unchanged
files
Product: clang
Version: unspecified
Hardware: PC
OS: All
Status: NEW
Severity: enhancement
Priority: P
Component: Formatter
Assignee: unassignedclangb...@nondot.org
Reporter: arichardson....@gmail.com
CC: djas...@google.com, kli...@google.com,
llvm-bugs@lists.llvm.org
Whenever I run git-clang-format followed by ninja, it will recompile all
uncommited files even if git-clang-format did not modify any files.
It seems like git-clang-format will update the modifiation time even for
unchanged files. This is fine for .cpp files but if it touches a commonly used
header I then have to recompile effectively all of my project (this can be
quite significant for commonly used LLVM headers).
It might be possible to write the changed file to a memory buffer, diff that
with the on-disk file and only update that file if any changes have been
detected.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs