llvm-project/clang/tools
Roland Fischer 191a395343 [git-clang-format] Add --diffstat parameter
[git-clang-format][PR46815] Add diffstat functionality

Adding a --diffstat parameter to git-clang-format that essentially uses git diff --stat, i.e. lists the files needing
formatting. This is useful for CI integration or manual usage where one wants to list the files not properly formatted.

I use it for the Suricata project's github action (CI) integration that verifies proper formatting of a pull request
according to project guidelines where it's very helpful to say which files are not properly formatted. I find the list
of files much more useful than e.g. showing the diff in this case using git-clang-format --diff.

An alternative would be to take an additional parameter to diff, e.g. git-clang-format --diff --stat

The goal is not to provide the whole git diff --stat=... parameter functionality, just plain git diff --stat.

Reviewed By: MyDeveloperDay, JakeMerdichAMD

Differential Revision: https://reviews.llvm.org/D84375
2021-10-15 09:56:51 +01:00
..
amdgpu-arch [amdgpu-arch] Guard hsa.h with __has_include 2021-05-10 07:33:30 +00:00
apinotes-test [Support] Don't include VirtualFileSystem.h in CommandLine.h 2021-04-21 10:19:01 -04:00
arcmt-test [NFC] Reordering parameters in getFile and getFileOrSTDIN 2021-03-25 09:47:49 -04:00
c-arcmt-test
c-index-test [CMake] Consistently use the LibXml2::LibXml2 target instead of LIBXML2_LIBRARIES 2021-09-25 13:13:11 +02:00
clang-check [clang-check] Add tokens-dump in clang-check. 2021-02-11 09:40:47 +01:00
clang-diff clang-{tools,unittests}: Stop using SourceManager::getBuffer, NFC 2020-10-15 00:35:16 -04:00
clang-extdef-mapping [clang-tooling] Prevent llvm::fatal_error on invalid CLI option 2021-01-29 10:15:06 +01:00
clang-format [git-clang-format] Add --diffstat parameter 2021-10-15 09:56:51 +01:00
clang-format-vs clang-format-vs : Fix Unicode formatting 2019-11-27 09:58:59 +01:00
clang-fuzzer Move TargetRegistry.(h|cpp) from Support to MC 2021-10-08 14:51:48 -07:00
clang-import-test Reland "[clang-repl] Implement partial translation units and error recovery." 2021-07-12 15:21:22 +00:00
clang-nvlink-wrapper [Clang][clang-nvlink-wrapper] Pass nvlink path to the wrapper 2021-10-12 16:15:52 +00:00
clang-offload-bundler [Clang][OpenMP] Add partial support for Static Device Libraries 2021-10-08 09:37:51 +00:00
clang-offload-wrapper [clang-offload-wrapper] Disabled ELF offload notes embedding by default. 2021-08-18 08:18:03 -07:00
clang-refactor Use ManagedStatic and lazy initialization of cl::opt in libSupport to make it free of global initializer 2021-07-16 07:38:16 +00:00
clang-rename [clang-tooling] Prevent llvm::fatal_error on invalid CLI option 2021-01-29 10:15:06 +01:00
clang-repl Reland "[clang-repl] Allow loading of plugins in clang-repl." 2021-10-05 13:04:01 +00:00
clang-scan-deps [clang][deps] Prune unused header search paths 2021-10-12 12:39:23 +02:00
clang-shlib [CMake] Don't use -Bsymbolic-functions for MinGW targets 2021-06-30 22:54:26 +03:00
diag-build [clang] Use portable "#!/usr/bin/env bash" shebang for tools and utils. 2021-09-23 21:16:43 +05:30
diagtool Reland "[clang-cl] Accept `#pragma warning(disable : N)` for some N" 2021-09-30 15:03:23 -04:00
driver Move TargetRegistry.(h|cpp) from Support to MC 2021-10-08 14:51:48 -07:00
libclang [clang] Use llvm::is_contained (NFC) 2021-10-13 20:41:55 -07:00
scan-build [clang] Update Clang version from 13 to 14 in scan-build.1. 2021-09-30 11:23:25 +05:30
scan-build-py Make analyze-cc path discovery sensible to symlinks 2021-09-27 08:35:19 +02:00
scan-view Partially Revert "scan-view: Remove Reporter.py and associated AppleScript files" 2021-02-11 19:10:46 -08:00
CMakeLists.txt [clang-nvlink-wrapper] Wrapper around nvlink for archive files 2021-09-01 16:00:29 +05:30