diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2019-03-31 20:29:10 +0300 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2019-04-01 01:26:53 +0300 |
commit | e3e83e2acdec877c527b36542fc64867c5943f77 (patch) | |
tree | 990b4908dc8a6fa19a4164f1e7ef79f0ce08ab55 /mesonbuild/scripts | |
parent | 2a030e33f3c000134fd0d19204133befcae338c2 (diff) | |
download | meson-e3e83e2acdec877c527b36542fc64867c5943f77.zip meson-e3e83e2acdec877c527b36542fc64867c5943f77.tar.gz meson-e3e83e2acdec877c527b36542fc64867c5943f77.tar.bz2 |
Also format headers with Clang-Format. Closes #5184.
Diffstat (limited to 'mesonbuild/scripts')
-rw-r--r-- | mesonbuild/scripts/clangformat.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/mesonbuild/scripts/clangformat.py b/mesonbuild/scripts/clangformat.py index fcdf5af..351d06b 100644 --- a/mesonbuild/scripts/clangformat.py +++ b/mesonbuild/scripts/clangformat.py @@ -21,6 +21,7 @@ from ..compilers import lang_suffixes def clangformat(srcdir_name, builddir_name): srcdir = pathlib.Path(srcdir_name) suffixes = set(lang_suffixes['c']).union(set(lang_suffixes['cpp'])) + suffixes.add('h') futures = [] with ThreadPoolExecutor() as e: for f in (x for suff in suffixes for x in srcdir.glob('**/*.' + suff)): |