[all-commits] [llvm/llvm-project] 68d618: [clang-format] Add ability for clang-format-diff t...

Conrad Donahue via All-commits all-commits at lists.llvm.org
Wed Nov 8 18:13:20 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 68d618f908458e7513e2a56be292216ea0e4ef3f
      https://github.com/llvm/llvm-project/commit/68d618f908458e7513e2a56be292216ea0e4ef3f
  Author: Conrad Donahue <conradjdonahue at gmail.com>
  Date:   2023-11-08 (Wed, 08 Nov 2023)

  Changed paths:
    M clang/tools/clang-format/clang-format-diff.py

  Log Message:
  -----------
  [clang-format] Add ability for clang-format-diff to exit with non-0 status (#70883)

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.




More information about the All-commits mailing list