From: Arran Cudbard-Bell Date: Mon, 27 Jun 2022 23:25:03 +0000 (-0500) Subject: Basic clangd config to suppress the most stupid warnings X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2083a4a78ee11169a6a15ace0f64937088c16f45;p=thirdparty%2Ffreeradius-server.git Basic clangd config to suppress the most stupid warnings --- diff --git a/.clangd b/.clangd new file mode 100644 index 00000000000..6c810b746dd --- /dev/null +++ b/.clangd @@ -0,0 +1,19 @@ +# Should apply only to header files +If: + PathMatch: .*\.h +Diagnostics: + Suppress: [ + # Clangd doesn't register that functions or macros are used in source files which + # include the header files, making these warnings useless. + "unused-macros", + "unused-function" + ] +--- +# Applies to all files +Diagnostics: + ClangTidy: + Remove: [ + # This is stupid and warns over talloc_array_length using sizeof(foo) / sizeof(foo *) + # to determine the number of elements in an array. + "bugprone-sizeof-expression" + ]