]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
clang-tidy: Drop unknown gcc compiler args
authorDaan De Meyer <daan@amutable.com>
Sun, 10 May 2026 19:24:26 +0000 (21:24 +0200)
committerLuca Boccassi <luca.boccassi@gmail.com>
Mon, 11 May 2026 12:25:12 +0000 (13:25 +0100)
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

index 82681fda39923a81e036309518018e10f323f613..8d69a69cbf971d945dc485c4ad32d641eaeb9650 100644 (file)
@@ -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: