Don't clang-format or clang-tidy subprojects
It's undesirable to try to format or tidy up subprojects for which we
aren't the authority on. Making this change seems to allow one to use
"ninja clang-format" within a repo, and not have it reformat all the
subprojects. More testing needed, but it's unlikely to hurt things.
Tested:
Ran "ninja clang-format" and observed _only_ the files in the repo get
formatted, not the subproject files.
Signed-off-by: Ed Tanous <edtanous@google.com>
Change-Id: Ifda7dd02b114e404f33c51919a14ca1a2bbd2352
diff --git a/.gitignore b/.gitignore
index 46831eb..4eb9277 100644
--- a/.gitignore
+++ b/.gitignore
@@ -196,6 +196,8 @@
# subproject directories
/subprojects/*
!/subprojects/*.wrap
+!/subprojects/.clang-tidy
+!/subprojects/.clang-format
# Meson Directories
meson-logs
diff --git a/subprojects/.clang-format b/subprojects/.clang-format
new file mode 100644
index 0000000..4662692
--- /dev/null
+++ b/subprojects/.clang-format
@@ -0,0 +1,2 @@
+---
+DisableFormat: true
diff --git a/subprojects/.clang-tidy b/subprojects/.clang-tidy
new file mode 100644
index 0000000..612bd0e
--- /dev/null
+++ b/subprojects/.clang-tidy
@@ -0,0 +1 @@
+Checks: '-*'