aboutsummaryrefslogtreecommitdiff
path: root/test cases/unit
diff options
context:
space:
mode:
authorBernd Busse <bernd@busse-net.de>2020-10-03 19:58:55 +0200
committerJussi Pakkanen <jpakkane@gmail.com>2020-10-05 23:07:20 +0300
commitc4fa87692547a25f772b3da336147b4eb9114f64 (patch)
treeea64ecc8187bcc1315d82083aba163ebb680b417 /test cases/unit
parent4b1c1d83c88853a6be99b53e4d27c414b7b36137 (diff)
downloadmeson-c4fa87692547a25f772b3da336147b4eb9114f64.zip
meson-c4fa87692547a25f772b3da336147b4eb9114f64.tar.gz
meson-c4fa87692547a25f772b3da336147b4eb9114f64.tar.bz2
Never run clang-format / clang-tidy against directories
`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.
Diffstat (limited to 'test cases/unit')
-rw-r--r--test cases/unit/54 clang-format/dummydir.h/dummy.dat1
-rw-r--r--test cases/unit/70 clang-tidy/dummydir.h/dummy.dat1
2 files changed, 2 insertions, 0 deletions
diff --git a/test cases/unit/54 clang-format/dummydir.h/dummy.dat b/test cases/unit/54 clang-format/dummydir.h/dummy.dat
new file mode 100644
index 0000000..80c6165
--- /dev/null
+++ b/test cases/unit/54 clang-format/dummydir.h/dummy.dat
@@ -0,0 +1 @@
+Placeholder to track enclosing directory in git. Not to be analyzed.
diff --git a/test cases/unit/70 clang-tidy/dummydir.h/dummy.dat b/test cases/unit/70 clang-tidy/dummydir.h/dummy.dat
new file mode 100644
index 0000000..80c6165
--- /dev/null
+++ b/test cases/unit/70 clang-tidy/dummydir.h/dummy.dat
@@ -0,0 +1 @@
+Placeholder to track enclosing directory in git. Not to be analyzed.