summaryrefslogtreecommitdiff
path: root/mesonbuild/scripts/clangformat.py
Commit message (Collapse)AuthorAgeFilesLines
* Collect and return clang-format's return codeFlorian Schmaus2020-11-171-3/+4
| | | | | There is no reason why meson should swallow any non-zero exit(/return) code of clang-format.
* Never run clang-format / clang-tidy against directoriesBernd Busse2020-10-051-0/+2
| | | | | | | `pathlib.Path.glob()` also returns directories that match source filenames (i.e. a directory named `test.h/`), but `clang-format` and `clang-tidy` fail when handed a directory. We manually skip calling `clang-format` and `clang-tidy` on those directories.
* typing: fully annotate scriptsDaniel Mensinger2020-09-081-2/+3
|
* Find clang-format with alternative namesTing-Wei Lan2019-09-291-3/+10
| | | | | | This is similar to what we currently do for scan-build except there is no environment variable to choose a specific clang-format to run. If an environment variable is needed for better control, we can add it later.
* Also format headers with Clang-Format. Closes #5184.Jussi Pakkanen2019-04-011-0/+1
|
* Add a clang-format target.Jussi Pakkanen2018-12-301-0/+37