llvm-project/clang/docs/tools
Nathan James abafb655c8
[clang][docs] Remove untracked files from formatted status
Currently on http://clang.llvm.org/docs/ClangFormattedStatus.html there are format stats on files no actually inside the tree but generated by build scripts. These are usually copied from somewhere else. Right now for example there are files from `llvm/utils/release/llvm-package...`. Adding these files bloats the list while not giving an accurate representation of how formatted the repo is.
This addresses this issue by checking the git index and ignoring any folder that doesn't contain tracked files.

I'm still unsure whether it would be better to just do away with the `os.walk` method and just check over every file returned from `git ls-index <project-root>`.

Reviewed By: MyDeveloperDay

Differential Revision: https://reviews.llvm.org/D82707
2020-06-28 09:49:39 +01:00
..
dump_ast_matchers.py [docs] dump-ast-matchers removes const from Matcher args and handles template functions slightly better 2020-02-26 01:56:50 +00:00
dump_format_style.py [clang-format] ensure dump_format_style.py works with Python3 correctly 2020-05-07 19:52:12 +01:00
generate_formatted_state.py [clang][docs] Remove untracked files from formatted status 2020-06-28 09:49:39 +01:00