From: Arran Cudbard-Bell Date: Thu, 8 Dec 2022 20:10:58 +0000 (-0600) Subject: Fixes for running with a non system version of clangd on macos X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7882faf453be24d41d34ce0874d35290fb17ebe2;p=thirdparty%2Ffreeradius-server.git Fixes for running with a non system version of clangd on macos --- diff --git a/.clangd b/.clangd index 6c810b746dd..b11249f9f40 100644 --- a/.clangd +++ b/.clangd @@ -1,6 +1,16 @@ # Should apply only to header files If: PathMatch: .*\.h +CompileFlags: + # macos: non-system clangd doesn't seem to include /usr/local/include in the default path + Add: [ + "-I/usr/local/include" + ] + # macos: flags that come from xcrun that brewd clangd doesn't understand + Remove: [ + "-clang-vendor-feature*", + "-fno-odr-hash-protocols" + ] Diagnostics: Suppress: [ # Clangd doesn't register that functions or macros are used in source files which @@ -10,6 +20,16 @@ Diagnostics: ] --- # Applies to all files +CompileFlags: + # macos: non-system clangd doesn't seem to include /usr/local/include in the default path + Add: [ + "-I/usr/local/include" + ] + # macos: flags that come from xcrun that brewd clangd doesn't understand + Remove: [ + "-clang-vendor-feature*", + "-fno-odr-hash-protocols*" + ] Diagnostics: ClangTidy: Remove: [