llvm-project/clang/tools
mydeveloperday 5aca8bb963 [clang-format] allow clang-format to be passed a file of filenames so we can add a regression suite of "clean clang-formatted files" from LLVM
This change now generates that list, and the change to clang-format allows
us to run clang-format quickly over these files via the list of files.

clang-format.exe -verbose -n --files=./clang/docs/tools/clang-formatted-files.txt

```
Clang-formating 7926 files
Formatting [1/7925] clang/bindings/python/tests/cindex/INPUTS/header1.h
..
Formatting [7925/7925] utils/bazel/llvm-project-overlay/llvm/include/llvm/Config/config.h
```

This is needed because putting all those files on the command line is too
long, and invoking 7900+ clang-formats is much slower (too slow to be honest)

Using this method it takes on 7.5 minutes (on my machine) to run
`clang-format -n` over all of the files (7925), this should result in us
testing any change quickly and easily.

We should be able to use rerunning this list to ensure that we don't regress
clang-format over a large code base, but also use it to ensure none of the
previous files which were 100% clang-formatted remain so.
(which the LLVM premerge checks should be enforcing)

Reviewed By: HazardyKnusperkeks

Differential Revision: https://reviews.llvm.org/D111000
2021-10-03 12:10:33 +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 [clang-format] allow clang-format to be passed a file of filenames so we can add a regression suite of "clean clang-formatted files" from LLVM 2021-10-03 12:10:33 +01:00
clang-format-vs clang-format-vs : Fix Unicode formatting 2019-11-27 09:58:59 +01:00
clang-fuzzer [llvm][clang][mlir] Add checks for the return values from Target::createXXX to prevent protential null deref 2020-11-21 21:04:12 -08: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-nvlink-wrapper] Add documentation in clang docs 2021-09-06 11:43:58 +05:30
clang-offload-bundler [clang-offload-bundler] Make Bundle Entry ID backward compatible 2021-09-08 16:06:12 +05:30
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 [clang-repl] Install clang-repl 2021-08-31 15:20:15 +00:00
clang-scan-deps [clang][deps] NFC: Extract ModuleName initialization 2021-09-10 12:44:39 +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 [Clang] [Fix] Clang build fails when build directory contains space character 2021-09-20 18:19:08 +05:30
libclang OpenMP 5.0 metadirective 2021-09-18 13:40:44 -05: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