From 263335518b29d90cc3745414c02c3a9de20b2070 Mon Sep 17 00:00:00 2001 From: Daan De Meyer Date: Sun, 10 May 2026 21:24:26 +0200 Subject: [PATCH] clang-tidy: Drop unknown gcc compiler args clang-tidy recently gained support to allow dropping compiler args from the entries parsed from the compilation database. Let's make use of this to drop the two compiler args we use with gcc that clang doesn't support so we can run clang-tidy on meson build trees configured to use gcc without getting tons of false positives. --- .clang-tidy | 1 + 1 file changed, 1 insertion(+) diff --git a/.clang-tidy b/.clang-tidy index 82681fda39..8d69a69cbf 100644 --- a/.clang-tidy +++ b/.clang-tidy @@ -70,6 +70,7 @@ CheckOptions: ^getmntent$,mnt_table_next_fs(),libmount parser should be used instead ' misc-header-include-cycle.IgnoredFilesList: 'glib-2.0' +RemovedArgs: ['-fwide-exec-charset=UCS2', '-maccumulate-outgoing-args'] WarningsAsErrors: '*' ExcludeHeaderFilterRegex: 'blkid\.h|gmessages\.h|gstring\.h' HeaderFileExtensions: