llvm-project/clang/tools/clang-format
Erik Larsson bee61aa7b6 [clang-format] Add --staged/--cached option to git-clang-format
When running git-clang-format in a pre-commit hook it's very useful to be able to tell git-clang-format to only look at the --staged/--cached files and not the working directory.

Note this patch is a rebase/fork from {D41147 } which is a fork of {D15465 }

Reviewed By: MyDeveloperDay, HazardyKnusperkeks, lodato

Differential Revision: https://reviews.llvm.org/D90996

Co-authored-by: Mark Lodato <lodato@google.com>
2021-10-30 17:37:58 +01:00
..
fuzzer
CMakeLists.txt Revert "clang-format: Add a consumer to diagnostics engine" 2020-10-29 10:29:53 -04:00
ClangFormat.cpp [clang-format] [PR42014,PR52021] don't let clang-format assert/crash when file being formatted is read-only/locked 2021-10-15 09:46:35 +01:00
clang-format-bbedit.applescript
clang-format-diff.py [clang-format-diff] Fix missing formatting for zero length git diff lines 2021-10-08 10:25:54 -07:00
clang-format-sublime.py [ClangFormat] Editor integrations inherit default style from clang-format binary 2019-05-17 07:22:55 +00:00
clang-format-test.el [Format] Fix clang-format.el unit tests after commit f349cc37cc 2019-11-11 17:55:38 +01:00
clang-format.el clang-format: Add a fallback style to Emacs mode 2019-11-06 09:50:54 +00:00
clang-format.py [Format] Work around current vim bugs in clang-format.py 2020-04-15 20:11:14 +02:00
git-clang-format [clang-format] Add --staged/--cached option to git-clang-format 2021-10-30 17:37:58 +01:00