From 77689c4a72067769c8d30df41d69efa9431f9a25 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Fri, 22 Nov 2024 11:32:46 -0500 Subject: [PATCH] Suppress unused-includes in clangd for false positives (#4573) clangd-17 reports includes as being unused when they are used, such as in common/ostream.h. There it says the `` include is unused but `std::derived_from` is present in the same file (and clangd points out that it is coming from `` on hover). --- .clangd | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.clangd b/.clangd index f6fab1b26e60..b686d61ca940 100644 --- a/.clangd +++ b/.clangd @@ -5,3 +5,7 @@ CompileFlags: # Workaround for https://github.com/clangd/clangd/issues/1582 Remove: [-march=*] +Diagnostics: + # `unused-includes`: has false positives, reporting includes unused when + # they are used. + Suppress: [unused-includes]