Now make sure we're not picking up generated headers
authorKevin Ottens <kevin.ottens@nextcloud.com>
Thu, 6 Aug 2020 06:49:17 +0000 (08:49 +0200)
committerKevin Ottens (Rebase PR Action) <er-vin@users.noreply.github.com>
Wed, 12 Aug 2020 06:45:12 +0000 (06:45 +0000)
This could happen (and started to happen more with clang-tidy 10) that
clang-tidy picked up errors in headers from the build directory. Now
that we moved the build directory out of source, we can simply filter
headers based on the pwd.

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
.drone.yml

index d6e5ff3ee7277471d4ff39a06849cdc3f9e0c717..dd56a74360f7b86bca910518b575435dea3af149 100644 (file)
@@ -52,7 +52,7 @@ steps:
       chown -R test:test . &&
       su -c 'ASAN_OPTIONS=detect_leaks=0 ctest --output-on-failure' test"
     # Static analysis with clang-tidy
-    - "! run-clang-tidy-10 -p /drone/build -quiet | grep -A 5 ': error:'"
+    - "! run-clang-tidy-10 -p /drone/build -header-filter $PWD -quiet | grep -A 5 ': error:'"
 
 volumes:
 - name: build