From 2f78ec7d379d1a229c0deb341f05381210387930 Mon Sep 17 00:00:00 2001 From: Eric Engestrom Date: Fri, 26 May 2023 18:21:38 +0100 Subject: [PATCH] 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 Part-of: --- .clang-format | 0 .clang-format-ignore | 0 .clang-format-include | 2 ++ 3 files changed, 2 insertions(+) create mode 100644 .clang-format create mode 100644 .clang-format-ignore create mode 100644 .clang-format-include diff --git a/.clang-format b/.clang-format new file mode 100644 index 00000000000..e69de29bb2d diff --git a/.clang-format-ignore b/.clang-format-ignore new file mode 100644 index 00000000000..e69de29bb2d diff --git a/.clang-format-include b/.clang-format-include new file mode 100644 index 00000000000..91691b22d24 --- /dev/null +++ b/.clang-format-include @@ -0,0 +1,2 @@ +src/**/asahi/**/* +src/**/panfrost/**/*