mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-27 04:56:07 +00:00

This patch adds the ability for the clang-format-diff script to exit with a non-zero status if it detects that formatting changes are necessary. This makes it easier to use clang-format-diff as part of a DevOps pipeline, since you could add a stage to run clang-format-diff and fail if the formatting needs to be fixed.