[clang] 357afd9 - [clang-format] Pass return code of git-clang-format by sys.exit()
via cfe-commits
cfe-commits at lists.llvm.org
Tue Apr 5 09:52:10 PDT 2022
Author: owenca
Date: 2022-04-05T09:52:01-07:00
New Revision: 357afd952852db0be3f690f8b647bd4b02f38cad
URL: https://github.com/llvm/llvm-project/commit/357afd952852db0be3f690f8b647bd4b02f38cad
DIFF: https://github.com/llvm/llvm-project/commit/357afd952852db0be3f690f8b647bd4b02f38cad.diff
LOG: [clang-format] Pass return code of git-clang-format by sys.exit()
Fixes #54758
Added:
Modified:
clang/tools/clang-format/git-clang-format
Removed:
################################################################################
diff --git a/clang/tools/clang-format/git-clang-format b/clang/tools/clang-format/git-clang-format
index 7968c43875744..1d6f216240c1c 100755
--- a/clang/tools/clang-format/git-clang-format
+++ b/clang/tools/clang-format/git-clang-format
@@ -628,4 +628,4 @@ def convert_string(bytes_input):
return str(bytes_input)
if __name__ == '__main__':
- main()
+ sys.exit(main())
More information about the cfe-commits
mailing list