MaskRay wrote: Instead of `clang-format -i` which formats the whole file, we usually specify `-lines` to restrict the formatting to the modified region. Then, usually there is no bulk formatting is needed at all. See `clang/tools/clang-format/git-clang-format` https://github.com/llvm/llvm-project/pull/82184