summaryrefslogtreecommitdiff
path: root/subprojects
diff options
context:
space:
mode:
authorEd Tanous <edtanous@google.com>2021-09-02 22:32:42 +0300
committerEd Tanous <ed@tanous.net>2021-09-07 20:21:34 +0300
commit7bbcae5939c7f04aa8211af7baca24e0d00e3864 (patch)
tree7cb0aa1799158f798b776ad3fcb19020f80fa502 /subprojects
parentbd078c3b730914fb4edc46717d92106d49d6c4b8 (diff)
downloadbmcweb-7bbcae5939c7f04aa8211af7baca24e0d00e3864.tar.xz
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
Diffstat (limited to 'subprojects')
-rw-r--r--subprojects/.clang-format2
-rw-r--r--subprojects/.clang-tidy1
2 files changed, 3 insertions, 0 deletions
diff --git a/subprojects/.clang-format b/subprojects/.clang-format
new file mode 100644
index 0000000000..46626920cf
--- /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 0000000000..612bd0ee8d
--- /dev/null
+++ b/subprojects/.clang-tidy
@@ -0,0 +1 @@
+Checks: '-*'