From: Daan De Meyer Date: Sun, 10 May 2026 19:24:26 +0000 (+0200) Subject: clang-tidy: Drop unknown gcc compiler args X-Git-Tag: v261-rc1~245 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=263335518b29d90cc3745414c02c3a9de20b2070;p=thirdparty%2Fsystemd.git 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. --- diff --git a/.clang-tidy b/.clang-tidy index 82681fda399..8d69a69cbf9 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: