aboutsummaryrefslogtreecommitdiff
path: root/meson/clang-tidy/clean_compdb.py
diff options
context:
space:
mode:
Diffstat (limited to 'meson/clang-tidy/clean_compdb.py')
-rwxr-xr-xmeson/clang-tidy/clean_compdb.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/meson/clang-tidy/clean_compdb.py b/meson/clang-tidy/clean_compdb.py
index 6736fe63a..a3fc77204 100755
--- a/meson/clang-tidy/clean_compdb.py
+++ b/meson/clang-tidy/clean_compdb.py
@@ -30,7 +30,14 @@ def process_compdb(compdb: list[dict]) -> list[dict]:
item['command'] = shlex.join(munch_command(shlex.split(item['command'])))
return item
- return [chomp(x) for x in compdb if not x['file'].endswith('precompiled-headers.hh')]
+ def cmdfilter(item: dict) -> bool:
+ file = item['file']
+ return (
+ not file.endswith('precompiled-headers.hh')
+ and not file.endswith('.rs')
+ )
+
+ return [chomp(x) for x in compdb if cmdfilter(x)]
def main():