meson: enable the clang-format target

.clang-format needs to exist in the root of the project for the target
to be generated, but since we don't have a global config it's a dummy,
empty file.

.clang-format-include lists the files (files! not folders) that are to
be formatted.

.clang-format-ignore lists the files to exclude, even if they are in the
include list above. Useful for vendored code for instance.

See https://mesonbuild.com/Code-formatting.html

Signed-off-by: Eric Engestrom <eric@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23269>
This commit is contained in:
Eric Engestrom 2023-05-26 18:21:38 +01:00 committed by Marge Bot
parent 059ee4ff8d
commit 2f78ec7d37
3 changed files with 2 additions and 0 deletions

0
.clang-format Normal file
View File

0
.clang-format-ignore Normal file
View File

2
.clang-format-include Normal file
View File

@ -0,0 +1,2 @@
src/**/asahi/**/*
src/**/panfrost/**/*